diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2011-06-07 04:38:24 -0400 |
---|---|---|
committer | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2011-07-04 11:43:43 -0400 |
commit | b252b0efb605b92a2f5d118e294d088d89cfd286 (patch) | |
tree | aa501248da2e0d369badcefdf027f6cc2ff04b94 /arch/arm/mach-omap2/board-rx51-peripherals.c | |
parent | 827ed9aef2f13000d58616384ea6a22497e787b6 (diff) |
OMAP3: Move common regulator configuration to twl-common
Some regulator config can be moved out from board files,
since they are close to identical.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-rx51-peripherals.c')
-rw-r--r-- | arch/arm/mach-omap2/board-rx51-peripherals.c | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index e0a2804e2b71..6140290721a0 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c | |||
@@ -394,10 +394,6 @@ static struct regulator_consumer_supply rx51_vaux1_consumers[] = { | |||
394 | REGULATOR_SUPPLY("vdd", "2-0063"), | 394 | REGULATOR_SUPPLY("vdd", "2-0063"), |
395 | }; | 395 | }; |
396 | 396 | ||
397 | static struct regulator_consumer_supply rx51_vdac_supply[] = { | ||
398 | REGULATOR_SUPPLY("vdda_dac", "omapdss_venc"), | ||
399 | }; | ||
400 | |||
401 | static struct regulator_init_data rx51_vaux1 = { | 397 | static struct regulator_init_data rx51_vaux1 = { |
402 | .constraints = { | 398 | .constraints = { |
403 | .name = "V28", | 399 | .name = "V28", |
@@ -514,21 +510,6 @@ static struct regulator_init_data rx51_vsim = { | |||
514 | .consumer_supplies = rx51_vsim_supply, | 510 | .consumer_supplies = rx51_vsim_supply, |
515 | }; | 511 | }; |
516 | 512 | ||
517 | static struct regulator_init_data rx51_vdac = { | ||
518 | .constraints = { | ||
519 | .name = "VDAC", | ||
520 | .min_uV = 1800000, | ||
521 | .max_uV = 1800000, | ||
522 | .apply_uV = true, | ||
523 | .valid_modes_mask = REGULATOR_MODE_NORMAL | ||
524 | | REGULATOR_MODE_STANDBY, | ||
525 | .valid_ops_mask = REGULATOR_CHANGE_MODE | ||
526 | | REGULATOR_CHANGE_STATUS, | ||
527 | }, | ||
528 | .num_consumer_supplies = ARRAY_SIZE(rx51_vdac_supply), | ||
529 | .consumer_supplies = rx51_vdac_supply, | ||
530 | }; | ||
531 | |||
532 | static struct regulator_init_data rx51_vio = { | 513 | static struct regulator_init_data rx51_vio = { |
533 | .constraints = { | 514 | .constraints = { |
534 | .min_uV = 1800000, | 515 | .min_uV = 1800000, |
@@ -781,7 +762,6 @@ static struct twl4030_platform_data rx51_twldata __initdata = { | |||
781 | .vaux4 = &rx51_vaux4, | 762 | .vaux4 = &rx51_vaux4, |
782 | .vmmc1 = &rx51_vmmc1, | 763 | .vmmc1 = &rx51_vmmc1, |
783 | .vsim = &rx51_vsim, | 764 | .vsim = &rx51_vsim, |
784 | .vdac = &rx51_vdac, | ||
785 | .vio = &rx51_vio, | 765 | .vio = &rx51_vio, |
786 | }; | 766 | }; |
787 | 767 | ||
@@ -838,7 +818,12 @@ static int __init rx51_i2c_init(void) | |||
838 | } | 818 | } |
839 | rx51_twldata.vmmc2 = &rx51_vmmc2; | 819 | rx51_twldata.vmmc2 = &rx51_vmmc2; |
840 | omap3_pmic_get_config(&rx51_twldata, | 820 | omap3_pmic_get_config(&rx51_twldata, |
841 | TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_MADC, 0); | 821 | TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_MADC, |
822 | TWL_COMMON_REGULATOR_VDAC); | ||
823 | |||
824 | rx51_twldata.vdac->constraints.apply_uV = true; | ||
825 | rx51_twldata.vdac->constraints.name = "VDAC"; | ||
826 | |||
842 | omap_pmic_init(1, 2200, "twl5030", INT_34XX_SYS_NIRQ, &rx51_twldata); | 827 | omap_pmic_init(1, 2200, "twl5030", INT_34XX_SYS_NIRQ, &rx51_twldata); |
843 | omap_register_i2c_bus(2, 100, rx51_peripherals_i2c_board_info_2, | 828 | omap_register_i2c_bus(2, 100, rx51_peripherals_i2c_board_info_2, |
844 | ARRAY_SIZE(rx51_peripherals_i2c_board_info_2)); | 829 | ARRAY_SIZE(rx51_peripherals_i2c_board_info_2)); |