aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/rc5t583.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mfd/rc5t583.h')
-rw-r--r--include/linux/mfd/rc5t583.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/linux/mfd/rc5t583.h b/include/linux/mfd/rc5t583.h
index 0b64b19d81ab..c42fe92a727d 100644
--- a/include/linux/mfd/rc5t583.h
+++ b/include/linux/mfd/rc5t583.h
@@ -250,6 +250,26 @@ enum {
250 RC5T583_EXT_PWRREQ2_CONTROL = 0x2, 250 RC5T583_EXT_PWRREQ2_CONTROL = 0x2,
251}; 251};
252 252
253enum {
254 RC5T583_REGULATOR_DC0,
255 RC5T583_REGULATOR_DC1,
256 RC5T583_REGULATOR_DC2,
257 RC5T583_REGULATOR_DC3,
258 RC5T583_REGULATOR_LDO0,
259 RC5T583_REGULATOR_LDO1,
260 RC5T583_REGULATOR_LDO2,
261 RC5T583_REGULATOR_LDO3,
262 RC5T583_REGULATOR_LDO4,
263 RC5T583_REGULATOR_LDO5,
264 RC5T583_REGULATOR_LDO6,
265 RC5T583_REGULATOR_LDO7,
266 RC5T583_REGULATOR_LDO8,
267 RC5T583_REGULATOR_LDO9,
268
269 /* Should be last entry */
270 RC5T583_REGULATOR_MAX,
271};
272
253struct rc5t583 { 273struct rc5t583 {
254 struct device *dev; 274 struct device *dev;
255 struct regmap *regmap; 275 struct regmap *regmap;
@@ -273,11 +293,20 @@ struct rc5t583 {
273 * The board specific data is provided through this structure. 293 * The board specific data is provided through this structure.
274 * @irq_base: Irq base number on which this device registers their interrupts. 294 * @irq_base: Irq base number on which this device registers their interrupts.
275 * @enable_shutdown: Enable shutdown through the input pin "shutdown". 295 * @enable_shutdown: Enable shutdown through the input pin "shutdown".
296 * @regulator_deepsleep_slot: The slot number on which device goes to sleep
297 * in device sleep mode.
298 * @regulator_ext_pwr_control: External power request regulator control. The
299 * regulator output enable/disable is controlled by the external
300 * power request input state.
301 * @reg_init_data: Regulator init data.
276 */ 302 */
277 303
278struct rc5t583_platform_data { 304struct rc5t583_platform_data {
279 int irq_base; 305 int irq_base;
280 bool enable_shutdown; 306 bool enable_shutdown;
307 int regulator_deepsleep_slot[RC5T583_REGULATOR_MAX];
308 unsigned long regulator_ext_pwr_control[RC5T583_REGULATOR_MAX];
309 struct regulator_init_data *reg_init_data[RC5T583_REGULATOR_MAX];
281}; 310};
282 311
283static inline int rc5t583_write(struct device *dev, uint8_t reg, uint8_t val) 312static inline int rc5t583_write(struct device *dev, uint8_t reg, uint8_t val)