aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c64xx/mach-crag6410.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-07-23 20:34:48 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-07-23 20:34:48 -0400
commitf1d2c07d331f717da79a42952be7dc1c0d35f846 (patch)
tree5bc98d2d63a37b688b40a4641855c512b385d0ae /arch/arm/mach-s3c64xx/mach-crag6410.c
parenta17f29a5e98c0a32a900a773083c719e27f4bc0e (diff)
parentd003e09891fdc0c170b99328eba7ed004809ef5a (diff)
Merge tag 'boards' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull arm-soc board specific updates from Arnd Bergmann: "These changes are all for individual board files. In the long run, those files will largely go away, and the amount of changes appears to be continuously decreasing, which is a good sign. This time around, changes are focused on tegra, omap and samsung." Fix conflicts in arch/arm/mach-{omap2/common-board-devices.c,tegra/Makefile.boot} as per the 'for-linus' branch. * tag 'boards' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (39 commits) ARM: EXYNOS: Add leds status1 and status2 on Origen board ARM: S3C64XX: Mark most Cragganmore initdata devinitdata ARM: EXYNOS: Add missing .reserve field to SMDKC210 ARM: EXYNOS: Add DRM device to SMDK4X12 board ARM: S3C64XX: Clean up after SPI driver platform data updates ARM: SAMSUNG: no need to set the value for clk_xusbxti when it is 24Mhz ARM: EXYNOS: Add framebuffer support for SMDK4X12 ARM: EXYNOS: Add HSOTG support to SMDK4X12 ARM: S5PV210: Add audio platform device in Goni board ARM: S5PV210: Add audio platform device in Aquila board ARM: EXYNOS: Add audio platform device in SMDKV310 board ARM: S3C64XX: Don't specify an irq_base for WM1192-EV1 board ARM: OMAP3: Fix omap3evm randconfig error introduced by VBUS support ARM: OMAP: board-omap4panda: MUX configuration for sys_nirq2 ARM: OMAP: board-4430sdp: MUX configuration for sys_nirq2 ARM: OMAP3530evm: set pendown_state and debounce time for ads7846 ARM: omap3evm: enable VBUS switch for EHCI tranceiver ARM: OMAP3EVM: Adding USB internal LDOs board file ARM: OMAP3EVM: Add NAND flash definition ARM: OMAP3: cm-t35: add tvp5150 decoder support ...
Diffstat (limited to 'arch/arm/mach-s3c64xx/mach-crag6410.c')
-rw-r--r--arch/arm/mach-s3c64xx/mach-crag6410.c69
1 files changed, 34 insertions, 35 deletions
diff --git a/arch/arm/mach-s3c64xx/mach-crag6410.c b/arch/arm/mach-s3c64xx/mach-crag6410.c
index 6dd4fae33a82..09cd81207a3f 100644
--- a/arch/arm/mach-s3c64xx/mach-crag6410.c
+++ b/arch/arm/mach-s3c64xx/mach-crag6410.c
@@ -171,7 +171,7 @@ static struct fb_videomode crag6410_lcd_timing = {
171}; 171};
172 172
173/* 405566 clocks per frame => 60Hz refresh requires 24333960Hz clock */ 173/* 405566 clocks per frame => 60Hz refresh requires 24333960Hz clock */
174static struct s3c_fb_platdata crag6410_lcd_pdata __initdata = { 174static struct s3c_fb_platdata crag6410_lcd_pdata __devinitdata = {
175 .setup_gpio = s3c64xx_fb_gpio_setup_24bpp, 175 .setup_gpio = s3c64xx_fb_gpio_setup_24bpp,
176 .vtiming = &crag6410_lcd_timing, 176 .vtiming = &crag6410_lcd_timing,
177 .win[0] = &crag6410_fb_win0, 177 .win[0] = &crag6410_fb_win0,
@@ -181,7 +181,7 @@ static struct s3c_fb_platdata crag6410_lcd_pdata __initdata = {
181 181
182/* 2x6 keypad */ 182/* 2x6 keypad */
183 183
184static uint32_t crag6410_keymap[] __initdata = { 184static uint32_t crag6410_keymap[] __devinitdata = {
185 /* KEY(row, col, keycode) */ 185 /* KEY(row, col, keycode) */
186 KEY(0, 0, KEY_VOLUMEUP), 186 KEY(0, 0, KEY_VOLUMEUP),
187 KEY(0, 1, KEY_HOME), 187 KEY(0, 1, KEY_HOME),
@@ -197,12 +197,12 @@ static uint32_t crag6410_keymap[] __initdata = {
197 KEY(1, 5, KEY_CAMERA), 197 KEY(1, 5, KEY_CAMERA),
198}; 198};
199 199
200static struct matrix_keymap_data crag6410_keymap_data __initdata = { 200static struct matrix_keymap_data crag6410_keymap_data __devinitdata = {
201 .keymap = crag6410_keymap, 201 .keymap = crag6410_keymap,
202 .keymap_size = ARRAY_SIZE(crag6410_keymap), 202 .keymap_size = ARRAY_SIZE(crag6410_keymap),
203}; 203};
204 204
205static struct samsung_keypad_platdata crag6410_keypad_data __initdata = { 205static struct samsung_keypad_platdata crag6410_keypad_data __devinitdata = {
206 .keymap_data = &crag6410_keymap_data, 206 .keymap_data = &crag6410_keymap_data,
207 .rows = 2, 207 .rows = 2,
208 .cols = 6, 208 .cols = 6,
@@ -373,11 +373,11 @@ static struct wm831x_buckv_pdata vddarm_pdata = {
373 .dvs_gpio = S3C64XX_GPK(0), 373 .dvs_gpio = S3C64XX_GPK(0),
374}; 374};
375 375
376static struct regulator_consumer_supply vddarm_consumers[] __initdata = { 376static struct regulator_consumer_supply vddarm_consumers[] __devinitdata = {
377 REGULATOR_SUPPLY("vddarm", NULL), 377 REGULATOR_SUPPLY("vddarm", NULL),
378}; 378};
379 379
380static struct regulator_init_data vddarm __initdata = { 380static struct regulator_init_data vddarm __devinitdata = {
381 .constraints = { 381 .constraints = {
382 .name = "VDDARM", 382 .name = "VDDARM",
383 .min_uV = 1000000, 383 .min_uV = 1000000,
@@ -391,11 +391,11 @@ static struct regulator_init_data vddarm __initdata = {
391 .driver_data = &vddarm_pdata, 391 .driver_data = &vddarm_pdata,
392}; 392};
393 393
394static struct regulator_consumer_supply vddint_consumers[] __initdata = { 394static struct regulator_consumer_supply vddint_consumers[] __devinitdata = {
395 REGULATOR_SUPPLY("vddint", NULL), 395 REGULATOR_SUPPLY("vddint", NULL),
396}; 396};
397 397
398static struct regulator_init_data vddint __initdata = { 398static struct regulator_init_data vddint __devinitdata = {
399 .constraints = { 399 .constraints = {
400 .name = "VDDINT", 400 .name = "VDDINT",
401 .min_uV = 1000000, 401 .min_uV = 1000000,
@@ -408,27 +408,27 @@ static struct regulator_init_data vddint __initdata = {
408 .supply_regulator = "WALLVDD", 408 .supply_regulator = "WALLVDD",
409}; 409};
410 410
411static struct regulator_init_data vddmem __initdata = { 411static struct regulator_init_data vddmem __devinitdata = {
412 .constraints = { 412 .constraints = {
413 .name = "VDDMEM", 413 .name = "VDDMEM",
414 .always_on = 1, 414 .always_on = 1,
415 }, 415 },
416}; 416};
417 417
418static struct regulator_init_data vddsys __initdata = { 418static struct regulator_init_data vddsys __devinitdata = {
419 .constraints = { 419 .constraints = {
420 .name = "VDDSYS,VDDEXT,VDDPCM,VDDSS", 420 .name = "VDDSYS,VDDEXT,VDDPCM,VDDSS",
421 .always_on = 1, 421 .always_on = 1,
422 }, 422 },
423}; 423};
424 424
425static struct regulator_consumer_supply vddmmc_consumers[] __initdata = { 425static struct regulator_consumer_supply vddmmc_consumers[] __devinitdata = {
426 REGULATOR_SUPPLY("vmmc", "s3c-sdhci.0"), 426 REGULATOR_SUPPLY("vmmc", "s3c-sdhci.0"),
427 REGULATOR_SUPPLY("vmmc", "s3c-sdhci.1"), 427 REGULATOR_SUPPLY("vmmc", "s3c-sdhci.1"),
428 REGULATOR_SUPPLY("vmmc", "s3c-sdhci.2"), 428 REGULATOR_SUPPLY("vmmc", "s3c-sdhci.2"),
429}; 429};
430 430
431static struct regulator_init_data vddmmc __initdata = { 431static struct regulator_init_data vddmmc __devinitdata = {
432 .constraints = { 432 .constraints = {
433 .name = "VDDMMC,UH", 433 .name = "VDDMMC,UH",
434 .always_on = 1, 434 .always_on = 1,
@@ -438,7 +438,7 @@ static struct regulator_init_data vddmmc __initdata = {
438 .supply_regulator = "WALLVDD", 438 .supply_regulator = "WALLVDD",
439}; 439};
440 440
441static struct regulator_init_data vddotgi __initdata = { 441static struct regulator_init_data vddotgi __devinitdata = {
442 .constraints = { 442 .constraints = {
443 .name = "VDDOTGi", 443 .name = "VDDOTGi",
444 .always_on = 1, 444 .always_on = 1,
@@ -446,7 +446,7 @@ static struct regulator_init_data vddotgi __initdata = {
446 .supply_regulator = "WALLVDD", 446 .supply_regulator = "WALLVDD",
447}; 447};
448 448
449static struct regulator_init_data vddotg __initdata = { 449static struct regulator_init_data vddotg __devinitdata = {
450 .constraints = { 450 .constraints = {
451 .name = "VDDOTG", 451 .name = "VDDOTG",
452 .always_on = 1, 452 .always_on = 1,
@@ -454,7 +454,7 @@ static struct regulator_init_data vddotg __initdata = {
454 .supply_regulator = "WALLVDD", 454 .supply_regulator = "WALLVDD",
455}; 455};
456 456
457static struct regulator_init_data vddhi __initdata = { 457static struct regulator_init_data vddhi __devinitdata = {
458 .constraints = { 458 .constraints = {
459 .name = "VDDHI", 459 .name = "VDDHI",
460 .always_on = 1, 460 .always_on = 1,
@@ -462,7 +462,7 @@ static struct regulator_init_data vddhi __initdata = {
462 .supply_regulator = "WALLVDD", 462 .supply_regulator = "WALLVDD",
463}; 463};
464 464
465static struct regulator_init_data vddadc __initdata = { 465static struct regulator_init_data vddadc __devinitdata = {
466 .constraints = { 466 .constraints = {
467 .name = "VDDADC,VDDDAC", 467 .name = "VDDADC,VDDDAC",
468 .always_on = 1, 468 .always_on = 1,
@@ -470,7 +470,7 @@ static struct regulator_init_data vddadc __initdata = {
470 .supply_regulator = "WALLVDD", 470 .supply_regulator = "WALLVDD",
471}; 471};
472 472
473static struct regulator_init_data vddmem0 __initdata = { 473static struct regulator_init_data vddmem0 __devinitdata = {
474 .constraints = { 474 .constraints = {
475 .name = "VDDMEM0", 475 .name = "VDDMEM0",
476 .always_on = 1, 476 .always_on = 1,
@@ -478,7 +478,7 @@ static struct regulator_init_data vddmem0 __initdata = {
478 .supply_regulator = "WALLVDD", 478 .supply_regulator = "WALLVDD",
479}; 479};
480 480
481static struct regulator_init_data vddpll __initdata = { 481static struct regulator_init_data vddpll __devinitdata = {
482 .constraints = { 482 .constraints = {
483 .name = "VDDPLL", 483 .name = "VDDPLL",
484 .always_on = 1, 484 .always_on = 1,
@@ -486,7 +486,7 @@ static struct regulator_init_data vddpll __initdata = {
486 .supply_regulator = "WALLVDD", 486 .supply_regulator = "WALLVDD",
487}; 487};
488 488
489static struct regulator_init_data vddlcd __initdata = { 489static struct regulator_init_data vddlcd __devinitdata = {
490 .constraints = { 490 .constraints = {
491 .name = "VDDLCD", 491 .name = "VDDLCD",
492 .always_on = 1, 492 .always_on = 1,
@@ -494,7 +494,7 @@ static struct regulator_init_data vddlcd __initdata = {
494 .supply_regulator = "WALLVDD", 494 .supply_regulator = "WALLVDD",
495}; 495};
496 496
497static struct regulator_init_data vddalive __initdata = { 497static struct regulator_init_data vddalive __devinitdata = {
498 .constraints = { 498 .constraints = {
499 .name = "VDDALIVE", 499 .name = "VDDALIVE",
500 .always_on = 1, 500 .always_on = 1,
@@ -502,30 +502,29 @@ static struct regulator_init_data vddalive __initdata = {
502 .supply_regulator = "WALLVDD", 502 .supply_regulator = "WALLVDD",
503}; 503};
504 504
505static struct wm831x_backup_pdata banff_backup_pdata __initdata = { 505static struct wm831x_backup_pdata banff_backup_pdata __devinitdata = {
506 .charger_enable = 1, 506 .charger_enable = 1,
507 .vlim = 2500, /* mV */ 507 .vlim = 2500, /* mV */
508 .ilim = 200, /* uA */ 508 .ilim = 200, /* uA */
509}; 509};
510 510
511static struct wm831x_status_pdata banff_red_led __initdata = { 511static struct wm831x_status_pdata banff_red_led __devinitdata = {
512 .name = "banff:red:", 512 .name = "banff:red:",
513 .default_src = WM831X_STATUS_MANUAL, 513 .default_src = WM831X_STATUS_MANUAL,
514}; 514};
515 515
516static struct wm831x_status_pdata banff_green_led __initdata = { 516static struct wm831x_status_pdata banff_green_led __devinitdata = {
517 .name = "banff:green:", 517 .name = "banff:green:",
518 .default_src = WM831X_STATUS_MANUAL, 518 .default_src = WM831X_STATUS_MANUAL,
519}; 519};
520 520
521static struct wm831x_touch_pdata touch_pdata __initdata = { 521static struct wm831x_touch_pdata touch_pdata __devinitdata = {
522 .data_irq = S3C_EINT(26), 522 .data_irq = S3C_EINT(26),
523 .pd_irq = S3C_EINT(27), 523 .pd_irq = S3C_EINT(27),
524}; 524};
525 525
526static struct wm831x_pdata crag_pmic_pdata __initdata = { 526static struct wm831x_pdata crag_pmic_pdata __devinitdata = {
527 .wm831x_num = 1, 527 .wm831x_num = 1,
528 .irq_base = BANFF_PMIC_IRQ_BASE,
529 .gpio_base = BANFF_PMIC_GPIO_BASE, 528 .gpio_base = BANFF_PMIC_GPIO_BASE,
530 .soft_shutdown = true, 529 .soft_shutdown = true,
531 530
@@ -568,7 +567,7 @@ static struct wm831x_pdata crag_pmic_pdata __initdata = {
568 .touch = &touch_pdata, 567 .touch = &touch_pdata,
569}; 568};
570 569
571static struct i2c_board_info i2c_devs0[] __initdata = { 570static struct i2c_board_info i2c_devs0[] __devinitdata = {
572 { I2C_BOARD_INFO("24c08", 0x50), }, 571 { I2C_BOARD_INFO("24c08", 0x50), },
573 { I2C_BOARD_INFO("tca6408", 0x20), 572 { I2C_BOARD_INFO("tca6408", 0x20),
574 .platform_data = &crag6410_pca_data, 573 .platform_data = &crag6410_pca_data,
@@ -583,12 +582,12 @@ static struct s3c2410_platform_i2c i2c0_pdata = {
583 .frequency = 400000, 582 .frequency = 400000,
584}; 583};
585 584
586static struct regulator_consumer_supply pvdd_1v2_consumers[] __initdata = { 585static struct regulator_consumer_supply pvdd_1v2_consumers[] __devinitdata = {
587 REGULATOR_SUPPLY("DCVDD", "spi0.0"), 586 REGULATOR_SUPPLY("DCVDD", "spi0.0"),
588 REGULATOR_SUPPLY("AVDD", "spi0.0"), 587 REGULATOR_SUPPLY("AVDD", "spi0.0"),
589}; 588};
590 589
591static struct regulator_init_data pvdd_1v2 __initdata = { 590static struct regulator_init_data pvdd_1v2 __devinitdata = {
592 .constraints = { 591 .constraints = {
593 .name = "PVDD_1V2", 592 .name = "PVDD_1V2",
594 .valid_ops_mask = REGULATOR_CHANGE_STATUS, 593 .valid_ops_mask = REGULATOR_CHANGE_STATUS,
@@ -598,7 +597,7 @@ static struct regulator_init_data pvdd_1v2 __initdata = {
598 .num_consumer_supplies = ARRAY_SIZE(pvdd_1v2_consumers), 597 .num_consumer_supplies = ARRAY_SIZE(pvdd_1v2_consumers),
599}; 598};
600 599
601static struct regulator_consumer_supply pvdd_1v8_consumers[] __initdata = { 600static struct regulator_consumer_supply pvdd_1v8_consumers[] __devinitdata = {
602 REGULATOR_SUPPLY("LDOVDD", "1-001a"), 601 REGULATOR_SUPPLY("LDOVDD", "1-001a"),
603 REGULATOR_SUPPLY("PLLVDD", "1-001a"), 602 REGULATOR_SUPPLY("PLLVDD", "1-001a"),
604 REGULATOR_SUPPLY("DBVDD", "1-001a"), 603 REGULATOR_SUPPLY("DBVDD", "1-001a"),
@@ -612,7 +611,7 @@ static struct regulator_consumer_supply pvdd_1v8_consumers[] __initdata = {
612 REGULATOR_SUPPLY("DBVDD", "spi0.0"), 611 REGULATOR_SUPPLY("DBVDD", "spi0.0"),
613}; 612};
614 613
615static struct regulator_init_data pvdd_1v8 __initdata = { 614static struct regulator_init_data pvdd_1v8 __devinitdata = {
616 .constraints = { 615 .constraints = {
617 .name = "PVDD_1V8", 616 .name = "PVDD_1V8",
618 .always_on = 1, 617 .always_on = 1,
@@ -622,12 +621,12 @@ static struct regulator_init_data pvdd_1v8 __initdata = {
622 .num_consumer_supplies = ARRAY_SIZE(pvdd_1v8_consumers), 621 .num_consumer_supplies = ARRAY_SIZE(pvdd_1v8_consumers),
623}; 622};
624 623
625static struct regulator_consumer_supply pvdd_3v3_consumers[] __initdata = { 624static struct regulator_consumer_supply pvdd_3v3_consumers[] __devinitdata = {
626 REGULATOR_SUPPLY("MICVDD", "1-001a"), 625 REGULATOR_SUPPLY("MICVDD", "1-001a"),
627 REGULATOR_SUPPLY("AVDD1", "1-001a"), 626 REGULATOR_SUPPLY("AVDD1", "1-001a"),
628}; 627};
629 628
630static struct regulator_init_data pvdd_3v3 __initdata = { 629static struct regulator_init_data pvdd_3v3 __devinitdata = {
631 .constraints = { 630 .constraints = {
632 .name = "PVDD_3V3", 631 .name = "PVDD_3V3",
633 .always_on = 1, 632 .always_on = 1,
@@ -637,7 +636,7 @@ static struct regulator_init_data pvdd_3v3 __initdata = {
637 .num_consumer_supplies = ARRAY_SIZE(pvdd_3v3_consumers), 636 .num_consumer_supplies = ARRAY_SIZE(pvdd_3v3_consumers),
638}; 637};
639 638
640static struct wm831x_pdata glenfarclas_pmic_pdata __initdata = { 639static struct wm831x_pdata glenfarclas_pmic_pdata __devinitdata = {
641 .wm831x_num = 2, 640 .wm831x_num = 2,
642 .irq_base = GLENFARCLAS_PMIC_IRQ_BASE, 641 .irq_base = GLENFARCLAS_PMIC_IRQ_BASE,
643 .gpio_base = GLENFARCLAS_PMIC_GPIO_BASE, 642 .gpio_base = GLENFARCLAS_PMIC_GPIO_BASE,
@@ -669,7 +668,7 @@ static struct wm1250_ev1_pdata wm1250_ev1_pdata = {
669 }, 668 },
670}; 669};
671 670
672static struct i2c_board_info i2c_devs1[] __initdata = { 671static struct i2c_board_info i2c_devs1[] __devinitdata = {
673 { I2C_BOARD_INFO("wm8311", 0x34), 672 { I2C_BOARD_INFO("wm8311", 0x34),
674 .irq = S3C_EINT(0), 673 .irq = S3C_EINT(0),
675 .platform_data = &glenfarclas_pmic_pdata }, 674 .platform_data = &glenfarclas_pmic_pdata },