aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-04-17 19:18:41 -0400
committerSimon Horman <horms+renesas@verge.net.au>2013-06-04 08:04:26 -0400
commit613285ce72c2194d43dee43a2b3c9bac6acff792 (patch)
tree6e2a2ccd91d07084826c1c168eaeb0e94211bde6
parent89ae7b5bbd3e65bc6ab7a577ca5ec18569589c8c (diff)
ARM: shmobile: armadillo800eva: Register pinctrl mapping for GETHER
Replace the GPIO-based GETHER pinmux configuration by a pinctrl mapping. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r--arch/arm/mach-shmobile/board-armadillo800eva.c25
1 files changed, 5 insertions, 20 deletions
diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c
index 8d8b362438bf..328f650217f1 100644
--- a/arch/arm/mach-shmobile/board-armadillo800eva.c
+++ b/arch/arm/mach-shmobile/board-armadillo800eva.c
@@ -1046,6 +1046,11 @@ static struct platform_device *eva_devices[] __initdata = {
1046}; 1046};
1047 1047
1048static const struct pinctrl_map eva_pinctrl_map[] = { 1048static const struct pinctrl_map eva_pinctrl_map[] = {
1049 /* GETHER */
1050 PIN_MAP_MUX_GROUP_DEFAULT("sh-eth", "pfc-r8a7740",
1051 "gether_mii", "gether"),
1052 PIN_MAP_MUX_GROUP_DEFAULT("sh-eth", "pfc-r8a7740",
1053 "gether_int", "gether"),
1049 /* LCD0 */ 1054 /* LCD0 */
1050 PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_lcdc_fb.0", "pfc-r8a7740", 1055 PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_lcdc_fb.0", "pfc-r8a7740",
1051 "lcd0_data24_0", "lcd0"), 1056 "lcd0_data24_0", "lcd0"),
@@ -1139,26 +1144,6 @@ static void __init eva_init(void)
1139 gpio_request_one(166, GPIOF_OUT_INIT_HIGH, NULL); /* TP_RST_B */ 1144 gpio_request_one(166, GPIOF_OUT_INIT_HIGH, NULL); /* TP_RST_B */
1140 1145
1141 /* GETHER */ 1146 /* GETHER */
1142 gpio_request(GPIO_FN_ET_CRS, NULL);
1143 gpio_request(GPIO_FN_ET_MDC, NULL);
1144 gpio_request(GPIO_FN_ET_MDIO, NULL);
1145 gpio_request(GPIO_FN_ET_TX_ER, NULL);
1146 gpio_request(GPIO_FN_ET_RX_ER, NULL);
1147 gpio_request(GPIO_FN_ET_ERXD0, NULL);
1148 gpio_request(GPIO_FN_ET_ERXD1, NULL);
1149 gpio_request(GPIO_FN_ET_ERXD2, NULL);
1150 gpio_request(GPIO_FN_ET_ERXD3, NULL);
1151 gpio_request(GPIO_FN_ET_TX_CLK, NULL);
1152 gpio_request(GPIO_FN_ET_TX_EN, NULL);
1153 gpio_request(GPIO_FN_ET_ETXD0, NULL);
1154 gpio_request(GPIO_FN_ET_ETXD1, NULL);
1155 gpio_request(GPIO_FN_ET_ETXD2, NULL);
1156 gpio_request(GPIO_FN_ET_ETXD3, NULL);
1157 gpio_request(GPIO_FN_ET_PHY_INT, NULL);
1158 gpio_request(GPIO_FN_ET_COL, NULL);
1159 gpio_request(GPIO_FN_ET_RX_DV, NULL);
1160 gpio_request(GPIO_FN_ET_RX_CLK, NULL);
1161
1162 gpio_request_one(18, GPIOF_OUT_INIT_HIGH, NULL); /* PHY_RST */ 1147 gpio_request_one(18, GPIOF_OUT_INIT_HIGH, NULL); /* PHY_RST */
1163 1148
1164 /* USB */ 1149 /* USB */