aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/board-ap4evb.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-shmobile/board-ap4evb.c')
-rw-r--r--arch/arm/mach-shmobile/board-ap4evb.c37
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;