aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/i2c
diff options
context:
space:
mode:
authorRajendra Nayak <rnayak@ti.com>2009-12-13 16:19:23 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2009-12-13 18:26:20 -0500
commit441a450554dada1c59fc06fdf068cb0eeba53c6d (patch)
tree95243a824de1ead21b95bbd36bb85a82be09eeca /include/linux/i2c
parenta6b49ffd2d4bba53ad172b1e78ee51fe15ab195e (diff)
regulator: Add support for twl6030 regulators
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 <rnayak@ti.com> Signed-off-by: Balaji T K <balajitk@ti.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Reviewed-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/i2c')
-rw-r--r--include/linux/i2c/twl.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/linux/i2c/twl.h b/include/linux/i2c/twl.h
index 8e7405d9c624..7679e87df177 100644
--- a/include/linux/i2c/twl.h
+++ b/include/linux/i2c/twl.h
@@ -427,6 +427,12 @@ int twl6030_interrupt_mask(u8 bit_mask, u8 offset);
427#define MSG_SINGULAR(devgrp, id, state) \ 427#define MSG_SINGULAR(devgrp, id, state) \
428 ((devgrp) << 13 | 0 << 12 | (id) << 4 | (state)) 428 ((devgrp) << 13 | 0 << 12 | (id) << 4 | (state))
429 429
430#define MSG_BROADCAST_ALL(devgrp, state) \
431 ((devgrp) << 5 | (state))
432
433#define MSG_BROADCAST_REF MSG_BROADCAST_ALL
434#define MSG_BROADCAST_PROV MSG_BROADCAST_ALL
435#define MSG_BROADCAST__CLK_RST MSG_BROADCAST_ALL
430/*----------------------------------------------------------------------*/ 436/*----------------------------------------------------------------------*/
431 437
432struct twl4030_clock_init_data { 438struct twl4030_clock_init_data {
@@ -602,6 +608,7 @@ int twl4030_sih_setup(int module);
602 * VIO is generally fixed. 608 * VIO is generally fixed.
603 */ 609 */
604 610
611/* TWL4030 SMPS/LDO's */
605/* EXTERNAL dc-to-dc buck converters */ 612/* EXTERNAL dc-to-dc buck converters */
606#define TWL4030_REG_VDD1 0 613#define TWL4030_REG_VDD1 0
607#define TWL4030_REG_VDD2 1 614#define TWL4030_REG_VDD2 1
@@ -628,4 +635,31 @@ int twl4030_sih_setup(int module);
628#define TWL4030_REG_VUSB1V8 18 635#define TWL4030_REG_VUSB1V8 18
629#define TWL4030_REG_VUSB3V1 19 636#define TWL4030_REG_VUSB3V1 19
630 637
638/* TWL6030 SMPS/LDO's */
639/* EXTERNAL dc-to-dc buck convertor contollable via SR */
640#define TWL6030_REG_VDD1 30
641#define TWL6030_REG_VDD2 31
642#define TWL6030_REG_VDD3 32
643
644/* Non SR compliant dc-to-dc buck convertors */
645#define TWL6030_REG_VMEM 33
646#define TWL6030_REG_V2V1 34
647#define TWL6030_REG_V1V29 35
648#define TWL6030_REG_V1V8 36
649
650/* EXTERNAL LDOs */
651#define TWL6030_REG_VAUX1_6030 37
652#define TWL6030_REG_VAUX2_6030 38
653#define TWL6030_REG_VAUX3_6030 39
654#define TWL6030_REG_VMMC 40
655#define TWL6030_REG_VPP 41
656#define TWL6030_REG_VUSIM 42
657#define TWL6030_REG_VANA 43
658#define TWL6030_REG_VCXIO 44
659#define TWL6030_REG_VDAC 45
660#define TWL6030_REG_VUSB 46
661
662/* INTERNAL LDOs */
663#define TWL6030_REG_VRTC 47
664
631#endif /* End of __TWL4030_H */ 665#endif /* End of __TWL4030_H */