diff options
Diffstat (limited to 'include/linux/mfd/mc13xxx.h')
-rw-r--r-- | include/linux/mfd/mc13xxx.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/include/linux/mfd/mc13xxx.h b/include/linux/mfd/mc13xxx.h index a326c850f046..d63b1d309106 100644 --- a/include/linux/mfd/mc13xxx.h +++ b/include/linux/mfd/mc13xxx.h | |||
@@ -117,10 +117,6 @@ struct mc13xxx_led_platform_data { | |||
117 | 117 | ||
118 | #define MAX_LED_CONTROL_REGS 6 | 118 | #define MAX_LED_CONTROL_REGS 6 |
119 | 119 | ||
120 | struct mc13xxx_leds_platform_data { | ||
121 | struct mc13xxx_led_platform_data *led; | ||
122 | int num_leds; | ||
123 | |||
124 | /* MC13783 LED Control 0 */ | 120 | /* MC13783 LED Control 0 */ |
125 | #define MC13783_LED_C0_ENABLE (1 << 0) | 121 | #define MC13783_LED_C0_ENABLE (1 << 0) |
126 | #define MC13783_LED_C0_TRIODE_MD (1 << 7) | 122 | #define MC13783_LED_C0_TRIODE_MD (1 << 7) |
@@ -169,10 +165,13 @@ struct mc13xxx_leds_platform_data { | |||
169 | /* MC34708 LED Control 0 */ | 165 | /* MC34708 LED Control 0 */ |
170 | #define MC34708_LED_C0_CURRENT_R(x) (((x) & 0x3) << 9) | 166 | #define MC34708_LED_C0_CURRENT_R(x) (((x) & 0x3) << 9) |
171 | #define MC34708_LED_C0_CURRENT_G(x) (((x) & 0x3) << 21) | 167 | #define MC34708_LED_C0_CURRENT_G(x) (((x) & 0x3) << 21) |
168 | |||
169 | struct mc13xxx_leds_platform_data { | ||
170 | struct mc13xxx_led_platform_data *led; | ||
171 | int num_leds; | ||
172 | u32 led_control[MAX_LED_CONTROL_REGS]; | 172 | u32 led_control[MAX_LED_CONTROL_REGS]; |
173 | }; | 173 | }; |
174 | 174 | ||
175 | struct mc13xxx_buttons_platform_data { | ||
176 | #define MC13783_BUTTON_DBNC_0MS 0 | 175 | #define MC13783_BUTTON_DBNC_0MS 0 |
177 | #define MC13783_BUTTON_DBNC_30MS 1 | 176 | #define MC13783_BUTTON_DBNC_30MS 1 |
178 | #define MC13783_BUTTON_DBNC_150MS 2 | 177 | #define MC13783_BUTTON_DBNC_150MS 2 |
@@ -180,6 +179,8 @@ struct mc13xxx_buttons_platform_data { | |||
180 | #define MC13783_BUTTON_ENABLE (1 << 2) | 179 | #define MC13783_BUTTON_ENABLE (1 << 2) |
181 | #define MC13783_BUTTON_POL_INVERT (1 << 3) | 180 | #define MC13783_BUTTON_POL_INVERT (1 << 3) |
182 | #define MC13783_BUTTON_RESET_EN (1 << 4) | 181 | #define MC13783_BUTTON_RESET_EN (1 << 4) |
182 | |||
183 | struct mc13xxx_buttons_platform_data { | ||
183 | int b1on_flags; | 184 | int b1on_flags; |
184 | unsigned short b1on_key; | 185 | unsigned short b1on_key; |
185 | int b2on_flags; | 186 | int b2on_flags; |
@@ -188,14 +189,14 @@ struct mc13xxx_buttons_platform_data { | |||
188 | unsigned short b3on_key; | 189 | unsigned short b3on_key; |
189 | }; | 190 | }; |
190 | 191 | ||
192 | #define MC13783_TS_ATO_FIRST false | ||
193 | #define MC13783_TS_ATO_EACH true | ||
194 | |||
191 | struct mc13xxx_ts_platform_data { | 195 | struct mc13xxx_ts_platform_data { |
192 | /* Delay between Touchscreen polarization and ADC Conversion. | 196 | /* Delay between Touchscreen polarization and ADC Conversion. |
193 | * Given in clock ticks of a 32 kHz clock which gives a granularity of | 197 | * Given in clock ticks of a 32 kHz clock which gives a granularity of |
194 | * about 30.5ms */ | 198 | * about 30.5ms */ |
195 | u8 ato; | 199 | u8 ato; |
196 | |||
197 | #define MC13783_TS_ATO_FIRST false | ||
198 | #define MC13783_TS_ATO_EACH true | ||
199 | /* Use the ATO delay only for the first conversion or for each one */ | 200 | /* Use the ATO delay only for the first conversion or for each one */ |
200 | bool atox; | 201 | bool atox; |
201 | }; | 202 | }; |
@@ -210,11 +211,12 @@ struct mc13xxx_codec_platform_data { | |||
210 | enum mc13783_ssi_port dac_ssi_port; | 211 | enum mc13783_ssi_port dac_ssi_port; |
211 | }; | 212 | }; |
212 | 213 | ||
213 | struct mc13xxx_platform_data { | 214 | #define MC13XXX_USE_TOUCHSCREEN (1 << 0) |
214 | #define MC13XXX_USE_TOUCHSCREEN (1 << 0) | ||
215 | #define MC13XXX_USE_CODEC (1 << 1) | 215 | #define MC13XXX_USE_CODEC (1 << 1) |
216 | #define MC13XXX_USE_ADC (1 << 2) | 216 | #define MC13XXX_USE_ADC (1 << 2) |
217 | #define MC13XXX_USE_RTC (1 << 3) | 217 | #define MC13XXX_USE_RTC (1 << 3) |
218 | |||
219 | struct mc13xxx_platform_data { | ||
218 | unsigned int flags; | 220 | unsigned int flags; |
219 | 221 | ||
220 | struct mc13xxx_regulator_platform_data regulators; | 222 | struct mc13xxx_regulator_platform_data regulators; |