aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-cm-t35.c
diff options
context:
space:
mode:
authorOleg Drokin <green@linuxhacker.ru>2011-06-06 14:57:07 -0400
committerTony Lindgren <tony@atomide.com>2011-06-14 07:46:26 -0400
commit786b01a8c1db0c0decca55d660a2a3ebd7cfb26b (patch)
treefde9e94c10d61e712c5e3b893e5c1dc5c82e723b /arch/arm/mach-omap2/board-cm-t35.c
parent2c53b436a30867eb6b47dd7bab23ba638d1fb0d2 (diff)
cleanup regulator supply definitions in mach-omap2
to use REGULATOR_SUPPLY arrays. CC: Mark Brown <broonie@opensource.wolfsonmicro.com> CC: Mike Rapoport <mike@compulab.co.il> CC: Nishant Kamat <nskamat@ti.com> CC: Steve Sakoman <steve@sakoman.com> CC: Felipe Balbi <balbi@ti.com> CC: Santosh Shilimkar <santosh.shilimkar@ti.com> CC: peter.barada@logicpd.com Signed-off-by: Oleg Drokin <green@linuxhacker.ru> Acked-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-cm-t35.c')
-rw-r--r--arch/arm/mach-omap2/board-cm-t35.c34
1 files changed, 18 insertions, 16 deletions
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c
index 77456dec93e..e7bf32de753 100644
--- a/arch/arm/mach-omap2/board-cm-t35.c
+++ b/arch/arm/mach-omap2/board-cm-t35.c
@@ -337,19 +337,21 @@ static void __init cm_t35_init_display(void)
337 } 337 }
338} 338}
339 339
340static struct regulator_consumer_supply cm_t35_vmmc1_supply = { 340static struct regulator_consumer_supply cm_t35_vmmc1_supply[] = {
341 .supply = "vmmc", 341 REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"),
342}; 342};
343 343
344static struct regulator_consumer_supply cm_t35_vsim_supply = { 344static struct regulator_consumer_supply cm_t35_vsim_supply[] = {
345 .supply = "vmmc_aux", 345 REGULATOR_SUPPLY("vmmc_aux", "omap_hsmmc.0"),
346}; 346};
347 347
348static struct regulator_consumer_supply cm_t35_vdac_supply = 348static struct regulator_consumer_supply cm_t35_vdac_supply[] = {
349 REGULATOR_SUPPLY("vdda_dac", "omapdss_venc"); 349 REGULATOR_SUPPLY("vdda_dac", "omapdss_venc"),
350};
350 351
351static struct regulator_consumer_supply cm_t35_vdvi_supply = 352static struct regulator_consumer_supply cm_t35_vdvi_supply[] = {
352 REGULATOR_SUPPLY("vdvi", "omapdss"); 353 REGULATOR_SUPPLY("vdvi", "omapdss"),
354};
353 355
354/* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */ 356/* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */
355static struct regulator_init_data cm_t35_vmmc1 = { 357static struct regulator_init_data cm_t35_vmmc1 = {
@@ -362,8 +364,8 @@ static struct regulator_init_data cm_t35_vmmc1 = {
362 | REGULATOR_CHANGE_MODE 364 | REGULATOR_CHANGE_MODE
363 | REGULATOR_CHANGE_STATUS, 365 | REGULATOR_CHANGE_STATUS,
364 }, 366 },
365 .num_consumer_supplies = 1, 367 .num_consumer_supplies = ARRAY_SIZE(cm_t35_vmmc1_supply),
366 .consumer_supplies = &cm_t35_vmmc1_supply, 368 .consumer_supplies = cm_t35_vmmc1_supply,
367}; 369};
368 370
369/* VSIM for MMC1 pins DAT4..DAT7 (2 mA, plus card == max 50 mA) */ 371/* VSIM for MMC1 pins DAT4..DAT7 (2 mA, plus card == max 50 mA) */
@@ -377,8 +379,8 @@ static struct regulator_init_data cm_t35_vsim = {
377 | REGULATOR_CHANGE_MODE 379 | REGULATOR_CHANGE_MODE
378 | REGULATOR_CHANGE_STATUS, 380 | REGULATOR_CHANGE_STATUS,
379 }, 381 },
380 .num_consumer_supplies = 1, 382 .num_consumer_supplies = ARRAY_SIZE(cm_t35_vsim_supply),
381 .consumer_supplies = &cm_t35_vsim_supply, 383 .consumer_supplies = cm_t35_vsim_supply,
382}; 384};
383 385
384/* VDAC for DSS driving S-Video (8 mA unloaded, max 65 mA) */ 386/* VDAC for DSS driving S-Video (8 mA unloaded, max 65 mA) */
@@ -391,8 +393,8 @@ static struct regulator_init_data cm_t35_vdac = {
391 .valid_ops_mask = REGULATOR_CHANGE_MODE 393 .valid_ops_mask = REGULATOR_CHANGE_MODE
392 | REGULATOR_CHANGE_STATUS, 394 | REGULATOR_CHANGE_STATUS,
393 }, 395 },
394 .num_consumer_supplies = 1, 396 .num_consumer_supplies = ARRAY_SIZE(cm_t35_vdac_supply),
395 .consumer_supplies = &cm_t35_vdac_supply, 397 .consumer_supplies = cm_t35_vdac_supply,
396}; 398};
397 399
398/* VPLL2 for digital video outputs */ 400/* VPLL2 for digital video outputs */
@@ -406,8 +408,8 @@ static struct regulator_init_data cm_t35_vpll2 = {
406 .valid_ops_mask = REGULATOR_CHANGE_MODE 408 .valid_ops_mask = REGULATOR_CHANGE_MODE
407 | REGULATOR_CHANGE_STATUS, 409 | REGULATOR_CHANGE_STATUS,
408 }, 410 },
409 .num_consumer_supplies = 1, 411 .num_consumer_supplies = ARRAY_SIZE(cm_t35_vdvi_supply),
410 .consumer_supplies = &cm_t35_vdvi_supply, 412 .consumer_supplies = cm_t35_vdvi_supply,
411}; 413};
412 414
413static struct twl4030_usb_data cm_t35_usb_data = { 415static struct twl4030_usb_data cm_t35_usb_data = {