Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
s2mps11.h
Go to the documentation of this file.
1 /*
2  * s2mps11.h
3  *
4  * Copyright (c) 2012 Samsung Electronics Co., Ltd
5  * http://www.samsung.com
6  *
7  * This program is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU General Public License as published by the
9  * Free Software Foundation; either version 2 of the License, or (at your
10  * option) any later version.
11  *
12  */
13 
14 #ifndef __LINUX_MFD_S2MPS11_H
15 #define __LINUX_MFD_S2MPS11_H
16 
17 /* S2MPS11 registers */
118 };
119 
120 /* S2MPS11 regulator ids */
173 
175 };
176 
177 #define S2MPS11_BUCK_MIN1 600000
178 #define S2MPS11_BUCK_MIN2 750000
179 #define S2MPS11_BUCK_MIN3 3000000
180 #define S2MPS11_LDO_MIN 800000
181 #define S2MPS11_BUCK_STEP1 6250
182 #define S2MPS11_BUCK_STEP2 12500
183 #define S2MPS11_BUCK_STEP3 25000
184 #define S2MPS11_LDO_STEP1 50000
185 #define S2MPS11_LDO_STEP2 25000
186 #define S2MPS11_LDO_VSEL_MASK 0x3F
187 #define S2MPS11_BUCK_VSEL_MASK 0xFF
188 #define S2MPS11_ENABLE_MASK (0x03 << S2MPS11_ENABLE_SHIFT)
189 #define S2MPS11_ENABLE_SHIFT 0x06
190 #define S2MPS11_LDO_N_VOLTAGES (S2MPS11_LDO_VSEL_MASK + 1)
191 #define S2MPS11_BUCK_N_VOLTAGES (S2MPS11_BUCK_VSEL_MASK + 1)
192 
193 #define S2MPS11_PMIC_EN_SHIFT 6
194 #define S2MPS11_REGULATOR_MAX (S2MPS11_REG_MAX - 3)
195 
196 #endif /* __LINUX_MFD_S2MPS11_H */