diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-cm-t35.c')
-rw-r--r-- | arch/arm/mach-omap2/board-cm-t35.c | 40 |
1 files changed, 18 insertions, 22 deletions
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index 8b49dc2c7b9d..d76dca788540 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c | |||
@@ -162,9 +162,7 @@ static struct mtd_partition cm_t35_nand_partitions[] = { | |||
162 | static struct omap_nand_platform_data cm_t35_nand_data = { | 162 | static struct omap_nand_platform_data cm_t35_nand_data = { |
163 | .parts = cm_t35_nand_partitions, | 163 | .parts = cm_t35_nand_partitions, |
164 | .nr_parts = ARRAY_SIZE(cm_t35_nand_partitions), | 164 | .nr_parts = ARRAY_SIZE(cm_t35_nand_partitions), |
165 | .dma_channel = -1, /* disable DMA in OMAP NAND driver */ | ||
166 | .cs = 0, | 165 | .cs = 0, |
167 | |||
168 | }; | 166 | }; |
169 | 167 | ||
170 | static void __init cm_t35_init_nand(void) | 168 | static void __init cm_t35_init_nand(void) |
@@ -337,19 +335,21 @@ static void __init cm_t35_init_display(void) | |||
337 | } | 335 | } |
338 | } | 336 | } |
339 | 337 | ||
340 | static struct regulator_consumer_supply cm_t35_vmmc1_supply = { | 338 | static struct regulator_consumer_supply cm_t35_vmmc1_supply[] = { |
341 | .supply = "vmmc", | 339 | REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"), |
342 | }; | 340 | }; |
343 | 341 | ||
344 | static struct regulator_consumer_supply cm_t35_vsim_supply = { | 342 | static struct regulator_consumer_supply cm_t35_vsim_supply[] = { |
345 | .supply = "vmmc_aux", | 343 | REGULATOR_SUPPLY("vmmc_aux", "omap_hsmmc.0"), |
346 | }; | 344 | }; |
347 | 345 | ||
348 | static struct regulator_consumer_supply cm_t35_vdac_supply = | 346 | static struct regulator_consumer_supply cm_t35_vdac_supply[] = { |
349 | REGULATOR_SUPPLY("vdda_dac", "omapdss_venc"); | 347 | REGULATOR_SUPPLY("vdda_dac", "omapdss_venc"), |
348 | }; | ||
350 | 349 | ||
351 | static struct regulator_consumer_supply cm_t35_vdvi_supply = | 350 | static struct regulator_consumer_supply cm_t35_vdvi_supply[] = { |
352 | REGULATOR_SUPPLY("vdvi", "omapdss"); | 351 | REGULATOR_SUPPLY("vdvi", "omapdss"), |
352 | }; | ||
353 | 353 | ||
354 | /* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */ | 354 | /* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */ |
355 | static struct regulator_init_data cm_t35_vmmc1 = { | 355 | static struct regulator_init_data cm_t35_vmmc1 = { |
@@ -362,8 +362,8 @@ static struct regulator_init_data cm_t35_vmmc1 = { | |||
362 | | REGULATOR_CHANGE_MODE | 362 | | REGULATOR_CHANGE_MODE |
363 | | REGULATOR_CHANGE_STATUS, | 363 | | REGULATOR_CHANGE_STATUS, |
364 | }, | 364 | }, |
365 | .num_consumer_supplies = 1, | 365 | .num_consumer_supplies = ARRAY_SIZE(cm_t35_vmmc1_supply), |
366 | .consumer_supplies = &cm_t35_vmmc1_supply, | 366 | .consumer_supplies = cm_t35_vmmc1_supply, |
367 | }; | 367 | }; |
368 | 368 | ||
369 | /* VSIM for MMC1 pins DAT4..DAT7 (2 mA, plus card == max 50 mA) */ | 369 | /* VSIM for MMC1 pins DAT4..DAT7 (2 mA, plus card == max 50 mA) */ |
@@ -377,8 +377,8 @@ static struct regulator_init_data cm_t35_vsim = { | |||
377 | | REGULATOR_CHANGE_MODE | 377 | | REGULATOR_CHANGE_MODE |
378 | | REGULATOR_CHANGE_STATUS, | 378 | | REGULATOR_CHANGE_STATUS, |
379 | }, | 379 | }, |
380 | .num_consumer_supplies = 1, | 380 | .num_consumer_supplies = ARRAY_SIZE(cm_t35_vsim_supply), |
381 | .consumer_supplies = &cm_t35_vsim_supply, | 381 | .consumer_supplies = cm_t35_vsim_supply, |
382 | }; | 382 | }; |
383 | 383 | ||
384 | /* VDAC for DSS driving S-Video (8 mA unloaded, max 65 mA) */ | 384 | /* VDAC for DSS driving S-Video (8 mA unloaded, max 65 mA) */ |
@@ -391,8 +391,8 @@ static struct regulator_init_data cm_t35_vdac = { | |||
391 | .valid_ops_mask = REGULATOR_CHANGE_MODE | 391 | .valid_ops_mask = REGULATOR_CHANGE_MODE |
392 | | REGULATOR_CHANGE_STATUS, | 392 | | REGULATOR_CHANGE_STATUS, |
393 | }, | 393 | }, |
394 | .num_consumer_supplies = 1, | 394 | .num_consumer_supplies = ARRAY_SIZE(cm_t35_vdac_supply), |
395 | .consumer_supplies = &cm_t35_vdac_supply, | 395 | .consumer_supplies = cm_t35_vdac_supply, |
396 | }; | 396 | }; |
397 | 397 | ||
398 | /* VPLL2 for digital video outputs */ | 398 | /* VPLL2 for digital video outputs */ |
@@ -406,8 +406,8 @@ static struct regulator_init_data cm_t35_vpll2 = { | |||
406 | .valid_ops_mask = REGULATOR_CHANGE_MODE | 406 | .valid_ops_mask = REGULATOR_CHANGE_MODE |
407 | | REGULATOR_CHANGE_STATUS, | 407 | | REGULATOR_CHANGE_STATUS, |
408 | }, | 408 | }, |
409 | .num_consumer_supplies = 1, | 409 | .num_consumer_supplies = ARRAY_SIZE(cm_t35_vdvi_supply), |
410 | .consumer_supplies = &cm_t35_vdvi_supply, | 410 | .consumer_supplies = cm_t35_vdvi_supply, |
411 | }; | 411 | }; |
412 | 412 | ||
413 | static struct twl4030_usb_data cm_t35_usb_data = { | 413 | static struct twl4030_usb_data cm_t35_usb_data = { |
@@ -481,10 +481,6 @@ static int cm_t35_twl_gpio_setup(struct device *dev, unsigned gpio, | |||
481 | mmc[0].gpio_cd = gpio + 0; | 481 | mmc[0].gpio_cd = gpio + 0; |
482 | omap2_hsmmc_init(mmc); | 482 | omap2_hsmmc_init(mmc); |
483 | 483 | ||
484 | /* link regulators to MMC adapters */ | ||
485 | cm_t35_vmmc1_supply.dev = mmc[0].dev; | ||
486 | cm_t35_vsim_supply.dev = mmc[0].dev; | ||
487 | |||
488 | return 0; | 484 | return 0; |
489 | } | 485 | } |
490 | 486 | ||