diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-3430sdp.c')
-rw-r--r-- | arch/arm/mach-omap2/board-3430sdp.c | 71 |
1 files changed, 31 insertions, 40 deletions
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c index 7f8c7a73c535..a15f115f1ba5 100644 --- a/arch/arm/mach-omap2/board-3430sdp.c +++ b/arch/arm/mach-omap2/board-3430sdp.c | |||
@@ -315,11 +315,6 @@ static struct platform_device sdp3430_dss_device = { | |||
315 | }, | 315 | }, |
316 | }; | 316 | }; |
317 | 317 | ||
318 | static struct regulator_consumer_supply sdp3430_vdda_dac_supply = { | ||
319 | .supply = "vdda_dac", | ||
320 | .dev = &sdp3430_dss_device.dev, | ||
321 | }; | ||
322 | |||
323 | static struct platform_device *sdp3430_devices[] __initdata = { | 318 | static struct platform_device *sdp3430_devices[] __initdata = { |
324 | &sdp3430_dss_device, | 319 | &sdp3430_dss_device, |
325 | }; | 320 | }; |
@@ -369,18 +364,6 @@ static struct omap2_hsmmc_info mmc[] = { | |||
369 | {} /* Terminator */ | 364 | {} /* Terminator */ |
370 | }; | 365 | }; |
371 | 366 | ||
372 | static struct regulator_consumer_supply sdp3430_vmmc1_supply = { | ||
373 | .supply = "vmmc", | ||
374 | }; | ||
375 | |||
376 | static struct regulator_consumer_supply sdp3430_vsim_supply = { | ||
377 | .supply = "vmmc_aux", | ||
378 | }; | ||
379 | |||
380 | static struct regulator_consumer_supply sdp3430_vmmc2_supply = { | ||
381 | .supply = "vmmc", | ||
382 | }; | ||
383 | |||
384 | static int sdp3430_twl_gpio_setup(struct device *dev, | 367 | static int sdp3430_twl_gpio_setup(struct device *dev, |
385 | unsigned gpio, unsigned ngpio) | 368 | unsigned gpio, unsigned ngpio) |
386 | { | 369 | { |
@@ -391,13 +374,6 @@ static int sdp3430_twl_gpio_setup(struct device *dev, | |||
391 | mmc[1].gpio_cd = gpio + 1; | 374 | mmc[1].gpio_cd = gpio + 1; |
392 | omap2_hsmmc_init(mmc); | 375 | omap2_hsmmc_init(mmc); |
393 | 376 | ||
394 | /* link regulators to MMC adapters ... we "know" the | ||
395 | * regulators will be set up only *after* we return. | ||
396 | */ | ||
397 | sdp3430_vmmc1_supply.dev = mmc[0].dev; | ||
398 | sdp3430_vsim_supply.dev = mmc[0].dev; | ||
399 | sdp3430_vmmc2_supply.dev = mmc[1].dev; | ||
400 | |||
401 | /* gpio + 7 is "sub_lcd_en_bkl" (output/PWM1) */ | 377 | /* gpio + 7 is "sub_lcd_en_bkl" (output/PWM1) */ |
402 | gpio_request(gpio + 7, "sub_lcd_en_bkl"); | 378 | gpio_request(gpio + 7, "sub_lcd_en_bkl"); |
403 | gpio_direction_output(gpio + 7, 0); | 379 | gpio_direction_output(gpio + 7, 0); |
@@ -426,11 +402,34 @@ static struct twl4030_madc_platform_data sdp3430_madc_data = { | |||
426 | .irq_line = 1, | 402 | .irq_line = 1, |
427 | }; | 403 | }; |
428 | 404 | ||
405 | /* regulator consumer mappings */ | ||
406 | |||
429 | /* ads7846 on SPI */ | 407 | /* ads7846 on SPI */ |
430 | static struct regulator_consumer_supply sdp3430_vaux3_supplies[] = { | 408 | static struct regulator_consumer_supply sdp3430_vaux3_supplies[] = { |
431 | REGULATOR_SUPPLY("vcc", "spi1.0"), | 409 | REGULATOR_SUPPLY("vcc", "spi1.0"), |
432 | }; | 410 | }; |
433 | 411 | ||
412 | static struct regulator_consumer_supply sdp3430_vdda_dac_supplies[] = { | ||
413 | REGULATOR_SUPPLY("vdda_dac", "omapdss"), | ||
414 | }; | ||
415 | |||
416 | /* VPLL2 for digital video outputs */ | ||
417 | static struct regulator_consumer_supply sdp3430_vpll2_supplies[] = { | ||
418 | REGULATOR_SUPPLY("vdds_dsi", "omapdss"), | ||
419 | }; | ||
420 | |||
421 | static struct regulator_consumer_supply sdp3430_vmmc1_supplies[] = { | ||
422 | REGULATOR_SUPPLY("vmmc", "mmci-omap-hs.0"), | ||
423 | }; | ||
424 | |||
425 | static struct regulator_consumer_supply sdp3430_vsim_supplies[] = { | ||
426 | REGULATOR_SUPPLY("vmmc_aux", "mmci-omap-hs.0"), | ||
427 | }; | ||
428 | |||
429 | static struct regulator_consumer_supply sdp3430_vmmc2_supplies[] = { | ||
430 | REGULATOR_SUPPLY("vmmc", "mmci-omap-hs.1"), | ||
431 | }; | ||
432 | |||
434 | /* | 433 | /* |
435 | * Apply all the fixed voltages since most versions of U-Boot | 434 | * Apply all the fixed voltages since most versions of U-Boot |
436 | * don't bother with that initialization. | 435 | * don't bother with that initialization. |
@@ -501,8 +500,8 @@ static struct regulator_init_data sdp3430_vmmc1 = { | |||
501 | | REGULATOR_CHANGE_MODE | 500 | | REGULATOR_CHANGE_MODE |
502 | | REGULATOR_CHANGE_STATUS, | 501 | | REGULATOR_CHANGE_STATUS, |
503 | }, | 502 | }, |
504 | .num_consumer_supplies = 1, | 503 | .num_consumer_supplies = ARRAY_SIZE(sdp3430_vmmc1_supplies), |
505 | .consumer_supplies = &sdp3430_vmmc1_supply, | 504 | .consumer_supplies = sdp3430_vmmc1_supplies, |
506 | }; | 505 | }; |
507 | 506 | ||
508 | /* VMMC2 for MMC2 card */ | 507 | /* VMMC2 for MMC2 card */ |
@@ -516,8 +515,8 @@ static struct regulator_init_data sdp3430_vmmc2 = { | |||
516 | .valid_ops_mask = REGULATOR_CHANGE_MODE | 515 | .valid_ops_mask = REGULATOR_CHANGE_MODE |
517 | | REGULATOR_CHANGE_STATUS, | 516 | | REGULATOR_CHANGE_STATUS, |
518 | }, | 517 | }, |
519 | .num_consumer_supplies = 1, | 518 | .num_consumer_supplies = ARRAY_SIZE(sdp3430_vmmc2_supplies), |
520 | .consumer_supplies = &sdp3430_vmmc2_supply, | 519 | .consumer_supplies = sdp3430_vmmc2_supplies, |
521 | }; | 520 | }; |
522 | 521 | ||
523 | /* VSIM for OMAP VDD_MMC1A (i/o for DAT4..DAT7) */ | 522 | /* VSIM for OMAP VDD_MMC1A (i/o for DAT4..DAT7) */ |
@@ -531,8 +530,8 @@ static struct regulator_init_data sdp3430_vsim = { | |||
531 | | REGULATOR_CHANGE_MODE | 530 | | REGULATOR_CHANGE_MODE |
532 | | REGULATOR_CHANGE_STATUS, | 531 | | REGULATOR_CHANGE_STATUS, |
533 | }, | 532 | }, |
534 | .num_consumer_supplies = 1, | 533 | .num_consumer_supplies = ARRAY_SIZE(sdp3430_vsim_supplies), |
535 | .consumer_supplies = &sdp3430_vsim_supply, | 534 | .consumer_supplies = sdp3430_vsim_supplies, |
536 | }; | 535 | }; |
537 | 536 | ||
538 | /* VDAC for DSS driving S-Video */ | 537 | /* VDAC for DSS driving S-Video */ |
@@ -546,16 +545,8 @@ static struct regulator_init_data sdp3430_vdac = { | |||
546 | .valid_ops_mask = REGULATOR_CHANGE_MODE | 545 | .valid_ops_mask = REGULATOR_CHANGE_MODE |
547 | | REGULATOR_CHANGE_STATUS, | 546 | | REGULATOR_CHANGE_STATUS, |
548 | }, | 547 | }, |
549 | .num_consumer_supplies = 1, | 548 | .num_consumer_supplies = ARRAY_SIZE(sdp3430_vdda_dac_supplies), |
550 | .consumer_supplies = &sdp3430_vdda_dac_supply, | 549 | .consumer_supplies = sdp3430_vdda_dac_supplies, |
551 | }; | ||
552 | |||
553 | /* VPLL2 for digital video outputs */ | ||
554 | static struct regulator_consumer_supply sdp3430_vpll2_supplies[] = { | ||
555 | { | ||
556 | .supply = "vdds_dsi", | ||
557 | .dev = &sdp3430_dss_device.dev, | ||
558 | } | ||
559 | }; | 550 | }; |
560 | 551 | ||
561 | static struct regulator_init_data sdp3430_vpll2 = { | 552 | static struct regulator_init_data sdp3430_vpll2 = { |