diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 18:33:45 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 18:33:45 -0500 |
commit | 6c5096e5538b455bc3bea2b02588c380f070d8c6 (patch) | |
tree | a2d08974a0c6a6fd19dff90bd3ab1827c23a5764 /arch/arm/mach-shmobile/board-kzm9g.c | |
parent | bab588fcfb6335c767d811a8955979f5440328e0 (diff) | |
parent | f628e3d92465303792d52c98fb0c95bef558f936 (diff) |
Merge tag 'boards' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC board specific changes from Arnd Bergmann:
"These updates are all for board specific code, including
- defconfig updates for shmobile, davinci, bcm2835, imx, omap and
tegra
- SD/MMC and I2C support on bcm2835 (Raspberry PI)
- minor updates for PXA
- shmobile updates to GPIO usage in board files
- More things in OMAP board files are moved over to device tree
probing
- Better support for audio devices on some OMAP platforms"
* tag 'boards' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (55 commits)
ARM: imx_v4_v5_defconfig: Add VPU support
ARM: imx: configs: enable netfilter support
ARM: OMAP2+: Fix twl section warnings related to omap_twl4030_audio_init
ARM: OMAP2+: omap2plus_defconfig: enable omap1 rtc
RX-51: Register twl4030-madc device
RX-51: Add leds lp5523 names from Maemo 5 2.6.28 kernel
ARM: OMAP2+: AM33XX: omap2plus_defconfig: Add support for few drivers
ARM: OMAP1: nokia770: enable CBUS/Retu
ARM: OMAP2+: omap2plus_defconfig: enable CMA allocator
ARM: OMAP2+: omap2plus_defconfig: enable TFP410 chip support
ARM: OMAP3: igep0020: simplify GPIO LEDs dependencies
ARM: OMAP2+: craneboard: support the TPS65910 PMU
ARM: OMAP2+: craneboard: support NAND device
ARM: OMAP3: cm-t3517: add MMC support
ARM: OMAP2+: Remove apollon board support
ARM: shmobile: armadillo800eva: set clock rates before timer init
ARM: tegra: defconfig updates
ARM: shmobile: mackerel: Use gpio_request_one()
ARM: shmobile: kzm9g: Use gpio_request_one()
ARM: shmobile: bonito: Use gpio_request_one()
...
Diffstat (limited to 'arch/arm/mach-shmobile/board-kzm9g.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-kzm9g.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c index 3efff2e7b1e7..7f3a6b7e7b7c 100644 --- a/arch/arm/mach-shmobile/board-kzm9g.c +++ b/arch/arm/mach-shmobile/board-kzm9g.c | |||
@@ -623,7 +623,7 @@ static int __init as3711_enable_lcdc_backlight(void) | |||
623 | 0x45, 0xf0, | 623 | 0x45, 0xf0, |
624 | }; | 624 | }; |
625 | 625 | ||
626 | if (!machine_is_kzm9g()) | 626 | if (!of_machine_is_compatible("renesas,kzm9g")) |
627 | return 0; | 627 | return 0; |
628 | 628 | ||
629 | if (!a) | 629 | if (!a) |
@@ -672,8 +672,7 @@ static void __init kzm_init(void) | |||
672 | gpio_request(GPIO_FN_CS4_, NULL); /* CS4 */ | 672 | gpio_request(GPIO_FN_CS4_, NULL); /* CS4 */ |
673 | 673 | ||
674 | /* SMSC */ | 674 | /* SMSC */ |
675 | gpio_request(GPIO_PORT224, NULL); /* IRQ3 */ | 675 | gpio_request_one(GPIO_PORT224, GPIOF_IN, NULL); /* IRQ3 */ |
676 | gpio_direction_input(GPIO_PORT224); | ||
677 | 676 | ||
678 | /* LCDC */ | 677 | /* LCDC */ |
679 | gpio_request(GPIO_FN_LCDD23, NULL); | 678 | gpio_request(GPIO_FN_LCDD23, NULL); |
@@ -703,14 +702,11 @@ static void __init kzm_init(void) | |||
703 | gpio_request(GPIO_FN_LCDDISP, NULL); | 702 | gpio_request(GPIO_FN_LCDDISP, NULL); |
704 | gpio_request(GPIO_FN_LCDDCK, NULL); | 703 | gpio_request(GPIO_FN_LCDDCK, NULL); |
705 | 704 | ||
706 | gpio_request(GPIO_PORT222, NULL); /* LCDCDON */ | 705 | gpio_request_one(GPIO_PORT222, GPIOF_OUT_INIT_HIGH, NULL); /* LCDCDON */ |
707 | gpio_request(GPIO_PORT226, NULL); /* SC */ | 706 | gpio_request_one(GPIO_PORT226, GPIOF_OUT_INIT_HIGH, NULL); /* SC */ |
708 | gpio_direction_output(GPIO_PORT222, 1); | ||
709 | gpio_direction_output(GPIO_PORT226, 1); | ||
710 | 707 | ||
711 | /* Touchscreen */ | 708 | /* Touchscreen */ |
712 | gpio_request(GPIO_PORT223, NULL); /* IRQ8 */ | 709 | gpio_request_one(GPIO_PORT223, GPIOF_IN, NULL); /* IRQ8 */ |
713 | gpio_direction_input(GPIO_PORT223); | ||
714 | 710 | ||
715 | /* enable MMCIF */ | 711 | /* enable MMCIF */ |
716 | gpio_request(GPIO_FN_MMCCLK0, NULL); | 712 | gpio_request(GPIO_FN_MMCCLK0, NULL); |
@@ -734,8 +730,7 @@ static void __init kzm_init(void) | |||
734 | gpio_request(GPIO_FN_SDHID0_1, NULL); | 730 | gpio_request(GPIO_FN_SDHID0_1, NULL); |
735 | gpio_request(GPIO_FN_SDHID0_0, NULL); | 731 | gpio_request(GPIO_FN_SDHID0_0, NULL); |
736 | gpio_request(GPIO_FN_SDHI0_VCCQ_MC0_ON, NULL); | 732 | gpio_request(GPIO_FN_SDHI0_VCCQ_MC0_ON, NULL); |
737 | gpio_request(GPIO_PORT15, NULL); | 733 | gpio_request_one(GPIO_PORT15, GPIOF_OUT_INIT_HIGH, NULL); /* power */ |
738 | gpio_direction_output(GPIO_PORT15, 1); /* power */ | ||
739 | 734 | ||
740 | /* enable Micro SD */ | 735 | /* enable Micro SD */ |
741 | gpio_request(GPIO_FN_SDHID2_0, NULL); | 736 | gpio_request(GPIO_FN_SDHID2_0, NULL); |
@@ -744,8 +739,7 @@ static void __init kzm_init(void) | |||
744 | gpio_request(GPIO_FN_SDHID2_3, NULL); | 739 | gpio_request(GPIO_FN_SDHID2_3, NULL); |
745 | gpio_request(GPIO_FN_SDHICMD2, NULL); | 740 | gpio_request(GPIO_FN_SDHICMD2, NULL); |
746 | gpio_request(GPIO_FN_SDHICLK2, NULL); | 741 | gpio_request(GPIO_FN_SDHICLK2, NULL); |
747 | gpio_request(GPIO_PORT14, NULL); | 742 | gpio_request_one(GPIO_PORT14, GPIOF_OUT_INIT_HIGH, NULL); /* power */ |
748 | gpio_direction_output(GPIO_PORT14, 1); /* power */ | ||
749 | 743 | ||
750 | /* I2C 3 */ | 744 | /* I2C 3 */ |
751 | gpio_request(GPIO_FN_PORT27_I2C_SCL3, NULL); | 745 | gpio_request(GPIO_FN_PORT27_I2C_SCL3, NULL); |