diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-10-17 04:41:07 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-10-17 04:41:07 -0400 |
commit | 479535edd96d797681d0323a90024da2b1e1a685 (patch) | |
tree | 748bf5bfee84ee86730c6f3b52ecc38ea5cf2d08 /arch/arm/mach-s3c64xx/mach-crag6410.c | |
parent | a006aea62876add2590e3819bcf8954a863b130a (diff) |
ARM: S3C64XX: Update hookup for Arizona class devices
Renumber to use SPI /CS 1 instead of 0 to allow coexistance with DSPs.
Also add additional supplies for the devices while we're at it.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s3c64xx/mach-crag6410.c')
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-crag6410.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/arch/arm/mach-s3c64xx/mach-crag6410.c b/arch/arm/mach-s3c64xx/mach-crag6410.c index 13b7eaa45fd0..6d5b2c668825 100644 --- a/arch/arm/mach-s3c64xx/mach-crag6410.c +++ b/arch/arm/mach-s3c64xx/mach-crag6410.c | |||
@@ -304,6 +304,13 @@ static struct regulator_consumer_supply wallvdd_consumers[] = { | |||
304 | REGULATOR_SUPPLY("SPKVDDL", "1-001a"), | 304 | REGULATOR_SUPPLY("SPKVDDL", "1-001a"), |
305 | REGULATOR_SUPPLY("SPKVDDR", "1-001a"), | 305 | REGULATOR_SUPPLY("SPKVDDR", "1-001a"), |
306 | 306 | ||
307 | REGULATOR_SUPPLY("SPKVDDL", "spi0.1"), | ||
308 | REGULATOR_SUPPLY("SPKVDDR", "spi0.1"), | ||
309 | REGULATOR_SUPPLY("SPKVDDL", "wm5102-codec"), | ||
310 | REGULATOR_SUPPLY("SPKVDDR", "wm5102-codec"), | ||
311 | REGULATOR_SUPPLY("SPKVDDL", "wm5110-codec"), | ||
312 | REGULATOR_SUPPLY("SPKVDDR", "wm5110-codec"), | ||
313 | |||
307 | REGULATOR_SUPPLY("DC1VDD", "0-0034"), | 314 | REGULATOR_SUPPLY("DC1VDD", "0-0034"), |
308 | REGULATOR_SUPPLY("DC2VDD", "0-0034"), | 315 | REGULATOR_SUPPLY("DC2VDD", "0-0034"), |
309 | REGULATOR_SUPPLY("DC3VDD", "0-0034"), | 316 | REGULATOR_SUPPLY("DC3VDD", "0-0034"), |
@@ -597,6 +604,7 @@ static struct s3c2410_platform_i2c i2c0_pdata = { | |||
597 | static struct regulator_consumer_supply pvdd_1v2_consumers[] __devinitdata = { | 604 | static struct regulator_consumer_supply pvdd_1v2_consumers[] __devinitdata = { |
598 | REGULATOR_SUPPLY("DCVDD", "spi0.0"), | 605 | REGULATOR_SUPPLY("DCVDD", "spi0.0"), |
599 | REGULATOR_SUPPLY("AVDD", "spi0.0"), | 606 | REGULATOR_SUPPLY("AVDD", "spi0.0"), |
607 | REGULATOR_SUPPLY("AVDD", "spi0.1"), | ||
600 | }; | 608 | }; |
601 | 609 | ||
602 | static struct regulator_init_data pvdd_1v2 __devinitdata = { | 610 | static struct regulator_init_data pvdd_1v2 __devinitdata = { |
@@ -621,6 +629,19 @@ static struct regulator_consumer_supply pvdd_1v8_consumers[] __devinitdata = { | |||
621 | REGULATOR_SUPPLY("DCVDD", "1-001a"), | 629 | REGULATOR_SUPPLY("DCVDD", "1-001a"), |
622 | REGULATOR_SUPPLY("AVDD", "1-001a"), | 630 | REGULATOR_SUPPLY("AVDD", "1-001a"), |
623 | REGULATOR_SUPPLY("DBVDD", "spi0.0"), | 631 | REGULATOR_SUPPLY("DBVDD", "spi0.0"), |
632 | REGULATOR_SUPPLY("DBVDD1", "spi0.1"), | ||
633 | REGULATOR_SUPPLY("DBVDD2", "spi0.1"), | ||
634 | REGULATOR_SUPPLY("DBVDD3", "spi0.1"), | ||
635 | REGULATOR_SUPPLY("LDOVDD", "spi0.1"), | ||
636 | REGULATOR_SUPPLY("CPVDD", "spi0.1"), | ||
637 | |||
638 | REGULATOR_SUPPLY("DBVDD2", "wm5102-codec"), | ||
639 | REGULATOR_SUPPLY("DBVDD3", "wm5102-codec"), | ||
640 | REGULATOR_SUPPLY("CPVDD", "wm5102-codec"), | ||
641 | |||
642 | REGULATOR_SUPPLY("DBVDD2", "wm5110-codec"), | ||
643 | REGULATOR_SUPPLY("DBVDD3", "wm5110-codec"), | ||
644 | REGULATOR_SUPPLY("CPVDD", "wm5110-codec"), | ||
624 | }; | 645 | }; |
625 | 646 | ||
626 | static struct regulator_init_data pvdd_1v8 __devinitdata = { | 647 | static struct regulator_init_data pvdd_1v8 __devinitdata = { |
@@ -810,7 +831,7 @@ static void __init crag6410_machine_init(void) | |||
810 | i2c_register_board_info(1, i2c_devs1, ARRAY_SIZE(i2c_devs1)); | 831 | i2c_register_board_info(1, i2c_devs1, ARRAY_SIZE(i2c_devs1)); |
811 | 832 | ||
812 | samsung_keypad_set_platdata(&crag6410_keypad_data); | 833 | samsung_keypad_set_platdata(&crag6410_keypad_data); |
813 | s3c64xx_spi0_set_platdata(NULL, 0, 1); | 834 | s3c64xx_spi0_set_platdata(NULL, 0, 2); |
814 | 835 | ||
815 | platform_add_devices(crag6410_devices, ARRAY_SIZE(crag6410_devices)); | 836 | platform_add_devices(crag6410_devices, ARRAY_SIZE(crag6410_devices)); |
816 | 837 | ||