diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-17 22:08:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-17 22:08:06 -0400 |
commit | 411f5c7a502769ccc0377c5ba36cb0b283847ba8 (patch) | |
tree | 2c3a29671e3f923de48c55f94194849264a7bf53 /arch/arm/mach-s5pv210/mach-goni.c | |
parent | 6d7ed21d17e640b120b902a314143e5ef4917a70 (diff) | |
parent | 9ced9f03d12d7539e86b0bff5bc750153c976c34 (diff) |
Merge branch 'devel-stable' of master.kernel.org:/home/rmk/linux-2.6-arm
* 'devel-stable' of master.kernel.org:/home/rmk/linux-2.6-arm: (289 commits)
davinci: DM644x EVM: register MUSB device earlier
davinci: add spi devices on tnetv107x evm
davinci: add ssp config for tnetv107x evm board
davinci: add tnetv107x ssp platform device
spi: add ti-ssp spi master driver
mfd: add driver for sequencer serial port
ARM: EXYNOS4: Implement Clock gating for System MMU
ARM: EXYNOS4: Enhancement of System MMU driver
ARM: EXYNOS4: Add support for gpio interrupts
ARM: S5P: Add function to register gpio interrupt bank data
ARM: S5P: Cleanup S5P gpio interrupt code
ARM: EXYNOS4: Add missing GPYx banks
ARM: S3C64XX: Fix section mismatch from cpufreq init
ARM: EXYNOS4: Add keypad device to the SMDKV310
ARM: EXYNOS4: Update clocks for keypad
ARM: EXYNOS4: Update keypad base address
ARM: EXYNOS4: Add keypad device helpers
ARM: EXYNOS4: Add support for SATA on ARMLEX4210
plat-nomadik: make GPIO interrupts work with cpuidle ApSleep
mach-u300: define a dummy filter function for coh901318
...
Fix up various conflicts in
- arch/arm/mach-exynos4/cpufreq.c
- arch/arm/mach-mxs/gpio.c
- drivers/net/Kconfig
- drivers/tty/serial/Kconfig
- drivers/tty/serial/Makefile
- drivers/usb/gadget/fsl_mxc_udc.c
- drivers/video/Kconfig
Diffstat (limited to 'arch/arm/mach-s5pv210/mach-goni.c')
-rw-r--r-- | arch/arm/mach-s5pv210/mach-goni.c | 107 |
1 files changed, 62 insertions, 45 deletions
diff --git a/arch/arm/mach-s5pv210/mach-goni.c b/arch/arm/mach-s5pv210/mach-goni.c index 056f5c769b0a..243291722c66 100644 --- a/arch/arm/mach-s5pv210/mach-goni.c +++ b/arch/arm/mach-s5pv210/mach-goni.c | |||
@@ -45,6 +45,7 @@ | |||
45 | #include <plat/keypad.h> | 45 | #include <plat/keypad.h> |
46 | #include <plat/sdhci.h> | 46 | #include <plat/sdhci.h> |
47 | #include <plat/clock.h> | 47 | #include <plat/clock.h> |
48 | #include <plat/s5p-time.h> | ||
48 | 49 | ||
49 | /* Following are default values for UCON, ULCON and UFCON UART registers */ | 50 | /* Following are default values for UCON, ULCON and UFCON UART registers */ |
50 | #define GONI_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ | 51 | #define GONI_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ |
@@ -108,6 +109,8 @@ static struct s3c_fb_pd_win goni_fb_win0 = { | |||
108 | }, | 109 | }, |
109 | .max_bpp = 32, | 110 | .max_bpp = 32, |
110 | .default_bpp = 16, | 111 | .default_bpp = 16, |
112 | .virtual_x = 480, | ||
113 | .virtual_y = 2 * 800, | ||
111 | }; | 114 | }; |
112 | 115 | ||
113 | static struct s3c_fb_platdata goni_lcd_pdata __initdata = { | 116 | static struct s3c_fb_platdata goni_lcd_pdata __initdata = { |
@@ -269,10 +272,30 @@ static void __init goni_tsp_init(void) | |||
269 | /* MAX8998 regulators */ | 272 | /* MAX8998 regulators */ |
270 | #if defined(CONFIG_REGULATOR_MAX8998) || defined(CONFIG_REGULATOR_MAX8998_MODULE) | 273 | #if defined(CONFIG_REGULATOR_MAX8998) || defined(CONFIG_REGULATOR_MAX8998_MODULE) |
271 | 274 | ||
275 | static struct regulator_consumer_supply goni_ldo3_consumers[] = { | ||
276 | REGULATOR_SUPPLY("vusb_a", "s3c-hsotg"), | ||
277 | }; | ||
278 | |||
272 | static struct regulator_consumer_supply goni_ldo5_consumers[] = { | 279 | static struct regulator_consumer_supply goni_ldo5_consumers[] = { |
273 | REGULATOR_SUPPLY("vmmc", "s3c-sdhci.0"), | 280 | REGULATOR_SUPPLY("vmmc", "s3c-sdhci.0"), |
274 | }; | 281 | }; |
275 | 282 | ||
283 | static struct regulator_consumer_supply goni_ldo8_consumers[] = { | ||
284 | REGULATOR_SUPPLY("vusb_d", "s3c-hsotg"), | ||
285 | }; | ||
286 | |||
287 | static struct regulator_consumer_supply goni_ldo11_consumers[] = { | ||
288 | REGULATOR_SUPPLY("vddio", "0-0030"), /* "CAM_IO_2.8V" */ | ||
289 | }; | ||
290 | |||
291 | static struct regulator_consumer_supply goni_ldo13_consumers[] = { | ||
292 | REGULATOR_SUPPLY("vdda", "0-0030"), /* "CAM_A_2.8V" */ | ||
293 | }; | ||
294 | |||
295 | static struct regulator_consumer_supply goni_ldo14_consumers[] = { | ||
296 | REGULATOR_SUPPLY("vdd_core", "0-0030"), /* "CAM_CIF_1.8V" */ | ||
297 | }; | ||
298 | |||
276 | static struct regulator_init_data goni_ldo2_data = { | 299 | static struct regulator_init_data goni_ldo2_data = { |
277 | .constraints = { | 300 | .constraints = { |
278 | .name = "VALIVE_1.1V", | 301 | .name = "VALIVE_1.1V", |
@@ -292,8 +315,10 @@ static struct regulator_init_data goni_ldo3_data = { | |||
292 | .min_uV = 1100000, | 315 | .min_uV = 1100000, |
293 | .max_uV = 1100000, | 316 | .max_uV = 1100000, |
294 | .apply_uV = 1, | 317 | .apply_uV = 1, |
295 | .always_on = 1, | 318 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
296 | }, | 319 | }, |
320 | .num_consumer_supplies = ARRAY_SIZE(goni_ldo3_consumers), | ||
321 | .consumer_supplies = goni_ldo3_consumers, | ||
297 | }; | 322 | }; |
298 | 323 | ||
299 | static struct regulator_init_data goni_ldo4_data = { | 324 | static struct regulator_init_data goni_ldo4_data = { |
@@ -311,6 +336,7 @@ static struct regulator_init_data goni_ldo5_data = { | |||
311 | .min_uV = 2800000, | 336 | .min_uV = 2800000, |
312 | .max_uV = 2800000, | 337 | .max_uV = 2800000, |
313 | .apply_uV = 1, | 338 | .apply_uV = 1, |
339 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | ||
314 | }, | 340 | }, |
315 | .num_consumer_supplies = ARRAY_SIZE(goni_ldo5_consumers), | 341 | .num_consumer_supplies = ARRAY_SIZE(goni_ldo5_consumers), |
316 | .consumer_supplies = goni_ldo5_consumers, | 342 | .consumer_supplies = goni_ldo5_consumers, |
@@ -341,8 +367,10 @@ static struct regulator_init_data goni_ldo8_data = { | |||
341 | .min_uV = 3300000, | 367 | .min_uV = 3300000, |
342 | .max_uV = 3300000, | 368 | .max_uV = 3300000, |
343 | .apply_uV = 1, | 369 | .apply_uV = 1, |
344 | .always_on = 1, | 370 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
345 | }, | 371 | }, |
372 | .num_consumer_supplies = ARRAY_SIZE(goni_ldo8_consumers), | ||
373 | .consumer_supplies = goni_ldo8_consumers, | ||
346 | }; | 374 | }; |
347 | 375 | ||
348 | static struct regulator_init_data goni_ldo9_data = { | 376 | static struct regulator_init_data goni_ldo9_data = { |
@@ -351,7 +379,6 @@ static struct regulator_init_data goni_ldo9_data = { | |||
351 | .min_uV = 2800000, | 379 | .min_uV = 2800000, |
352 | .max_uV = 2800000, | 380 | .max_uV = 2800000, |
353 | .apply_uV = 1, | 381 | .apply_uV = 1, |
354 | .always_on = 1, | ||
355 | }, | 382 | }, |
356 | }; | 383 | }; |
357 | 384 | ||
@@ -371,8 +398,10 @@ static struct regulator_init_data goni_ldo11_data = { | |||
371 | .min_uV = 2800000, | 398 | .min_uV = 2800000, |
372 | .max_uV = 2800000, | 399 | .max_uV = 2800000, |
373 | .apply_uV = 1, | 400 | .apply_uV = 1, |
374 | .always_on = 1, | 401 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
375 | }, | 402 | }, |
403 | .num_consumer_supplies = ARRAY_SIZE(goni_ldo11_consumers), | ||
404 | .consumer_supplies = goni_ldo11_consumers, | ||
376 | }; | 405 | }; |
377 | 406 | ||
378 | static struct regulator_init_data goni_ldo12_data = { | 407 | static struct regulator_init_data goni_ldo12_data = { |
@@ -381,7 +410,6 @@ static struct regulator_init_data goni_ldo12_data = { | |||
381 | .min_uV = 1200000, | 410 | .min_uV = 1200000, |
382 | .max_uV = 1200000, | 411 | .max_uV = 1200000, |
383 | .apply_uV = 1, | 412 | .apply_uV = 1, |
384 | .always_on = 1, | ||
385 | }, | 413 | }, |
386 | }; | 414 | }; |
387 | 415 | ||
@@ -391,8 +419,10 @@ static struct regulator_init_data goni_ldo13_data = { | |||
391 | .min_uV = 2800000, | 419 | .min_uV = 2800000, |
392 | .max_uV = 2800000, | 420 | .max_uV = 2800000, |
393 | .apply_uV = 1, | 421 | .apply_uV = 1, |
394 | .always_on = 1, | 422 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
395 | }, | 423 | }, |
424 | .num_consumer_supplies = ARRAY_SIZE(goni_ldo13_consumers), | ||
425 | .consumer_supplies = goni_ldo13_consumers, | ||
396 | }; | 426 | }; |
397 | 427 | ||
398 | static struct regulator_init_data goni_ldo14_data = { | 428 | static struct regulator_init_data goni_ldo14_data = { |
@@ -401,8 +431,10 @@ static struct regulator_init_data goni_ldo14_data = { | |||
401 | .min_uV = 1800000, | 431 | .min_uV = 1800000, |
402 | .max_uV = 1800000, | 432 | .max_uV = 1800000, |
403 | .apply_uV = 1, | 433 | .apply_uV = 1, |
404 | .always_on = 1, | 434 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
405 | }, | 435 | }, |
436 | .num_consumer_supplies = ARRAY_SIZE(goni_ldo14_consumers), | ||
437 | .consumer_supplies = goni_ldo14_consumers, | ||
406 | }; | 438 | }; |
407 | 439 | ||
408 | static struct regulator_init_data goni_ldo15_data = { | 440 | static struct regulator_init_data goni_ldo15_data = { |
@@ -411,7 +443,6 @@ static struct regulator_init_data goni_ldo15_data = { | |||
411 | .min_uV = 3300000, | 443 | .min_uV = 3300000, |
412 | .max_uV = 3300000, | 444 | .max_uV = 3300000, |
413 | .apply_uV = 1, | 445 | .apply_uV = 1, |
414 | .always_on = 1, | ||
415 | }, | 446 | }, |
416 | }; | 447 | }; |
417 | 448 | ||
@@ -421,7 +452,6 @@ static struct regulator_init_data goni_ldo16_data = { | |||
421 | .min_uV = 1800000, | 452 | .min_uV = 1800000, |
422 | .max_uV = 1800000, | 453 | .max_uV = 1800000, |
423 | .apply_uV = 1, | 454 | .apply_uV = 1, |
424 | .always_on = 1, | ||
425 | }, | 455 | }, |
426 | }; | 456 | }; |
427 | 457 | ||
@@ -436,13 +466,11 @@ static struct regulator_init_data goni_ldo17_data = { | |||
436 | }; | 466 | }; |
437 | 467 | ||
438 | /* BUCK */ | 468 | /* BUCK */ |
439 | static struct regulator_consumer_supply buck1_consumer[] = { | 469 | static struct regulator_consumer_supply buck1_consumer = |
440 | { .supply = "vddarm", }, | 470 | REGULATOR_SUPPLY("vddarm", NULL); |
441 | }; | ||
442 | 471 | ||
443 | static struct regulator_consumer_supply buck2_consumer[] = { | 472 | static struct regulator_consumer_supply buck2_consumer = |
444 | { .supply = "vddint", }, | 473 | REGULATOR_SUPPLY("vddint", NULL); |
445 | }; | ||
446 | 474 | ||
447 | static struct regulator_init_data goni_buck1_data = { | 475 | static struct regulator_init_data goni_buck1_data = { |
448 | .constraints = { | 476 | .constraints = { |
@@ -453,8 +481,8 @@ static struct regulator_init_data goni_buck1_data = { | |||
453 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | | 481 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | |
454 | REGULATOR_CHANGE_STATUS, | 482 | REGULATOR_CHANGE_STATUS, |
455 | }, | 483 | }, |
456 | .num_consumer_supplies = ARRAY_SIZE(buck1_consumer), | 484 | .num_consumer_supplies = 1, |
457 | .consumer_supplies = buck1_consumer, | 485 | .consumer_supplies = &buck1_consumer, |
458 | }; | 486 | }; |
459 | 487 | ||
460 | static struct regulator_init_data goni_buck2_data = { | 488 | static struct regulator_init_data goni_buck2_data = { |
@@ -466,8 +494,8 @@ static struct regulator_init_data goni_buck2_data = { | |||
466 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | | 494 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | |
467 | REGULATOR_CHANGE_STATUS, | 495 | REGULATOR_CHANGE_STATUS, |
468 | }, | 496 | }, |
469 | .num_consumer_supplies = ARRAY_SIZE(buck2_consumer), | 497 | .num_consumer_supplies = 1, |
470 | .consumer_supplies = buck2_consumer, | 498 | .consumer_supplies = &buck2_consumer, |
471 | }; | 499 | }; |
472 | 500 | ||
473 | static struct regulator_init_data goni_buck3_data = { | 501 | static struct regulator_init_data goni_buck3_data = { |
@@ -531,26 +559,14 @@ static struct max8998_platform_data goni_max8998_pdata = { | |||
531 | #endif | 559 | #endif |
532 | 560 | ||
533 | static struct regulator_consumer_supply wm8994_fixed_voltage0_supplies[] = { | 561 | static struct regulator_consumer_supply wm8994_fixed_voltage0_supplies[] = { |
534 | { | 562 | REGULATOR_SUPPLY("DBVDD", "5-001a"), |
535 | .dev_name = "5-001a", | 563 | REGULATOR_SUPPLY("AVDD2", "5-001a"), |
536 | .supply = "DBVDD", | 564 | REGULATOR_SUPPLY("CPVDD", "5-001a"), |
537 | }, { | ||
538 | .dev_name = "5-001a", | ||
539 | .supply = "AVDD2", | ||
540 | }, { | ||
541 | .dev_name = "5-001a", | ||
542 | .supply = "CPVDD", | ||
543 | }, | ||
544 | }; | 565 | }; |
545 | 566 | ||
546 | static struct regulator_consumer_supply wm8994_fixed_voltage1_supplies[] = { | 567 | static struct regulator_consumer_supply wm8994_fixed_voltage1_supplies[] = { |
547 | { | 568 | REGULATOR_SUPPLY("SPKVDD1", "5-001a"), |
548 | .dev_name = "5-001a", | 569 | REGULATOR_SUPPLY("SPKVDD2", "5-001a"), |
549 | .supply = "SPKVDD1", | ||
550 | }, { | ||
551 | .dev_name = "5-001a", | ||
552 | .supply = "SPKVDD2", | ||
553 | }, | ||
554 | }; | 570 | }; |
555 | 571 | ||
556 | static struct regulator_init_data wm8994_fixed_voltage0_init_data = { | 572 | static struct regulator_init_data wm8994_fixed_voltage0_init_data = { |
@@ -599,15 +615,11 @@ static struct platform_device wm8994_fixed_voltage1 = { | |||
599 | }, | 615 | }, |
600 | }; | 616 | }; |
601 | 617 | ||
602 | static struct regulator_consumer_supply wm8994_avdd1_supply = { | 618 | static struct regulator_consumer_supply wm8994_avdd1_supply = |
603 | .dev_name = "5-001a", | 619 | REGULATOR_SUPPLY("AVDD1", "5-001a"); |
604 | .supply = "AVDD1", | ||
605 | }; | ||
606 | 620 | ||
607 | static struct regulator_consumer_supply wm8994_dcvdd_supply = { | 621 | static struct regulator_consumer_supply wm8994_dcvdd_supply = |
608 | .dev_name = "5-001a", | 622 | REGULATOR_SUPPLY("DCVDD", "5-001a"); |
609 | .supply = "DCVDD", | ||
610 | }; | ||
611 | 623 | ||
612 | static struct regulator_init_data wm8994_ldo1_data = { | 624 | static struct regulator_init_data wm8994_ldo1_data = { |
613 | .constraints = { | 625 | .constraints = { |
@@ -794,6 +806,7 @@ static struct platform_device *goni_devices[] __initdata = { | |||
794 | &goni_i2c_gpio5, | 806 | &goni_i2c_gpio5, |
795 | &mmc2_fixed_voltage, | 807 | &mmc2_fixed_voltage, |
796 | &goni_device_gpiokeys, | 808 | &goni_device_gpiokeys, |
809 | &s3c_device_i2c0, | ||
797 | &s5p_device_fimc0, | 810 | &s5p_device_fimc0, |
798 | &s5p_device_fimc1, | 811 | &s5p_device_fimc1, |
799 | &s5p_device_fimc2, | 812 | &s5p_device_fimc2, |
@@ -823,6 +836,7 @@ static void __init goni_map_io(void) | |||
823 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); | 836 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); |
824 | s3c24xx_init_clocks(24000000); | 837 | s3c24xx_init_clocks(24000000); |
825 | s3c24xx_init_uarts(goni_uartcfgs, ARRAY_SIZE(goni_uartcfgs)); | 838 | s3c24xx_init_uarts(goni_uartcfgs, ARRAY_SIZE(goni_uartcfgs)); |
839 | s5p_set_timer_source(S5P_PWM3, S5P_PWM4); | ||
826 | } | 840 | } |
827 | 841 | ||
828 | static void __init goni_machine_init(void) | 842 | static void __init goni_machine_init(void) |
@@ -830,6 +844,9 @@ static void __init goni_machine_init(void) | |||
830 | /* Radio: call before I2C 1 registeration */ | 844 | /* Radio: call before I2C 1 registeration */ |
831 | goni_radio_init(); | 845 | goni_radio_init(); |
832 | 846 | ||
847 | /* I2C0 */ | ||
848 | s3c_i2c0_set_platdata(NULL); | ||
849 | |||
833 | /* I2C1 */ | 850 | /* I2C1 */ |
834 | s3c_i2c1_set_platdata(NULL); | 851 | s3c_i2c1_set_platdata(NULL); |
835 | i2c_register_board_info(1, i2c1_devs, ARRAY_SIZE(i2c1_devs)); | 852 | i2c_register_board_info(1, i2c1_devs, ARRAY_SIZE(i2c1_devs)); |
@@ -873,5 +890,5 @@ MACHINE_START(GONI, "GONI") | |||
873 | .init_irq = s5pv210_init_irq, | 890 | .init_irq = s5pv210_init_irq, |
874 | .map_io = goni_map_io, | 891 | .map_io = goni_map_io, |
875 | .init_machine = goni_machine_init, | 892 | .init_machine = goni_machine_init, |
876 | .timer = &s3c24xx_timer, | 893 | .timer = &s5p_timer, |
877 | MACHINE_END | 894 | MACHINE_END |