Commit 2eaa0747 authored by Laurent Pinchart's avatar Laurent Pinchart

ARM: shmobile: ag5evm: Register pinctrl mappings for IrDA

Replace the GPIO-based IrDA pinmux configuration by pinctrl mappings.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
parent 7e6455e1
...@@ -571,6 +571,9 @@ static const struct pinctrl_map ag5evm_pinctrl_map[] = { ...@@ -571,6 +571,9 @@ static const struct pinctrl_map ag5evm_pinctrl_map[] = {
"i2c2_0", "i2c2"), "i2c2_0", "i2c2"),
PIN_MAP_MUX_GROUP_DEFAULT("i2c-sh_mobile.3", "pfc-sh73a0", PIN_MAP_MUX_GROUP_DEFAULT("i2c-sh_mobile.3", "pfc-sh73a0",
"i2c3_0", "i2c3"), "i2c3_0", "i2c3"),
/* IrDA */
PIN_MAP_MUX_GROUP_DEFAULT("sh_irda.0", "pfc-sh73a0",
"irda_0", "irda"),
/* KEYSC */ /* KEYSC */
PIN_MAP_MUX_GROUP_DEFAULT("sh_keysc.0", "pfc-sh73a0", PIN_MAP_MUX_GROUP_DEFAULT("sh_keysc.0", "pfc-sh73a0",
"keysc_in8", "keysc"), "keysc_in8", "keysc"),
...@@ -639,11 +642,6 @@ static void __init ag5evm_init(void) ...@@ -639,11 +642,6 @@ static void __init ag5evm_init(void)
gpio_request_one(144, GPIOF_IN, NULL); /* PINTA2 */ gpio_request_one(144, GPIOF_IN, NULL); /* PINTA2 */
gpio_request_one(145, GPIOF_OUT_INIT_HIGH, NULL); /* RESET */ gpio_request_one(145, GPIOF_OUT_INIT_HIGH, NULL); /* RESET */
/* IrDA */
gpio_request(GPIO_FN_PORT241_IRDA_OUT, NULL);
gpio_request(GPIO_FN_PORT242_IRDA_IN, NULL);
gpio_request(GPIO_FN_PORT243_IRDA_FIRSEL, NULL);
/* LCD panel */ /* LCD panel */
gpio_request_one(217, GPIOF_OUT_INIT_LOW, NULL); /* RESET */ gpio_request_one(217, GPIOF_OUT_INIT_LOW, NULL); /* RESET */
mdelay(1); mdelay(1);
......
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