diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-omap3touchbook.c')
-rw-r--r-- | arch/arm/mach-omap2/board-omap3touchbook.c | 44 |
1 files changed, 12 insertions, 32 deletions
diff --git a/arch/arm/mach-omap2/board-omap3touchbook.c b/arch/arm/mach-omap2/board-omap3touchbook.c index 717972c5ce3e..852ea0464057 100644 --- a/arch/arm/mach-omap2/board-omap3touchbook.c +++ b/arch/arm/mach-omap2/board-omap3touchbook.c | |||
@@ -206,42 +206,11 @@ static struct regulator_init_data touchbook_vsim = { | |||
206 | .consumer_supplies = touchbook_vsim_supply, | 206 | .consumer_supplies = touchbook_vsim_supply, |
207 | }; | 207 | }; |
208 | 208 | ||
209 | /* VDAC for DSS driving S-Video (8 mA unloaded, max 65 mA) */ | ||
210 | static struct regulator_init_data touchbook_vdac = { | ||
211 | .constraints = { | ||
212 | .min_uV = 1800000, | ||
213 | .max_uV = 1800000, | ||
214 | .valid_modes_mask = REGULATOR_MODE_NORMAL | ||
215 | | REGULATOR_MODE_STANDBY, | ||
216 | .valid_ops_mask = REGULATOR_CHANGE_MODE | ||
217 | | REGULATOR_CHANGE_STATUS, | ||
218 | }, | ||
219 | .num_consumer_supplies = ARRAY_SIZE(touchbook_vdac_supply), | ||
220 | .consumer_supplies = touchbook_vdac_supply, | ||
221 | }; | ||
222 | |||
223 | /* VPLL2 for digital video outputs */ | ||
224 | static struct regulator_init_data touchbook_vpll2 = { | ||
225 | .constraints = { | ||
226 | .name = "VDVI", | ||
227 | .min_uV = 1800000, | ||
228 | .max_uV = 1800000, | ||
229 | .valid_modes_mask = REGULATOR_MODE_NORMAL | ||
230 | | REGULATOR_MODE_STANDBY, | ||
231 | .valid_ops_mask = REGULATOR_CHANGE_MODE | ||
232 | | REGULATOR_CHANGE_STATUS, | ||
233 | }, | ||
234 | .num_consumer_supplies = ARRAY_SIZE(touchbook_vdvi_supply), | ||
235 | .consumer_supplies = touchbook_vdvi_supply, | ||
236 | }; | ||
237 | |||
238 | static struct twl4030_platform_data touchbook_twldata = { | 209 | static struct twl4030_platform_data touchbook_twldata = { |
239 | /* platform_data for children goes here */ | 210 | /* platform_data for children goes here */ |
240 | .gpio = &touchbook_gpio_data, | 211 | .gpio = &touchbook_gpio_data, |
241 | .vmmc1 = &touchbook_vmmc1, | 212 | .vmmc1 = &touchbook_vmmc1, |
242 | .vsim = &touchbook_vsim, | 213 | .vsim = &touchbook_vsim, |
243 | .vdac = &touchbook_vdac, | ||
244 | .vpll2 = &touchbook_vpll2, | ||
245 | }; | 214 | }; |
246 | 215 | ||
247 | static struct i2c_board_info __initdata touchBook_i2c_boardinfo[] = { | 216 | static struct i2c_board_info __initdata touchBook_i2c_boardinfo[] = { |
@@ -254,7 +223,18 @@ static int __init omap3_touchbook_i2c_init(void) | |||
254 | { | 223 | { |
255 | /* Standard TouchBook bus */ | 224 | /* Standard TouchBook bus */ |
256 | omap3_pmic_get_config(&touchbook_twldata, | 225 | omap3_pmic_get_config(&touchbook_twldata, |
257 | TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_AUDIO, 0); | 226 | TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_AUDIO, |
227 | TWL_COMMON_REGULATOR_VDAC | TWL_COMMON_REGULATOR_VPLL2); | ||
228 | |||
229 | touchbook_twldata.vdac->num_consumer_supplies = | ||
230 | ARRAY_SIZE(touchbook_vdac_supply); | ||
231 | touchbook_twldata.vdac->consumer_supplies = touchbook_vdac_supply; | ||
232 | |||
233 | touchbook_twldata.vpll2->constraints.name = "VDVI"; | ||
234 | touchbook_twldata.vpll2->num_consumer_supplies = | ||
235 | ARRAY_SIZE(touchbook_vdvi_supply); | ||
236 | touchbook_twldata.vpll2->consumer_supplies = touchbook_vdvi_supply; | ||
237 | |||
258 | omap3_pmic_init("twl4030", &touchbook_twldata); | 238 | omap3_pmic_init("twl4030", &touchbook_twldata); |
259 | /* Additional TouchBook bus */ | 239 | /* Additional TouchBook bus */ |
260 | omap_register_i2c_bus(3, 100, touchBook_i2c_boardinfo, | 240 | omap_register_i2c_bus(3, 100, touchBook_i2c_boardinfo, |