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-ap4evb.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-ap4evb.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-ap4evb.c | 37 |
1 files changed, 13 insertions, 24 deletions
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c index 2928cd686808..38f1259a0daf 100644 --- a/arch/arm/mach-shmobile/board-ap4evb.c +++ b/arch/arm/mach-shmobile/board-ap4evb.c | |||
@@ -143,6 +143,10 @@ | |||
143 | * | 143 | * |
144 | * SW41 : ON : SH-Mobile AP4 Audio Mode | 144 | * SW41 : ON : SH-Mobile AP4 Audio Mode |
145 | * : OFF : Bluetooth Audio Mode | 145 | * : OFF : Bluetooth Audio Mode |
146 | * | ||
147 | * it needs amixer settings for playing | ||
148 | * | ||
149 | * amixer set "Headphone Enable" on | ||
146 | */ | 150 | */ |
147 | 151 | ||
148 | /* | 152 | /* |
@@ -1036,9 +1040,7 @@ static int ts_get_pendown_state(void) | |||
1036 | 1040 | ||
1037 | gpio_free(GPIO_TSC_IRQ); | 1041 | gpio_free(GPIO_TSC_IRQ); |
1038 | 1042 | ||
1039 | gpio_request(GPIO_TSC_PORT, NULL); | 1043 | gpio_request_one(GPIO_TSC_PORT, GPIOF_IN, NULL); |
1040 | |||
1041 | gpio_direction_input(GPIO_TSC_PORT); | ||
1042 | 1044 | ||
1043 | val = gpio_get_value(GPIO_TSC_PORT); | 1045 | val = gpio_get_value(GPIO_TSC_PORT); |
1044 | 1046 | ||
@@ -1119,18 +1121,10 @@ static void __init ap4evb_init(void) | |||
1119 | gpio_request(GPIO_FN_IRQ6_39, NULL); | 1121 | gpio_request(GPIO_FN_IRQ6_39, NULL); |
1120 | 1122 | ||
1121 | /* enable Debug switch (S6) */ | 1123 | /* enable Debug switch (S6) */ |
1122 | gpio_request(GPIO_PORT32, NULL); | 1124 | gpio_request_one(GPIO_PORT32, GPIOF_IN | GPIOF_EXPORT, NULL); |
1123 | gpio_request(GPIO_PORT33, NULL); | 1125 | gpio_request_one(GPIO_PORT33, GPIOF_IN | GPIOF_EXPORT, NULL); |
1124 | gpio_request(GPIO_PORT34, NULL); | 1126 | gpio_request_one(GPIO_PORT34, GPIOF_IN | GPIOF_EXPORT, NULL); |
1125 | gpio_request(GPIO_PORT35, NULL); | 1127 | gpio_request_one(GPIO_PORT35, GPIOF_IN | GPIOF_EXPORT, NULL); |
1126 | gpio_direction_input(GPIO_PORT32); | ||
1127 | gpio_direction_input(GPIO_PORT33); | ||
1128 | gpio_direction_input(GPIO_PORT34); | ||
1129 | gpio_direction_input(GPIO_PORT35); | ||
1130 | gpio_export(GPIO_PORT32, 0); | ||
1131 | gpio_export(GPIO_PORT33, 0); | ||
1132 | gpio_export(GPIO_PORT34, 0); | ||
1133 | gpio_export(GPIO_PORT35, 0); | ||
1134 | 1128 | ||
1135 | /* SDHI0 */ | 1129 | /* SDHI0 */ |
1136 | gpio_request(GPIO_FN_SDHICD0, NULL); | 1130 | gpio_request(GPIO_FN_SDHICD0, NULL); |
@@ -1178,8 +1172,7 @@ static void __init ap4evb_init(void) | |||
1178 | gpio_request(GPIO_FN_FSIAILR, NULL); | 1172 | gpio_request(GPIO_FN_FSIAILR, NULL); |
1179 | gpio_request(GPIO_FN_FSIAISLD, NULL); | 1173 | gpio_request(GPIO_FN_FSIAISLD, NULL); |
1180 | gpio_request(GPIO_FN_FSIAOSLD, NULL); | 1174 | gpio_request(GPIO_FN_FSIAOSLD, NULL); |
1181 | gpio_request(GPIO_PORT161, NULL); | 1175 | gpio_request_one(GPIO_PORT161, GPIOF_OUT_INIT_LOW, NULL); /* slave */ |
1182 | gpio_direction_output(GPIO_PORT161, 0); /* slave */ | ||
1183 | 1176 | ||
1184 | gpio_request(GPIO_PORT9, NULL); | 1177 | gpio_request(GPIO_PORT9, NULL); |
1185 | gpio_request(GPIO_PORT10, NULL); | 1178 | gpio_request(GPIO_PORT10, NULL); |
@@ -1187,8 +1180,7 @@ static void __init ap4evb_init(void) | |||
1187 | gpio_direction_none(GPIO_PORT10CR); /* FSIAOLR needs no direction */ | 1180 | gpio_direction_none(GPIO_PORT10CR); /* FSIAOLR needs no direction */ |
1188 | 1181 | ||
1189 | /* card detect pin for MMC slot (CN7) */ | 1182 | /* card detect pin for MMC slot (CN7) */ |
1190 | gpio_request(GPIO_PORT41, NULL); | 1183 | gpio_request_one(GPIO_PORT41, GPIOF_IN, NULL); |
1191 | gpio_direction_input(GPIO_PORT41); | ||
1192 | 1184 | ||
1193 | /* setup FSI2 port B (HDMI) */ | 1185 | /* setup FSI2 port B (HDMI) */ |
1194 | gpio_request(GPIO_FN_FSIBCK, NULL); | 1186 | gpio_request(GPIO_FN_FSIBCK, NULL); |
@@ -1276,11 +1268,8 @@ static void __init ap4evb_init(void) | |||
1276 | gpio_request(GPIO_FN_LCDDISP, NULL); | 1268 | gpio_request(GPIO_FN_LCDDISP, NULL); |
1277 | gpio_request(GPIO_FN_LCDDCK, NULL); | 1269 | gpio_request(GPIO_FN_LCDDCK, NULL); |
1278 | 1270 | ||
1279 | gpio_request(GPIO_PORT189, NULL); /* backlight */ | 1271 | gpio_request_one(GPIO_PORT189, GPIOF_OUT_INIT_HIGH, NULL); /* backlight */ |
1280 | gpio_direction_output(GPIO_PORT189, 1); | 1272 | gpio_request_one(GPIO_PORT151, GPIOF_OUT_INIT_HIGH, NULL); /* LCDDON */ |
1281 | |||
1282 | gpio_request(GPIO_PORT151, NULL); /* LCDDON */ | ||
1283 | gpio_direction_output(GPIO_PORT151, 1); | ||
1284 | 1273 | ||
1285 | lcdc_info.clock_source = LCDC_CLK_BUS; | 1274 | lcdc_info.clock_source = LCDC_CLK_BUS; |
1286 | lcdc_info.ch[0].interface_type = RGB18; | 1275 | lcdc_info.ch[0].interface_type = RGB18; |