diff options
| author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2012-05-02 09:54:42 -0400 |
|---|---|---|
| committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-05-09 15:55:45 -0400 |
| commit | 5af7df6b831ef9fd5fbde9d4bbd596f742cb2ad8 (patch) | |
| tree | 83e1369eafeb492e0c53293870d2c9a137fc0399 /include/linux/mfd | |
| parent | 5a2f1b5fae593dbdf4f3656ee5a5d111df3e9acb (diff) | |
mfd: Add regulator support for twl6040 VIO, V2V1 supplies
twl6040 has three power supply source:
VBAT needs to be connected to VBAT, VIO, and V2V1.
Add regulator support for the VIO, V2V1 supplies.
Initially handle the two supply together with bulk commands.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd')
| -rw-r--r-- | include/linux/mfd/twl6040.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/twl6040.h b/include/linux/mfd/twl6040.h index b15b5f03f5c4..6659487c31e7 100644 --- a/include/linux/mfd/twl6040.h +++ b/include/linux/mfd/twl6040.h | |||
| @@ -27,6 +27,7 @@ | |||
| 27 | 27 | ||
| 28 | #include <linux/interrupt.h> | 28 | #include <linux/interrupt.h> |
| 29 | #include <linux/mfd/core.h> | 29 | #include <linux/mfd/core.h> |
| 30 | #include <linux/regulator/consumer.h> | ||
| 30 | 31 | ||
| 31 | #define TWL6040_REG_ASICID 0x01 | 32 | #define TWL6040_REG_ASICID 0x01 |
| 32 | #define TWL6040_REG_ASICREV 0x02 | 33 | #define TWL6040_REG_ASICREV 0x02 |
| @@ -203,6 +204,7 @@ struct regmap; | |||
| 203 | struct twl6040 { | 204 | struct twl6040 { |
| 204 | struct device *dev; | 205 | struct device *dev; |
| 205 | struct regmap *regmap; | 206 | struct regmap *regmap; |
| 207 | struct regulator_bulk_data supplies[2]; /* supplies for vio, v2v1 */ | ||
| 206 | struct mutex mutex; | 208 | struct mutex mutex; |
| 207 | struct mutex io_mutex; | 209 | struct mutex io_mutex; |
| 208 | struct mutex irq_mutex; | 210 | struct mutex irq_mutex; |
