aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/board-armadillo800eva.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2012-06-25 06:41:45 -0400
committerRafael J. Wysocki <rjw@sisk.pl>2012-06-30 09:24:53 -0400
commita01366b4b5cc669633d1cf6ee327c85a5406ef5f (patch)
tree54a6aeb1dc9b19b0cc5709b019e9119591dd307b /arch/arm/mach-shmobile/board-armadillo800eva.c
parentf7e566fa26b7d34514d5ba7b8b4464934be8ff2c (diff)
ARM: shmobile: use common extra gpio functions on armadillo800eva
This patch switch over to use common extra gpio method, and reduced a waste of code on SH-ARM. But these functions should be replaced by correct gpio function in the future. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-by: Magnus Damm <damm@opensource.se> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'arch/arm/mach-shmobile/board-armadillo800eva.c')
-rw-r--r--arch/arm/mach-shmobile/board-armadillo800eva.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c
index 3066fa7e5374..5f8f571665a0 100644
--- a/arch/arm/mach-shmobile/board-armadillo800eva.c
+++ b/arch/arm/mach-shmobile/board-armadillo800eva.c
@@ -122,20 +122,6 @@
122 */ 122 */
123 123
124/* 124/*
125 * FIXME !!
126 *
127 * gpio_no_direction
128 *
129 * current gpio frame work doesn't have
130 * the method to control only pull up/down/free.
131 * this function should be replaced by correct gpio function
132 */
133static void __init gpio_no_direction(u32 addr)
134{
135 __raw_writeb(0x00, addr);
136}
137
138/*
139 * USB function 125 * USB function
140 * 126 *
141 * When you use USB Function, 127 * When you use USB Function,
@@ -1087,8 +1073,8 @@ static void __init eva_init(void)
1087 1073
1088 gpio_request(GPIO_PORT7, NULL); 1074 gpio_request(GPIO_PORT7, NULL);
1089 gpio_request(GPIO_PORT8, NULL); 1075 gpio_request(GPIO_PORT8, NULL);
1090 gpio_no_direction(GPIO_PORT7CR); /* FSIAOBT needs no direction */ 1076 gpio_direction_none(GPIO_PORT7CR); /* FSIAOBT needs no direction */
1091 gpio_no_direction(GPIO_PORT8CR); /* FSIAOLR needs no direction */ 1077 gpio_direction_none(GPIO_PORT8CR); /* FSIAOLR needs no direction */
1092 1078
1093 /* FSI-HDMI */ 1079 /* FSI-HDMI */
1094 gpio_request(GPIO_FN_FSIBCK, NULL); 1080 gpio_request(GPIO_FN_FSIBCK, NULL);