diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-01-03 06:54:28 -0500 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-03-15 08:34:08 -0400 |
commit | b5012cd33b826eb7659ff66c829535ff38ca54dd (patch) | |
tree | f2c22a83e9cc442e97878c0cf0b59303e6c7b550 | |
parent | fd9e7feb9ae96346724f35fd20eb2009743fb868 (diff) |
ARM: shmobile: ag5evm: Register pinctrl mappings for SCIF
Replace the GPIO-based SCIF pinmux configuration by pinctrl mappings.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
-rw-r--r-- | arch/arm/mach-shmobile/board-ag5evm.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/arch/arm/mach-shmobile/board-ag5evm.c b/arch/arm/mach-shmobile/board-ag5evm.c index a4ac46a89b27..5b8dcdc3c2af 100644 --- a/arch/arm/mach-shmobile/board-ag5evm.c +++ b/arch/arm/mach-shmobile/board-ag5evm.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/init.h> | 23 | #include <linux/init.h> |
24 | #include <linux/interrupt.h> | 24 | #include <linux/interrupt.h> |
25 | #include <linux/irq.h> | 25 | #include <linux/irq.h> |
26 | #include <linux/pinctrl/machine.h> | ||
26 | #include <linux/platform_device.h> | 27 | #include <linux/platform_device.h> |
27 | #include <linux/delay.h> | 28 | #include <linux/delay.h> |
28 | #include <linux/io.h> | 29 | #include <linux/io.h> |
@@ -550,6 +551,14 @@ static struct platform_device *ag5evm_devices[] __initdata = { | |||
550 | &sdhi1_device, | 551 | &sdhi1_device, |
551 | }; | 552 | }; |
552 | 553 | ||
554 | static const struct pinctrl_map ag5evm_pinctrl_map[] = { | ||
555 | /* SCIFA2 */ | ||
556 | PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.2", "pfc-sh73a0", | ||
557 | "scifa2_data_0", "scifa2"), | ||
558 | PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.2", "pfc-sh73a0", | ||
559 | "scifa2_ctrl_0", "scifa2"), | ||
560 | }; | ||
561 | |||
553 | static void __init ag5evm_init(void) | 562 | static void __init ag5evm_init(void) |
554 | { | 563 | { |
555 | regulator_register_always_on(0, "fixed-1.8V", fixed1v8_power_consumers, | 564 | regulator_register_always_on(0, "fixed-1.8V", fixed1v8_power_consumers, |
@@ -558,14 +567,10 @@ static void __init ag5evm_init(void) | |||
558 | ARRAY_SIZE(fixed2v8_power_consumers), 3300000); | 567 | ARRAY_SIZE(fixed2v8_power_consumers), 3300000); |
559 | regulator_register_fixed(3, dummy_supplies, ARRAY_SIZE(dummy_supplies)); | 568 | regulator_register_fixed(3, dummy_supplies, ARRAY_SIZE(dummy_supplies)); |
560 | 569 | ||
570 | pinctrl_register_mappings(ag5evm_pinctrl_map, | ||
571 | ARRAY_SIZE(ag5evm_pinctrl_map)); | ||
561 | sh73a0_pinmux_init(); | 572 | sh73a0_pinmux_init(); |
562 | 573 | ||
563 | /* enable SCIFA2 */ | ||
564 | gpio_request(GPIO_FN_SCIFA2_TXD1, NULL); | ||
565 | gpio_request(GPIO_FN_SCIFA2_RXD1, NULL); | ||
566 | gpio_request(GPIO_FN_SCIFA2_RTS1_, NULL); | ||
567 | gpio_request(GPIO_FN_SCIFA2_CTS1_, NULL); | ||
568 | |||
569 | /* enable KEYSC */ | 574 | /* enable KEYSC */ |
570 | gpio_request(GPIO_FN_KEYIN0_PU, NULL); | 575 | gpio_request(GPIO_FN_KEYIN0_PU, NULL); |
571 | gpio_request(GPIO_FN_KEYIN1_PU, NULL); | 576 | gpio_request(GPIO_FN_KEYIN1_PU, NULL); |