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-omap3pandora.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-omap3pandora.c')
-rw-r--r-- | arch/arm/mach-omap2/board-omap3pandora.c | 47 |
1 files changed, 10 insertions, 37 deletions
diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c index f5abf766db4f..080d7bd6795e 100644 --- a/arch/arm/mach-omap2/board-omap3pandora.c +++ b/arch/arm/mach-omap2/board-omap3pandora.c | |||
@@ -332,10 +332,6 @@ static struct regulator_consumer_supply pandora_vmmc3_supply[] = { | |||
332 | REGULATOR_SUPPLY("vmmc", "omap_hsmmc.2"), | 332 | REGULATOR_SUPPLY("vmmc", "omap_hsmmc.2"), |
333 | }; | 333 | }; |
334 | 334 | ||
335 | static struct regulator_consumer_supply pandora_vdda_dac_supply[] = { | ||
336 | REGULATOR_SUPPLY("vdda_dac", "omapdss_venc"), | ||
337 | }; | ||
338 | |||
339 | static struct regulator_consumer_supply pandora_vdds_supplies[] = { | 335 | static struct regulator_consumer_supply pandora_vdds_supplies[] = { |
340 | REGULATOR_SUPPLY("vdds_sdi", "omapdss"), | 336 | REGULATOR_SUPPLY("vdds_sdi", "omapdss"), |
341 | REGULATOR_SUPPLY("vdds_dsi", "omapdss"), | 337 | REGULATOR_SUPPLY("vdds_dsi", "omapdss"), |
@@ -391,36 +387,6 @@ static struct regulator_init_data pandora_vmmc2 = { | |||
391 | .consumer_supplies = pandora_vmmc2_supply, | 387 | .consumer_supplies = pandora_vmmc2_supply, |
392 | }; | 388 | }; |
393 | 389 | ||
394 | /* VDAC for DSS driving S-Video */ | ||
395 | static struct regulator_init_data pandora_vdac = { | ||
396 | .constraints = { | ||
397 | .min_uV = 1800000, | ||
398 | .max_uV = 1800000, | ||
399 | .apply_uV = true, | ||
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(pandora_vdda_dac_supply), | ||
406 | .consumer_supplies = pandora_vdda_dac_supply, | ||
407 | }; | ||
408 | |||
409 | /* VPLL2 for digital video outputs */ | ||
410 | static struct regulator_init_data pandora_vpll2 = { | ||
411 | .constraints = { | ||
412 | .min_uV = 1800000, | ||
413 | .max_uV = 1800000, | ||
414 | .apply_uV = true, | ||
415 | .valid_modes_mask = REGULATOR_MODE_NORMAL | ||
416 | | REGULATOR_MODE_STANDBY, | ||
417 | .valid_ops_mask = REGULATOR_CHANGE_MODE | ||
418 | | REGULATOR_CHANGE_STATUS, | ||
419 | }, | ||
420 | .num_consumer_supplies = ARRAY_SIZE(pandora_vdds_supplies), | ||
421 | .consumer_supplies = pandora_vdds_supplies, | ||
422 | }; | ||
423 | |||
424 | /* VAUX1 for LCD */ | 390 | /* VAUX1 for LCD */ |
425 | static struct regulator_init_data pandora_vaux1 = { | 391 | static struct regulator_init_data pandora_vaux1 = { |
426 | .constraints = { | 392 | .constraints = { |
@@ -514,8 +480,6 @@ static struct twl4030_platform_data omap3pandora_twldata = { | |||
514 | .gpio = &omap3pandora_gpio_data, | 480 | .gpio = &omap3pandora_gpio_data, |
515 | .vmmc1 = &pandora_vmmc1, | 481 | .vmmc1 = &pandora_vmmc1, |
516 | .vmmc2 = &pandora_vmmc2, | 482 | .vmmc2 = &pandora_vmmc2, |
517 | .vdac = &pandora_vdac, | ||
518 | .vpll2 = &pandora_vpll2, | ||
519 | .vaux1 = &pandora_vaux1, | 483 | .vaux1 = &pandora_vaux1, |
520 | .vaux2 = &pandora_vaux2, | 484 | .vaux2 = &pandora_vaux2, |
521 | .vaux4 = &pandora_vaux4, | 485 | .vaux4 = &pandora_vaux4, |
@@ -534,7 +498,16 @@ static struct i2c_board_info __initdata omap3pandora_i2c3_boardinfo[] = { | |||
534 | static int __init omap3pandora_i2c_init(void) | 498 | static int __init omap3pandora_i2c_init(void) |
535 | { | 499 | { |
536 | omap3_pmic_get_config(&omap3pandora_twldata, | 500 | omap3_pmic_get_config(&omap3pandora_twldata, |
537 | TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_AUDIO, 0); | 501 | TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_AUDIO, |
502 | TWL_COMMON_REGULATOR_VDAC | TWL_COMMON_REGULATOR_VPLL2); | ||
503 | |||
504 | omap3pandora_twldata.vdac->constraints.apply_uV = true; | ||
505 | |||
506 | omap3pandora_twldata.vpll2->constraints.apply_uV = true; | ||
507 | omap3pandora_twldata.vpll2->num_consumer_supplies = | ||
508 | ARRAY_SIZE(pandora_vdds_supplies); | ||
509 | omap3pandora_twldata.vpll2->consumer_supplies = pandora_vdds_supplies; | ||
510 | |||
538 | omap3_pmic_init("tps65950", &omap3pandora_twldata); | 511 | omap3_pmic_init("tps65950", &omap3pandora_twldata); |
539 | /* i2c2 pins are not connected */ | 512 | /* i2c2 pins are not connected */ |
540 | omap_register_i2c_bus(3, 100, omap3pandora_i2c3_boardinfo, | 513 | omap_register_i2c_bus(3, 100, omap3pandora_i2c3_boardinfo, |