Commit 89ae7b5b authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Simon Horman

ARM: shmobile: armadillo800eva: Register pinctrl mapping for INTC

Replace the GPIO-based INTC pinmux configuration by a pinctrl mapping.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent b7983902
...@@ -1065,6 +1065,12 @@ static const struct pinctrl_map eva_pinctrl_map[] = { ...@@ -1065,6 +1065,12 @@ static const struct pinctrl_map eva_pinctrl_map[] = {
"sdhi0_ctrl", "sdhi0"), "sdhi0_ctrl", "sdhi0"),
PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "pfc-r8a7740", PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "pfc-r8a7740",
"sdhi0_wp", "sdhi0"), "sdhi0_wp", "sdhi0"),
/* ST1232 */
PIN_MAP_MUX_GROUP_DEFAULT("0-0055", "pfc-r8a7740",
"intc_irq10", "intc"),
/* USBHS */
PIN_MAP_MUX_GROUP_DEFAULT("renesas_usbhs", "pfc-r8a7740",
"intc_irq7_1", "intc"),
}; };
static void __init eva_clock_init(void) static void __init eva_clock_init(void)
...@@ -1130,7 +1136,7 @@ static void __init eva_init(void) ...@@ -1130,7 +1136,7 @@ static void __init eva_init(void)
gpio_request_one(202, GPIOF_OUT_INIT_LOW, NULL); /* LCD0_LED_CONT */ gpio_request_one(202, GPIOF_OUT_INIT_LOW, NULL); /* LCD0_LED_CONT */
/* Touchscreen */ /* Touchscreen */
gpio_request(GPIO_FN_IRQ10, NULL); /* TP_INT */ gpio_request_one(166, GPIOF_OUT_INIT_HIGH, NULL); /* TP_RST_B */
/* GETHER */ /* GETHER */
gpio_request(GPIO_FN_ET_CRS, NULL); gpio_request(GPIO_FN_ET_CRS, NULL);
...@@ -1163,13 +1169,11 @@ static void __init eva_init(void) ...@@ -1163,13 +1169,11 @@ static void __init eva_init(void)
} else { } else {
/* USB Func */ /* USB Func */
/* /*
* A1 chip has 2 IRQ7 pin and it was controled by MSEL register. * The USBHS interrupt handlers needs to read the IRQ pin value
* OTOH, usbhs interrupt needs its value (HI/LOW) to decide * (HI/LOW) to diffentiate USB connection and disconnection
* USB connection/disconnection (usbhsf_get_vbus()). * events (usbhsf_get_vbus()). We thus need to select both the
* This means we needs to select GPIO_FN_IRQ7_PORT209 first, * intc_irq7_1 pin group and GPIO 209 here.
* and select GPIO 209 here
*/ */
gpio_request(GPIO_FN_IRQ7_PORT209, NULL);
gpio_request_one(209, GPIOF_IN, NULL); gpio_request_one(209, GPIOF_IN, NULL);
platform_device_register(&usbhsf_device); platform_device_register(&usbhsf_device);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment