aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-01-03 06:54:28 -0500
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-03-15 08:34:08 -0400
commit63d6fc90f35c388c6f0c147e58140fde099ee449 (patch)
treee99cacceca30bc4acfb6d0e25149e6efa8820136
parentb5012cd33b826eb7659ff66c829535ff38ca54dd (diff)
ARM: shmobile: ag5evm: Register pinctrl mappings for I2C
Replace the GPIO-based I2C pinmux configuration by pinctrl mappings. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
-rw-r--r--arch/arm/mach-shmobile/board-ag5evm.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/arm/mach-shmobile/board-ag5evm.c b/arch/arm/mach-shmobile/board-ag5evm.c
index 5b8dcdc3c2af..e19dade83a1f 100644
--- a/arch/arm/mach-shmobile/board-ag5evm.c
+++ b/arch/arm/mach-shmobile/board-ag5evm.c
@@ -552,6 +552,11 @@ static struct platform_device *ag5evm_devices[] __initdata = {
552}; 552};
553 553
554static const struct pinctrl_map ag5evm_pinctrl_map[] = { 554static const struct pinctrl_map ag5evm_pinctrl_map[] = {
555 /* I2C2 & I2C3 */
556 PIN_MAP_MUX_GROUP_DEFAULT("i2c-sh_mobile.2", "pfc-sh73a0",
557 "i2c2_0", "i2c2"),
558 PIN_MAP_MUX_GROUP_DEFAULT("i2c-sh_mobile.3", "pfc-sh73a0",
559 "i2c3_0", "i2c3"),
555 /* SCIFA2 */ 560 /* SCIFA2 */
556 PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.2", "pfc-sh73a0", 561 PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.2", "pfc-sh73a0",
557 "scifa2_data_0", "scifa2"), 562 "scifa2_data_0", "scifa2"),
@@ -591,12 +596,6 @@ static void __init ag5evm_init(void)
591 gpio_request(GPIO_FN_KEYOUT8, NULL); 596 gpio_request(GPIO_FN_KEYOUT8, NULL);
592 gpio_request(GPIO_FN_PORT149_KEYOUT9, NULL); 597 gpio_request(GPIO_FN_PORT149_KEYOUT9, NULL);
593 598
594 /* enable I2C channel 2 and 3 */
595 gpio_request(GPIO_FN_PORT236_I2C_SDA2, NULL);
596 gpio_request(GPIO_FN_PORT237_I2C_SCL2, NULL);
597 gpio_request(GPIO_FN_PORT248_I2C_SCL3, NULL);
598 gpio_request(GPIO_FN_PORT249_I2C_SDA3, NULL);
599
600 /* enable MMCIF */ 599 /* enable MMCIF */
601 gpio_request(GPIO_FN_MMCCLK0, NULL); 600 gpio_request(GPIO_FN_MMCCLK0, NULL);
602 gpio_request(GPIO_FN_MMCCMD0_PU, NULL); 601 gpio_request(GPIO_FN_MMCCMD0_PU, NULL);