diff options
author | Tony Lindgren <tony@atomide.com> | 2011-07-10 14:48:26 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-07-10 14:48:26 -0400 |
commit | 1ad920556f32a5a127397ca461d1a1faaf22c4e0 (patch) | |
tree | cea7ef733c50025496f554f114173e49e52d3028 /arch/arm/mach-omap2/board-cm-t35.c | |
parent | f67df6c670a8fcd3f63728afa2314e7eca653bd7 (diff) | |
parent | 727e18b429e3badda12d1de74f492bfa363a2e94 (diff) |
Merge branch 'cleanup-part-2' into devel-board
Conflicts:
arch/arm/mach-omap2/board-4430sdp.c
arch/arm/mach-omap2/board-rx51-peripherals.c
Diffstat (limited to 'arch/arm/mach-omap2/board-cm-t35.c')
-rw-r--r-- | arch/arm/mach-omap2/board-cm-t35.c | 51 |
1 files changed, 8 insertions, 43 deletions
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index fcd403224f98..3af8aab435b5 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c | |||
@@ -339,10 +339,6 @@ static struct regulator_consumer_supply cm_t35_vsim_supply[] = { | |||
339 | REGULATOR_SUPPLY("vmmc_aux", "omap_hsmmc.0"), | 339 | REGULATOR_SUPPLY("vmmc_aux", "omap_hsmmc.0"), |
340 | }; | 340 | }; |
341 | 341 | ||
342 | static struct regulator_consumer_supply cm_t35_vdac_supply[] = { | ||
343 | REGULATOR_SUPPLY("vdda_dac", "omapdss_venc"), | ||
344 | }; | ||
345 | |||
346 | static struct regulator_consumer_supply cm_t35_vdvi_supply[] = { | 342 | static struct regulator_consumer_supply cm_t35_vdvi_supply[] = { |
347 | REGULATOR_SUPPLY("vdvi", "omapdss"), | 343 | REGULATOR_SUPPLY("vdvi", "omapdss"), |
348 | }; | 344 | }; |
@@ -377,39 +373,6 @@ static struct regulator_init_data cm_t35_vsim = { | |||
377 | .consumer_supplies = cm_t35_vsim_supply, | 373 | .consumer_supplies = cm_t35_vsim_supply, |
378 | }; | 374 | }; |
379 | 375 | ||
380 | /* VDAC for DSS driving S-Video (8 mA unloaded, max 65 mA) */ | ||
381 | static struct regulator_init_data cm_t35_vdac = { | ||
382 | .constraints = { | ||
383 | .min_uV = 1800000, | ||
384 | .max_uV = 1800000, | ||
385 | .valid_modes_mask = REGULATOR_MODE_NORMAL | ||
386 | | REGULATOR_MODE_STANDBY, | ||
387 | .valid_ops_mask = REGULATOR_CHANGE_MODE | ||
388 | | REGULATOR_CHANGE_STATUS, | ||
389 | }, | ||
390 | .num_consumer_supplies = ARRAY_SIZE(cm_t35_vdac_supply), | ||
391 | .consumer_supplies = cm_t35_vdac_supply, | ||
392 | }; | ||
393 | |||
394 | /* VPLL2 for digital video outputs */ | ||
395 | static struct regulator_init_data cm_t35_vpll2 = { | ||
396 | .constraints = { | ||
397 | .name = "VDVI", | ||
398 | .min_uV = 1800000, | ||
399 | .max_uV = 1800000, | ||
400 | .valid_modes_mask = REGULATOR_MODE_NORMAL | ||
401 | | REGULATOR_MODE_STANDBY, | ||
402 | .valid_ops_mask = REGULATOR_CHANGE_MODE | ||
403 | | REGULATOR_CHANGE_STATUS, | ||
404 | }, | ||
405 | .num_consumer_supplies = ARRAY_SIZE(cm_t35_vdvi_supply), | ||
406 | .consumer_supplies = cm_t35_vdvi_supply, | ||
407 | }; | ||
408 | |||
409 | static struct twl4030_usb_data cm_t35_usb_data = { | ||
410 | .usb_mode = T2_USB_MODE_ULPI, | ||
411 | }; | ||
412 | |||
413 | static uint32_t cm_t35_keymap[] = { | 376 | static uint32_t cm_t35_keymap[] = { |
414 | KEY(0, 0, KEY_A), KEY(0, 1, KEY_B), KEY(0, 2, KEY_LEFT), | 377 | 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), | 378 | KEY(1, 0, KEY_UP), KEY(1, 1, KEY_ENTER), KEY(1, 2, KEY_DOWN), |
@@ -488,21 +451,23 @@ static struct twl4030_gpio_platform_data cm_t35_gpio_data = { | |||
488 | }; | 451 | }; |
489 | 452 | ||
490 | static struct twl4030_platform_data cm_t35_twldata = { | 453 | static struct twl4030_platform_data cm_t35_twldata = { |
491 | .irq_base = TWL4030_IRQ_BASE, | ||
492 | .irq_end = TWL4030_IRQ_END, | ||
493 | |||
494 | /* platform_data for children goes here */ | 454 | /* platform_data for children goes here */ |
495 | .keypad = &cm_t35_kp_data, | 455 | .keypad = &cm_t35_kp_data, |
496 | .usb = &cm_t35_usb_data, | ||
497 | .gpio = &cm_t35_gpio_data, | 456 | .gpio = &cm_t35_gpio_data, |
498 | .vmmc1 = &cm_t35_vmmc1, | 457 | .vmmc1 = &cm_t35_vmmc1, |
499 | .vsim = &cm_t35_vsim, | 458 | .vsim = &cm_t35_vsim, |
500 | .vdac = &cm_t35_vdac, | ||
501 | .vpll2 = &cm_t35_vpll2, | ||
502 | }; | 459 | }; |
503 | 460 | ||
504 | static void __init cm_t35_init_i2c(void) | 461 | static void __init cm_t35_init_i2c(void) |
505 | { | 462 | { |
463 | omap3_pmic_get_config(&cm_t35_twldata, TWL_COMMON_PDATA_USB, | ||
464 | TWL_COMMON_REGULATOR_VDAC | TWL_COMMON_REGULATOR_VPLL2); | ||
465 | |||
466 | cm_t35_twldata.vpll2->constraints.name = "VDVI"; | ||
467 | cm_t35_twldata.vpll2->num_consumer_supplies = | ||
468 | ARRAY_SIZE(cm_t35_vdvi_supply); | ||
469 | cm_t35_twldata.vpll2->consumer_supplies = cm_t35_vdvi_supply; | ||
470 | |||
506 | omap3_pmic_init("tps65930", &cm_t35_twldata); | 471 | omap3_pmic_init("tps65930", &cm_t35_twldata); |
507 | } | 472 | } |
508 | 473 | ||