diff options
Diffstat (limited to 'arch/arm/mach-s5pv210/mach-aquila.c')
-rw-r--r-- | arch/arm/mach-s5pv210/mach-aquila.c | 56 |
1 files changed, 20 insertions, 36 deletions
diff --git a/arch/arm/mach-s5pv210/mach-aquila.c b/arch/arm/mach-s5pv210/mach-aquila.c index 557add4fc56c..4e1d8ff5ae59 100644 --- a/arch/arm/mach-s5pv210/mach-aquila.c +++ b/arch/arm/mach-s5pv210/mach-aquila.c | |||
@@ -39,6 +39,7 @@ | |||
39 | #include <plat/fb.h> | 39 | #include <plat/fb.h> |
40 | #include <plat/fimc-core.h> | 40 | #include <plat/fimc-core.h> |
41 | #include <plat/sdhci.h> | 41 | #include <plat/sdhci.h> |
42 | #include <plat/s5p-time.h> | ||
42 | 43 | ||
43 | /* Following are default values for UCON, ULCON and UFCON UART registers */ | 44 | /* Following are default values for UCON, ULCON and UFCON UART registers */ |
44 | #define AQUILA_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ | 45 | #define AQUILA_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ |
@@ -296,13 +297,11 @@ static struct regulator_init_data aquila_ldo17_data = { | |||
296 | }; | 297 | }; |
297 | 298 | ||
298 | /* BUCK */ | 299 | /* BUCK */ |
299 | static struct regulator_consumer_supply buck1_consumer[] = { | 300 | static struct regulator_consumer_supply buck1_consumer = |
300 | { .supply = "vddarm", }, | 301 | REGULATOR_SUPPLY("vddarm", NULL); |
301 | }; | ||
302 | 302 | ||
303 | static struct regulator_consumer_supply buck2_consumer[] = { | 303 | static struct regulator_consumer_supply buck2_consumer = |
304 | { .supply = "vddint", }, | 304 | REGULATOR_SUPPLY("vddint", NULL); |
305 | }; | ||
306 | 305 | ||
307 | static struct regulator_init_data aquila_buck1_data = { | 306 | static struct regulator_init_data aquila_buck1_data = { |
308 | .constraints = { | 307 | .constraints = { |
@@ -313,8 +312,8 @@ static struct regulator_init_data aquila_buck1_data = { | |||
313 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | | 312 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | |
314 | REGULATOR_CHANGE_STATUS, | 313 | REGULATOR_CHANGE_STATUS, |
315 | }, | 314 | }, |
316 | .num_consumer_supplies = ARRAY_SIZE(buck1_consumer), | 315 | .num_consumer_supplies = 1, |
317 | .consumer_supplies = buck1_consumer, | 316 | .consumer_supplies = &buck1_consumer, |
318 | }; | 317 | }; |
319 | 318 | ||
320 | static struct regulator_init_data aquila_buck2_data = { | 319 | static struct regulator_init_data aquila_buck2_data = { |
@@ -326,8 +325,8 @@ static struct regulator_init_data aquila_buck2_data = { | |||
326 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | | 325 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | |
327 | REGULATOR_CHANGE_STATUS, | 326 | REGULATOR_CHANGE_STATUS, |
328 | }, | 327 | }, |
329 | .num_consumer_supplies = ARRAY_SIZE(buck2_consumer), | 328 | .num_consumer_supplies = 1, |
330 | .consumer_supplies = buck2_consumer, | 329 | .consumer_supplies = &buck2_consumer, |
331 | }; | 330 | }; |
332 | 331 | ||
333 | static struct regulator_init_data aquila_buck3_data = { | 332 | static struct regulator_init_data aquila_buck3_data = { |
@@ -391,26 +390,14 @@ static struct max8998_platform_data aquila_max8998_pdata = { | |||
391 | #endif | 390 | #endif |
392 | 391 | ||
393 | static struct regulator_consumer_supply wm8994_fixed_voltage0_supplies[] = { | 392 | static struct regulator_consumer_supply wm8994_fixed_voltage0_supplies[] = { |
394 | { | 393 | REGULATOR_SUPPLY("DBVDD", "5-001a"), |
395 | .dev_name = "5-001a", | 394 | REGULATOR_SUPPLY("AVDD2", "5-001a"), |
396 | .supply = "DBVDD", | 395 | REGULATOR_SUPPLY("CPVDD", "5-001a"), |
397 | }, { | ||
398 | .dev_name = "5-001a", | ||
399 | .supply = "AVDD2", | ||
400 | }, { | ||
401 | .dev_name = "5-001a", | ||
402 | .supply = "CPVDD", | ||
403 | }, | ||
404 | }; | 396 | }; |
405 | 397 | ||
406 | static struct regulator_consumer_supply wm8994_fixed_voltage1_supplies[] = { | 398 | static struct regulator_consumer_supply wm8994_fixed_voltage1_supplies[] = { |
407 | { | 399 | REGULATOR_SUPPLY("SPKVDD1", "5-001a"), |
408 | .dev_name = "5-001a", | 400 | REGULATOR_SUPPLY("SPKVDD2", "5-001a"), |
409 | .supply = "SPKVDD1", | ||
410 | }, { | ||
411 | .dev_name = "5-001a", | ||
412 | .supply = "SPKVDD2", | ||
413 | }, | ||
414 | }; | 401 | }; |
415 | 402 | ||
416 | static struct regulator_init_data wm8994_fixed_voltage0_init_data = { | 403 | static struct regulator_init_data wm8994_fixed_voltage0_init_data = { |
@@ -459,15 +446,11 @@ static struct platform_device wm8994_fixed_voltage1 = { | |||
459 | }, | 446 | }, |
460 | }; | 447 | }; |
461 | 448 | ||
462 | static struct regulator_consumer_supply wm8994_avdd1_supply = { | 449 | static struct regulator_consumer_supply wm8994_avdd1_supply = |
463 | .dev_name = "5-001a", | 450 | REGULATOR_SUPPLY("AVDD1", "5-001a"); |
464 | .supply = "AVDD1", | ||
465 | }; | ||
466 | 451 | ||
467 | static struct regulator_consumer_supply wm8994_dcvdd_supply = { | 452 | static struct regulator_consumer_supply wm8994_dcvdd_supply = |
468 | .dev_name = "5-001a", | 453 | REGULATOR_SUPPLY("DCVDD", "5-001a"); |
469 | .supply = "DCVDD", | ||
470 | }; | ||
471 | 454 | ||
472 | static struct regulator_init_data wm8994_ldo1_data = { | 455 | static struct regulator_init_data wm8994_ldo1_data = { |
473 | .constraints = { | 456 | .constraints = { |
@@ -664,6 +647,7 @@ static void __init aquila_map_io(void) | |||
664 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); | 647 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); |
665 | s3c24xx_init_clocks(24000000); | 648 | s3c24xx_init_clocks(24000000); |
666 | s3c24xx_init_uarts(aquila_uartcfgs, ARRAY_SIZE(aquila_uartcfgs)); | 649 | s3c24xx_init_uarts(aquila_uartcfgs, ARRAY_SIZE(aquila_uartcfgs)); |
650 | s5p_set_timer_source(S5P_PWM3, S5P_PWM4); | ||
667 | } | 651 | } |
668 | 652 | ||
669 | static void __init aquila_machine_init(void) | 653 | static void __init aquila_machine_init(void) |
@@ -698,5 +682,5 @@ MACHINE_START(AQUILA, "Aquila") | |||
698 | .init_irq = s5pv210_init_irq, | 682 | .init_irq = s5pv210_init_irq, |
699 | .map_io = aquila_map_io, | 683 | .map_io = aquila_map_io, |
700 | .init_machine = aquila_machine_init, | 684 | .init_machine = aquila_machine_init, |
701 | .timer = &s3c24xx_timer, | 685 | .timer = &s5p_timer, |
702 | MACHINE_END | 686 | MACHINE_END |