diff options
| author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2012-08-16 08:13:14 -0400 |
|---|---|---|
| committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-09-19 06:21:20 -0400 |
| commit | 5cbe786a6e32e80149f7b29def50b2bf563f6628 (patch) | |
| tree | 60dd5b609a0bb3c7515810dd6ac639bb3c163816 /include/linux | |
| parent | 35736dce6c05bab8e8b1eb7c74f5b8b0fbb7886d (diff) | |
mfd: twl6040: Add twl6040-gpio child
Add needed platform data structure and code to be able to load
the GPO child of twl6040.
Update the devicetree binding documentation at the same time.
Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mfd/twl6040.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/mfd/twl6040.h b/include/linux/mfd/twl6040.h index 269b7067d360..8991532d4391 100644 --- a/include/linux/mfd/twl6040.h +++ b/include/linux/mfd/twl6040.h | |||
| @@ -158,7 +158,7 @@ | |||
| 158 | #define TWL6040_VIBROCDET 0x20 | 158 | #define TWL6040_VIBROCDET 0x20 |
| 159 | #define TWL6040_TSHUTDET 0x40 | 159 | #define TWL6040_TSHUTDET 0x40 |
| 160 | 160 | ||
| 161 | #define TWL6040_CELLS 2 | 161 | #define TWL6040_CELLS 3 |
| 162 | 162 | ||
| 163 | #define TWL6040_REV_ES1_0 0x00 | 163 | #define TWL6040_REV_ES1_0 0x00 |
| 164 | #define TWL6040_REV_ES1_1 0x01 /* Rev ES1.1 and ES1.2 */ | 164 | #define TWL6040_REV_ES1_1 0x01 /* Rev ES1.1 and ES1.2 */ |
| @@ -176,6 +176,8 @@ | |||
| 176 | #define TWL6040_SYSCLK_SEL_LPPLL 0 | 176 | #define TWL6040_SYSCLK_SEL_LPPLL 0 |
| 177 | #define TWL6040_SYSCLK_SEL_HPPLL 1 | 177 | #define TWL6040_SYSCLK_SEL_HPPLL 1 |
| 178 | 178 | ||
| 179 | #define TWL6040_GPO_MAX 3 | ||
| 180 | |||
| 179 | struct twl6040_codec_data { | 181 | struct twl6040_codec_data { |
| 180 | u16 hs_left_step; | 182 | u16 hs_left_step; |
| 181 | u16 hs_right_step; | 183 | u16 hs_right_step; |
| @@ -192,12 +194,17 @@ struct twl6040_vibra_data { | |||
| 192 | int vddvibr_uV; /* VDDVIBR volt, set 0 for fixed reg */ | 194 | int vddvibr_uV; /* VDDVIBR volt, set 0 for fixed reg */ |
| 193 | }; | 195 | }; |
| 194 | 196 | ||
| 197 | struct twl6040_gpo_data { | ||
| 198 | int gpio_base; | ||
| 199 | }; | ||
| 200 | |||
| 195 | struct twl6040_platform_data { | 201 | struct twl6040_platform_data { |
| 196 | int audpwron_gpio; /* audio power-on gpio */ | 202 | int audpwron_gpio; /* audio power-on gpio */ |
| 197 | unsigned int irq_base; | 203 | unsigned int irq_base; |
| 198 | 204 | ||
| 199 | struct twl6040_codec_data *codec; | 205 | struct twl6040_codec_data *codec; |
| 200 | struct twl6040_vibra_data *vibra; | 206 | struct twl6040_vibra_data *vibra; |
| 207 | struct twl6040_gpo_data *gpo; | ||
| 201 | }; | 208 | }; |
| 202 | 209 | ||
| 203 | struct regmap; | 210 | struct regmap; |
