OMAP4: PMIC: Add support for twl6030 regulators
Subsystems (2)
PATCH v4 7/8 OMAP4: PMIC: Add support for twl6030 regulators
From: Rajendra Nayak <[email protected]>
This version of patch series enables RUN TIME selection of TWL4030 or TWL6030.
This patch updates the regulator driver to add support for TWL6030 PMIC specific LDO regulators. SMPS resources are not yet supported for TWL6030 and also .set_mode and .get_status for LDO's are yet to be implemented for TWL6030.
Signed-off-by Rajendra Nayak <[email protected]>
Signed-off-by Balaji T K <[email protected]>
Acked-by Mark Brown <[email protected]>
Reviewed-by Tony Lindgren <[email protected]>
--- drivers/regulator/Kconfig | 2 +- drivers/regulator/twl-regulator.c | 116 ++++++++++++++++++++++++++++++------- include/linux/i2c/twl.h | 34 +++++++++++ 3 files changed, 130 insertions(+), 22 deletions(-)
drivers/regulator/Kconfig +1 -1
@@ -70,7 +70,7 @@ config REGULATOR_MAX1586 for PXA27x chips to control VCC_CORE and VCC_USIM voltages. config REGULATOR_TWL4030 - bool "TI TWL4030/TWL5030/TPS695x0 PMIC" + bool "TI TWL4030/TWL5030/TWL6030/TPS695x0 PMIC" depends on TWL4030_CORE help This driver supports the voltage regulators provided by
drivers/regulator/twl-regulator.c +95 -21
222 lines not on this page · raw message
include/linux/i2c/twl.h +34 -0
@@ -391,6 +391,12 @@ int twl6030_interrupt_mask(u8 bit_mask, u8 offset);#define MSG_SINGULAR (devgrp, id, state) \ ((devgrp) << 13 | 0 << 12 | (id) << 4 | (state)) +#define MSG_BROADCAST_ALL (devgrp, state) \ + ((devgrp) << 5 | (state)) + +#define MSG_BROADCAST_REF MSG_BROADCAST_ALL +#define MSG_BROADCAST_PROV MSG_BROADCAST_ALL +#define MSG_BROADCAST__CLK_RST MSG_BROADCAST_ALL/*----------------------------------------------------------------------*/ struct twl4030_bci_platform_data {
@@ -554,6 +560,7 @@ int twl4030_sih_setup(int module);* VIO is generally fixed. */ +/* TWL4030 SMPS/LDO's */ /* EXTERNAL dc-to-dc buck converters */ #define TWL4030_REG_VDD1 0#define TWL4030_REG_VDD2 1
@@ -580,4 +587,31 @@ int twl4030_sih_setup(int module);#define TWL4030_REG_VUSB1V8 18#define TWL4030_REG_VUSB3V1 19 +/* TWL6030 SMPS/LDO's */ +/* EXTERNAL dc-to-dc buck convertor contollable via SR */ +#define TWL6030_REG_VDD1 30 +#define TWL6030_REG_VDD2 31 +#define TWL6030_REG_VDD3 32 + +/* Non SR compliant dc-to-dc buck convertors */ +#define TWL6030_REG_VMEM 33 +#define TWL6030_REG_V2V1 34 +#define TWL6030_REG_V1V29 35 +#define TWL6030_REG_V1V8 36 + +/* EXTERNAL LDOs */ +#define TWL6030_REG_VAUX1_6030 37 +#define TWL6030_REG_VAUX2_6030 38 +#define TWL6030_REG_VAUX3_6030 39 +#define TWL6030_REG_VMMC 40 +#define TWL6030_REG_VPP 41 +#define TWL6030_REG_VUSIM 42 +#define TWL6030_REG_VANA 43 +#define TWL6030_REG_VCXIO 44 +#define TWL6030_REG_VDAC 45 +#define TWL6030_REG_VUSB 46 + +/* INTERNAL LDOs */ +#define TWL6030_REG_VRTC 47 +#endif /* End of __TWL4030_H */
Signature · 1 line
1.5.4.7