diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-cm-t35.c')
-rw-r--r-- | arch/arm/mach-omap2/board-cm-t35.c | 44 |
1 files changed, 8 insertions, 36 deletions
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index cb00abc4dd5d..35891d49c631 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c | |||
@@ -343,10 +343,6 @@ static struct regulator_consumer_supply cm_t35_vsim_supply[] = { | |||
343 | REGULATOR_SUPPLY("vmmc_aux", "omap_hsmmc.0"), | 343 | REGULATOR_SUPPLY("vmmc_aux", "omap_hsmmc.0"), |
344 | }; | 344 | }; |
345 | 345 | ||
346 | static struct regulator_consumer_supply cm_t35_vdac_supply[] = { | ||
347 | REGULATOR_SUPPLY("vdda_dac", "omapdss_venc"), | ||
348 | }; | ||
349 | |||
350 | static struct regulator_consumer_supply cm_t35_vdvi_supply[] = { | 346 | static struct regulator_consumer_supply cm_t35_vdvi_supply[] = { |
351 | REGULATOR_SUPPLY("vdvi", "omapdss"), | 347 | REGULATOR_SUPPLY("vdvi", "omapdss"), |
352 | }; | 348 | }; |
@@ -381,35 +377,6 @@ static struct regulator_init_data cm_t35_vsim = { | |||
381 | .consumer_supplies = cm_t35_vsim_supply, | 377 | .consumer_supplies = cm_t35_vsim_supply, |
382 | }; | 378 | }; |
383 | 379 | ||
384 | /* VDAC for DSS driving S-Video (8 mA unloaded, max 65 mA) */ | ||
385 | static struct regulator_init_data cm_t35_vdac = { | ||
386 | .constraints = { | ||
387 | .min_uV = 1800000, | ||
388 | .max_uV = 1800000, | ||
389 | .valid_modes_mask = REGULATOR_MODE_NORMAL | ||
390 | | REGULATOR_MODE_STANDBY, | ||
391 | .valid_ops_mask = REGULATOR_CHANGE_MODE | ||
392 | | REGULATOR_CHANGE_STATUS, | ||
393 | }, | ||
394 | .num_consumer_supplies = ARRAY_SIZE(cm_t35_vdac_supply), | ||
395 | .consumer_supplies = cm_t35_vdac_supply, | ||
396 | }; | ||
397 | |||
398 | /* VPLL2 for digital video outputs */ | ||
399 | static struct regulator_init_data cm_t35_vpll2 = { | ||
400 | .constraints = { | ||
401 | .name = "VDVI", | ||
402 | .min_uV = 1800000, | ||
403 | .max_uV = 1800000, | ||
404 | .valid_modes_mask = REGULATOR_MODE_NORMAL | ||
405 | | REGULATOR_MODE_STANDBY, | ||
406 | .valid_ops_mask = REGULATOR_CHANGE_MODE | ||
407 | | REGULATOR_CHANGE_STATUS, | ||
408 | }, | ||
409 | .num_consumer_supplies = ARRAY_SIZE(cm_t35_vdvi_supply), | ||
410 | .consumer_supplies = cm_t35_vdvi_supply, | ||
411 | }; | ||
412 | |||
413 | static uint32_t cm_t35_keymap[] = { | 380 | static uint32_t cm_t35_keymap[] = { |
414 | KEY(0, 0, KEY_A), KEY(0, 1, KEY_B), KEY(0, 2, KEY_LEFT), | 381 | KEY(0, 0, KEY_A), KEY(0, 1, KEY_B), KEY(0, 2, KEY_LEFT), |
415 | KEY(1, 0, KEY_UP), KEY(1, 1, KEY_ENTER), KEY(1, 2, KEY_DOWN), | 382 | KEY(1, 0, KEY_UP), KEY(1, 1, KEY_ENTER), KEY(1, 2, KEY_DOWN), |
@@ -493,13 +460,18 @@ static struct twl4030_platform_data cm_t35_twldata = { | |||
493 | .gpio = &cm_t35_gpio_data, | 460 | .gpio = &cm_t35_gpio_data, |
494 | .vmmc1 = &cm_t35_vmmc1, | 461 | .vmmc1 = &cm_t35_vmmc1, |
495 | .vsim = &cm_t35_vsim, | 462 | .vsim = &cm_t35_vsim, |
496 | .vdac = &cm_t35_vdac, | ||
497 | .vpll2 = &cm_t35_vpll2, | ||
498 | }; | 463 | }; |
499 | 464 | ||
500 | static void __init cm_t35_init_i2c(void) | 465 | static void __init cm_t35_init_i2c(void) |
501 | { | 466 | { |
502 | omap3_pmic_get_config(&cm_t35_twldata, TWL_COMMON_PDATA_USB, 0); | 467 | omap3_pmic_get_config(&cm_t35_twldata, TWL_COMMON_PDATA_USB, |
468 | TWL_COMMON_REGULATOR_VDAC | TWL_COMMON_REGULATOR_VPLL2); | ||
469 | |||
470 | cm_t35_twldata.vpll2->constraints.name = "VDVI"; | ||
471 | cm_t35_twldata.vpll2->num_consumer_supplies = | ||
472 | ARRAY_SIZE(cm_t35_vdvi_supply); | ||
473 | cm_t35_twldata.vpll2->consumer_supplies = cm_t35_vdvi_supply; | ||
474 | |||
503 | omap3_pmic_init("tps65930", &cm_t35_twldata); | 475 | omap3_pmic_init("tps65930", &cm_t35_twldata); |
504 | } | 476 | } |
505 | 477 | ||