diff options
Diffstat (limited to 'arch/arm/mach-s3c64xx/mach-crag6410.c')
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-crag6410.c | 49 |
1 files changed, 46 insertions, 3 deletions
diff --git a/arch/arm/mach-s3c64xx/mach-crag6410.c b/arch/arm/mach-s3c64xx/mach-crag6410.c index 13b7eaa45fd0..701f421de1a8 100644 --- a/arch/arm/mach-s3c64xx/mach-crag6410.c +++ b/arch/arm/mach-s3c64xx/mach-crag6410.c | |||
@@ -287,16 +287,21 @@ static struct platform_device littlemill_device = { | |||
287 | .id = -1, | 287 | .id = -1, |
288 | }; | 288 | }; |
289 | 289 | ||
290 | static struct platform_device bells_wm5102_device = { | 290 | static struct platform_device bells_wm2200_device = { |
291 | .name = "bells", | 291 | .name = "bells", |
292 | .id = 0, | 292 | .id = 0, |
293 | }; | 293 | }; |
294 | 294 | ||
295 | static struct platform_device bells_wm5110_device = { | 295 | static struct platform_device bells_wm5102_device = { |
296 | .name = "bells", | 296 | .name = "bells", |
297 | .id = 1, | 297 | .id = 1, |
298 | }; | 298 | }; |
299 | 299 | ||
300 | static struct platform_device bells_wm5110_device = { | ||
301 | .name = "bells", | ||
302 | .id = 2, | ||
303 | }; | ||
304 | |||
300 | static struct regulator_consumer_supply wallvdd_consumers[] = { | 305 | static struct regulator_consumer_supply wallvdd_consumers[] = { |
301 | REGULATOR_SUPPLY("SPKVDD", "1-001a"), | 306 | REGULATOR_SUPPLY("SPKVDD", "1-001a"), |
302 | REGULATOR_SUPPLY("SPKVDD1", "1-001a"), | 307 | REGULATOR_SUPPLY("SPKVDD1", "1-001a"), |
@@ -304,6 +309,13 @@ static struct regulator_consumer_supply wallvdd_consumers[] = { | |||
304 | REGULATOR_SUPPLY("SPKVDDL", "1-001a"), | 309 | REGULATOR_SUPPLY("SPKVDDL", "1-001a"), |
305 | REGULATOR_SUPPLY("SPKVDDR", "1-001a"), | 310 | REGULATOR_SUPPLY("SPKVDDR", "1-001a"), |
306 | 311 | ||
312 | REGULATOR_SUPPLY("SPKVDDL", "spi0.1"), | ||
313 | REGULATOR_SUPPLY("SPKVDDR", "spi0.1"), | ||
314 | REGULATOR_SUPPLY("SPKVDDL", "wm5102-codec"), | ||
315 | REGULATOR_SUPPLY("SPKVDDR", "wm5102-codec"), | ||
316 | REGULATOR_SUPPLY("SPKVDDL", "wm5110-codec"), | ||
317 | REGULATOR_SUPPLY("SPKVDDR", "wm5110-codec"), | ||
318 | |||
307 | REGULATOR_SUPPLY("DC1VDD", "0-0034"), | 319 | REGULATOR_SUPPLY("DC1VDD", "0-0034"), |
308 | REGULATOR_SUPPLY("DC2VDD", "0-0034"), | 320 | REGULATOR_SUPPLY("DC2VDD", "0-0034"), |
309 | REGULATOR_SUPPLY("DC3VDD", "0-0034"), | 321 | REGULATOR_SUPPLY("DC3VDD", "0-0034"), |
@@ -321,6 +333,16 @@ static struct regulator_consumer_supply wallvdd_consumers[] = { | |||
321 | REGULATOR_SUPPLY("DC1VDD", "1-0034"), | 333 | REGULATOR_SUPPLY("DC1VDD", "1-0034"), |
322 | REGULATOR_SUPPLY("DC2VDD", "1-0034"), | 334 | REGULATOR_SUPPLY("DC2VDD", "1-0034"), |
323 | REGULATOR_SUPPLY("DC3VDD", "1-0034"), | 335 | REGULATOR_SUPPLY("DC3VDD", "1-0034"), |
336 | REGULATOR_SUPPLY("LDO1VDD", "1-0034"), | ||
337 | REGULATOR_SUPPLY("LDO2VDD", "1-0034"), | ||
338 | REGULATOR_SUPPLY("LDO4VDD", "1-0034"), | ||
339 | REGULATOR_SUPPLY("LDO5VDD", "1-0034"), | ||
340 | REGULATOR_SUPPLY("LDO6VDD", "1-0034"), | ||
341 | REGULATOR_SUPPLY("LDO7VDD", "1-0034"), | ||
342 | REGULATOR_SUPPLY("LDO8VDD", "1-0034"), | ||
343 | REGULATOR_SUPPLY("LDO9VDD", "1-0034"), | ||
344 | REGULATOR_SUPPLY("LDO10VDD", "1-0034"), | ||
345 | REGULATOR_SUPPLY("LDO11VDD", "1-0034"), | ||
324 | }; | 346 | }; |
325 | 347 | ||
326 | static struct regulator_init_data wallvdd_data = { | 348 | static struct regulator_init_data wallvdd_data = { |
@@ -369,6 +391,7 @@ static struct platform_device *crag6410_devices[] __initdata = { | |||
369 | &tobermory_device, | 391 | &tobermory_device, |
370 | &littlemill_device, | 392 | &littlemill_device, |
371 | &lowland_device, | 393 | &lowland_device, |
394 | &bells_wm2200_device, | ||
372 | &bells_wm5102_device, | 395 | &bells_wm5102_device, |
373 | &bells_wm5110_device, | 396 | &bells_wm5110_device, |
374 | &wallvdd_device, | 397 | &wallvdd_device, |
@@ -597,6 +620,7 @@ static struct s3c2410_platform_i2c i2c0_pdata = { | |||
597 | static struct regulator_consumer_supply pvdd_1v2_consumers[] __devinitdata = { | 620 | static struct regulator_consumer_supply pvdd_1v2_consumers[] __devinitdata = { |
598 | REGULATOR_SUPPLY("DCVDD", "spi0.0"), | 621 | REGULATOR_SUPPLY("DCVDD", "spi0.0"), |
599 | REGULATOR_SUPPLY("AVDD", "spi0.0"), | 622 | REGULATOR_SUPPLY("AVDD", "spi0.0"), |
623 | REGULATOR_SUPPLY("AVDD", "spi0.1"), | ||
600 | }; | 624 | }; |
601 | 625 | ||
602 | static struct regulator_init_data pvdd_1v2 __devinitdata = { | 626 | static struct regulator_init_data pvdd_1v2 __devinitdata = { |
@@ -621,6 +645,24 @@ static struct regulator_consumer_supply pvdd_1v8_consumers[] __devinitdata = { | |||
621 | REGULATOR_SUPPLY("DCVDD", "1-001a"), | 645 | REGULATOR_SUPPLY("DCVDD", "1-001a"), |
622 | REGULATOR_SUPPLY("AVDD", "1-001a"), | 646 | REGULATOR_SUPPLY("AVDD", "1-001a"), |
623 | REGULATOR_SUPPLY("DBVDD", "spi0.0"), | 647 | REGULATOR_SUPPLY("DBVDD", "spi0.0"), |
648 | |||
649 | REGULATOR_SUPPLY("DBVDD", "1-003a"), | ||
650 | REGULATOR_SUPPLY("LDOVDD", "1-003a"), | ||
651 | REGULATOR_SUPPLY("CPVDD", "1-003a"), | ||
652 | REGULATOR_SUPPLY("AVDD", "1-003a"), | ||
653 | REGULATOR_SUPPLY("DBVDD1", "spi0.1"), | ||
654 | REGULATOR_SUPPLY("DBVDD2", "spi0.1"), | ||
655 | REGULATOR_SUPPLY("DBVDD3", "spi0.1"), | ||
656 | REGULATOR_SUPPLY("LDOVDD", "spi0.1"), | ||
657 | REGULATOR_SUPPLY("CPVDD", "spi0.1"), | ||
658 | |||
659 | REGULATOR_SUPPLY("DBVDD2", "wm5102-codec"), | ||
660 | REGULATOR_SUPPLY("DBVDD3", "wm5102-codec"), | ||
661 | REGULATOR_SUPPLY("CPVDD", "wm5102-codec"), | ||
662 | |||
663 | REGULATOR_SUPPLY("DBVDD2", "wm5110-codec"), | ||
664 | REGULATOR_SUPPLY("DBVDD3", "wm5110-codec"), | ||
665 | REGULATOR_SUPPLY("CPVDD", "wm5110-codec"), | ||
624 | }; | 666 | }; |
625 | 667 | ||
626 | static struct regulator_init_data pvdd_1v8 __devinitdata = { | 668 | static struct regulator_init_data pvdd_1v8 __devinitdata = { |
@@ -685,6 +727,7 @@ static struct i2c_board_info i2c_devs1[] __devinitdata = { | |||
685 | .irq = S3C_EINT(0), | 727 | .irq = S3C_EINT(0), |
686 | .platform_data = &glenfarclas_pmic_pdata }, | 728 | .platform_data = &glenfarclas_pmic_pdata }, |
687 | 729 | ||
730 | { I2C_BOARD_INFO("wlf-gf-module", 0x20) }, | ||
688 | { I2C_BOARD_INFO("wlf-gf-module", 0x22) }, | 731 | { I2C_BOARD_INFO("wlf-gf-module", 0x22) }, |
689 | { I2C_BOARD_INFO("wlf-gf-module", 0x24) }, | 732 | { I2C_BOARD_INFO("wlf-gf-module", 0x24) }, |
690 | { I2C_BOARD_INFO("wlf-gf-module", 0x25) }, | 733 | { I2C_BOARD_INFO("wlf-gf-module", 0x25) }, |
@@ -810,7 +853,7 @@ static void __init crag6410_machine_init(void) | |||
810 | i2c_register_board_info(1, i2c_devs1, ARRAY_SIZE(i2c_devs1)); | 853 | i2c_register_board_info(1, i2c_devs1, ARRAY_SIZE(i2c_devs1)); |
811 | 854 | ||
812 | samsung_keypad_set_platdata(&crag6410_keypad_data); | 855 | samsung_keypad_set_platdata(&crag6410_keypad_data); |
813 | s3c64xx_spi0_set_platdata(NULL, 0, 1); | 856 | s3c64xx_spi0_set_platdata(NULL, 0, 2); |
814 | 857 | ||
815 | platform_add_devices(crag6410_devices, ARRAY_SIZE(crag6410_devices)); | 858 | platform_add_devices(crag6410_devices, ARRAY_SIZE(crag6410_devices)); |
816 | 859 | ||