diff options
Diffstat (limited to 'include/linux/mfd/rc5t583.h')
-rw-r--r-- | include/linux/mfd/rc5t583.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/linux/mfd/rc5t583.h b/include/linux/mfd/rc5t583.h index 0b64b19d81ab..3661c59aa1e9 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 | ||
253 | enum { | ||
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 | |||
253 | struct rc5t583 { | 273 | struct rc5t583 { |
254 | struct device *dev; | 274 | struct device *dev; |
255 | struct regmap *regmap; | 275 | struct regmap *regmap; |
@@ -272,12 +292,23 @@ struct rc5t583 { | |||
272 | * rc5t583_platform_data: Platform data for ricoh rc5t583 pmu. | 292 | * rc5t583_platform_data: Platform data for ricoh rc5t583 pmu. |
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. |
295 | * @gpio_base: GPIO base from which gpio of this device will start. | ||
275 | * @enable_shutdown: Enable shutdown through the input pin "shutdown". | 296 | * @enable_shutdown: Enable shutdown through the input pin "shutdown". |
297 | * @regulator_deepsleep_slot: The slot number on which device goes to sleep | ||
298 | * in device sleep mode. | ||
299 | * @regulator_ext_pwr_control: External power request regulator control. The | ||
300 | * regulator output enable/disable is controlled by the external | ||
301 | * power request input state. | ||
302 | * @reg_init_data: Regulator init data. | ||
276 | */ | 303 | */ |
277 | 304 | ||
278 | struct rc5t583_platform_data { | 305 | struct rc5t583_platform_data { |
279 | int irq_base; | 306 | int irq_base; |
307 | int gpio_base; | ||
280 | bool enable_shutdown; | 308 | bool enable_shutdown; |
309 | int regulator_deepsleep_slot[RC5T583_REGULATOR_MAX]; | ||
310 | unsigned long regulator_ext_pwr_control[RC5T583_REGULATOR_MAX]; | ||
311 | struct regulator_init_data *reg_init_data[RC5T583_REGULATOR_MAX]; | ||
281 | }; | 312 | }; |
282 | 313 | ||
283 | static inline int rc5t583_write(struct device *dev, uint8_t reg, uint8_t val) | 314 | static inline int rc5t583_write(struct device *dev, uint8_t reg, uint8_t val) |