diff options
author | Oleg Drokin <green@linuxhacker.ru> | 2011-06-06 14:57:07 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-06-14 07:46:26 -0400 |
commit | 786b01a8c1db0c0decca55d660a2a3ebd7cfb26b (patch) | |
tree | fde9e94c10d61e712c5e3b893e5c1dc5c82e723b /arch/arm/mach-omap2/board-omap3pandora.c | |
parent | 2c53b436a30867eb6b47dd7bab23ba638d1fb0d2 (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-omap3pandora.c')
-rw-r--r-- | arch/arm/mach-omap2/board-omap3pandora.c | 63 |
1 files changed, 35 insertions, 28 deletions
diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c index 2a0bb4818cae..e95bba281a06 100644 --- a/arch/arm/mach-omap2/board-omap3pandora.c +++ b/arch/arm/mach-omap2/board-omap3pandora.c | |||
@@ -319,17 +319,21 @@ static struct twl4030_gpio_platform_data omap3pandora_gpio_data = { | |||
319 | .setup = omap3pandora_twl_gpio_setup, | 319 | .setup = omap3pandora_twl_gpio_setup, |
320 | }; | 320 | }; |
321 | 321 | ||
322 | static struct regulator_consumer_supply pandora_vmmc1_supply = | 322 | static struct regulator_consumer_supply pandora_vmmc1_supply[] = { |
323 | REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"); | 323 | REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"), |
324 | }; | ||
324 | 325 | ||
325 | static struct regulator_consumer_supply pandora_vmmc2_supply = | 326 | static struct regulator_consumer_supply pandora_vmmc2_supply[] = { |
326 | REGULATOR_SUPPLY("vmmc", "omap_hsmmc.1"); | 327 | REGULATOR_SUPPLY("vmmc", "omap_hsmmc.1") |
328 | }; | ||
327 | 329 | ||
328 | static struct regulator_consumer_supply pandora_vmmc3_supply = | 330 | static struct regulator_consumer_supply pandora_vmmc3_supply[] = { |
329 | REGULATOR_SUPPLY("vmmc", "omap_hsmmc.2"); | 331 | REGULATOR_SUPPLY("vmmc", "omap_hsmmc.2"), |
332 | }; | ||
330 | 333 | ||
331 | static struct regulator_consumer_supply pandora_vdda_dac_supply = | 334 | static struct regulator_consumer_supply pandora_vdda_dac_supply[] = { |
332 | REGULATOR_SUPPLY("vdda_dac", "omapdss_venc"); | 335 | REGULATOR_SUPPLY("vdda_dac", "omapdss_venc"), |
336 | }; | ||
333 | 337 | ||
334 | static struct regulator_consumer_supply pandora_vdds_supplies[] = { | 338 | static struct regulator_consumer_supply pandora_vdds_supplies[] = { |
335 | REGULATOR_SUPPLY("vdds_sdi", "omapdss"), | 339 | REGULATOR_SUPPLY("vdds_sdi", "omapdss"), |
@@ -337,11 +341,13 @@ static struct regulator_consumer_supply pandora_vdds_supplies[] = { | |||
337 | REGULATOR_SUPPLY("vdds_dsi", "omapdss_dsi1"), | 341 | REGULATOR_SUPPLY("vdds_dsi", "omapdss_dsi1"), |
338 | }; | 342 | }; |
339 | 343 | ||
340 | static struct regulator_consumer_supply pandora_vcc_lcd_supply = | 344 | static struct regulator_consumer_supply pandora_vcc_lcd_supply[] = { |
341 | REGULATOR_SUPPLY("vcc", "display0"); | 345 | REGULATOR_SUPPLY("vcc", "display0"), |
346 | }; | ||
342 | 347 | ||
343 | static struct regulator_consumer_supply pandora_usb_phy_supply = | 348 | static struct regulator_consumer_supply pandora_usb_phy_supply[] = { |
344 | REGULATOR_SUPPLY("hsusb0", "ehci-omap.0"); | 349 | REGULATOR_SUPPLY("hsusb0", "ehci-omap.0"), |
350 | }; | ||
345 | 351 | ||
346 | /* ads7846 on SPI and 2 nub controllers on I2C */ | 352 | /* ads7846 on SPI and 2 nub controllers on I2C */ |
347 | static struct regulator_consumer_supply pandora_vaux4_supplies[] = { | 353 | static struct regulator_consumer_supply pandora_vaux4_supplies[] = { |
@@ -350,8 +356,9 @@ static struct regulator_consumer_supply pandora_vaux4_supplies[] = { | |||
350 | REGULATOR_SUPPLY("vcc", "3-0067"), | 356 | REGULATOR_SUPPLY("vcc", "3-0067"), |
351 | }; | 357 | }; |
352 | 358 | ||
353 | static struct regulator_consumer_supply pandora_adac_supply = | 359 | static struct regulator_consumer_supply pandora_adac_supply[] = { |
354 | REGULATOR_SUPPLY("vcc", "soc-audio"); | 360 | REGULATOR_SUPPLY("vcc", "soc-audio"), |
361 | }; | ||
355 | 362 | ||
356 | /* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */ | 363 | /* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */ |
357 | static struct regulator_init_data pandora_vmmc1 = { | 364 | static struct regulator_init_data pandora_vmmc1 = { |
@@ -364,8 +371,8 @@ static struct regulator_init_data pandora_vmmc1 = { | |||
364 | | REGULATOR_CHANGE_MODE | 371 | | REGULATOR_CHANGE_MODE |
365 | | REGULATOR_CHANGE_STATUS, | 372 | | REGULATOR_CHANGE_STATUS, |
366 | }, | 373 | }, |
367 | .num_consumer_supplies = 1, | 374 | .num_consumer_supplies = ARRAY_SIZE(pandora_vmmc1_supply), |
368 | .consumer_supplies = &pandora_vmmc1_supply, | 375 | .consumer_supplies = pandora_vmmc1_supply, |
369 | }; | 376 | }; |
370 | 377 | ||
371 | /* VMMC2 for MMC2 pins CMD, CLK, DAT0..DAT3 (max 100 mA) */ | 378 | /* VMMC2 for MMC2 pins CMD, CLK, DAT0..DAT3 (max 100 mA) */ |
@@ -379,8 +386,8 @@ static struct regulator_init_data pandora_vmmc2 = { | |||
379 | | REGULATOR_CHANGE_MODE | 386 | | REGULATOR_CHANGE_MODE |
380 | | REGULATOR_CHANGE_STATUS, | 387 | | REGULATOR_CHANGE_STATUS, |
381 | }, | 388 | }, |
382 | .num_consumer_supplies = 1, | 389 | .num_consumer_supplies = ARRAY_SIZE(pandora_vmmc2_supply), |
383 | .consumer_supplies = &pandora_vmmc2_supply, | 390 | .consumer_supplies = pandora_vmmc2_supply, |
384 | }; | 391 | }; |
385 | 392 | ||
386 | /* VDAC for DSS driving S-Video */ | 393 | /* VDAC for DSS driving S-Video */ |
@@ -394,8 +401,8 @@ static struct regulator_init_data pandora_vdac = { | |||
394 | .valid_ops_mask = REGULATOR_CHANGE_MODE | 401 | .valid_ops_mask = REGULATOR_CHANGE_MODE |
395 | | REGULATOR_CHANGE_STATUS, | 402 | | REGULATOR_CHANGE_STATUS, |
396 | }, | 403 | }, |
397 | .num_consumer_supplies = 1, | 404 | .num_consumer_supplies = ARRAY_SIZE(pandora_vdda_dac_supply), |
398 | .consumer_supplies = &pandora_vdda_dac_supply, | 405 | .consumer_supplies = pandora_vdda_dac_supply, |
399 | }; | 406 | }; |
400 | 407 | ||
401 | /* VPLL2 for digital video outputs */ | 408 | /* VPLL2 for digital video outputs */ |
@@ -424,8 +431,8 @@ static struct regulator_init_data pandora_vaux1 = { | |||
424 | .valid_ops_mask = REGULATOR_CHANGE_MODE | 431 | .valid_ops_mask = REGULATOR_CHANGE_MODE |
425 | | REGULATOR_CHANGE_STATUS, | 432 | | REGULATOR_CHANGE_STATUS, |
426 | }, | 433 | }, |
427 | .num_consumer_supplies = 1, | 434 | .num_consumer_supplies = ARRAY_SIZE(pandora_vcc_lcd_supply), |
428 | .consumer_supplies = &pandora_vcc_lcd_supply, | 435 | .consumer_supplies = pandora_vcc_lcd_supply, |
429 | }; | 436 | }; |
430 | 437 | ||
431 | /* VAUX2 for USB host PHY */ | 438 | /* VAUX2 for USB host PHY */ |
@@ -439,8 +446,8 @@ static struct regulator_init_data pandora_vaux2 = { | |||
439 | .valid_ops_mask = REGULATOR_CHANGE_MODE | 446 | .valid_ops_mask = REGULATOR_CHANGE_MODE |
440 | | REGULATOR_CHANGE_STATUS, | 447 | | REGULATOR_CHANGE_STATUS, |
441 | }, | 448 | }, |
442 | .num_consumer_supplies = 1, | 449 | .num_consumer_supplies = ARRAY_SIZE(pandora_usb_phy_supply), |
443 | .consumer_supplies = &pandora_usb_phy_supply, | 450 | .consumer_supplies = pandora_usb_phy_supply, |
444 | }; | 451 | }; |
445 | 452 | ||
446 | /* VAUX4 for ads7846 and nubs */ | 453 | /* VAUX4 for ads7846 and nubs */ |
@@ -469,8 +476,8 @@ static struct regulator_init_data pandora_vsim = { | |||
469 | .valid_ops_mask = REGULATOR_CHANGE_MODE | 476 | .valid_ops_mask = REGULATOR_CHANGE_MODE |
470 | | REGULATOR_CHANGE_STATUS, | 477 | | REGULATOR_CHANGE_STATUS, |
471 | }, | 478 | }, |
472 | .num_consumer_supplies = 1, | 479 | .num_consumer_supplies = ARRAY_SIZE(pandora_adac_supply), |
473 | .consumer_supplies = &pandora_adac_supply, | 480 | .consumer_supplies = pandora_adac_supply, |
474 | }; | 481 | }; |
475 | 482 | ||
476 | /* Fixed regulator internal to Wifi module */ | 483 | /* Fixed regulator internal to Wifi module */ |
@@ -478,8 +485,8 @@ static struct regulator_init_data pandora_vmmc3 = { | |||
478 | .constraints = { | 485 | .constraints = { |
479 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | 486 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
480 | }, | 487 | }, |
481 | .num_consumer_supplies = 1, | 488 | .num_consumer_supplies = ARRAY_SIZE(pandora_vmmc3_supply), |
482 | .consumer_supplies = &pandora_vmmc3_supply, | 489 | .consumer_supplies = pandora_vmmc3_supply, |
483 | }; | 490 | }; |
484 | 491 | ||
485 | static struct fixed_voltage_config pandora_vwlan = { | 492 | static struct fixed_voltage_config pandora_vwlan = { |