diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-04-08 05:36:22 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-06-05 04:18:24 -0400 |
commit | e3a28ac29c1ff54a45167adb34ebedd51205c2ff (patch) | |
tree | fea3c211a48ec257989955669bc56eb2f5962eb5 | |
parent | 111ea17927b4be0be2423c4b7a94d6b0ab1d92a6 (diff) |
ARM: shmobile: lager: Initialize pinmux
Initialize r8a7790 pinmuxing and register mappings for the two debug
serial ports.
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-lager.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-lager.c b/arch/arm/mach-shmobile/board-lager.c index f587187a8603..6114edd0a977 100644 --- a/arch/arm/mach-shmobile/board-lager.c +++ b/arch/arm/mach-shmobile/board-lager.c | |||
@@ -21,15 +21,30 @@ | |||
21 | #include <linux/interrupt.h> | 21 | #include <linux/interrupt.h> |
22 | #include <linux/irqchip.h> | 22 | #include <linux/irqchip.h> |
23 | #include <linux/kernel.h> | 23 | #include <linux/kernel.h> |
24 | #include <linux/pinctrl/machine.h> | ||
24 | #include <linux/platform_device.h> | 25 | #include <linux/platform_device.h> |
25 | #include <mach/common.h> | 26 | #include <mach/common.h> |
26 | #include <mach/r8a7790.h> | 27 | #include <mach/r8a7790.h> |
27 | #include <asm/mach-types.h> | 28 | #include <asm/mach-types.h> |
28 | #include <asm/mach/arch.h> | 29 | #include <asm/mach/arch.h> |
29 | 30 | ||
31 | static const struct pinctrl_map lager_pinctrl_map[] = { | ||
32 | /* SCIF0 (CN19: DEBUG SERIAL0) */ | ||
33 | PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.6", "pfc-r8a7790", | ||
34 | "scif0_data", "scif0"), | ||
35 | /* SCIF1 (CN20: DEBUG SERIAL1) */ | ||
36 | PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.7", "pfc-r8a7790", | ||
37 | "scif1_data", "scif1"), | ||
38 | }; | ||
39 | |||
30 | static void __init lager_add_standard_devices(void) | 40 | static void __init lager_add_standard_devices(void) |
31 | { | 41 | { |
32 | r8a7790_clock_init(); | 42 | r8a7790_clock_init(); |
43 | |||
44 | pinctrl_register_mappings(lager_pinctrl_map, | ||
45 | ARRAY_SIZE(lager_pinctrl_map)); | ||
46 | r8a7790_pinmux_init(); | ||
47 | |||
33 | r8a7790_add_standard_devices(); | 48 | r8a7790_add_standard_devices(); |
34 | } | 49 | } |
35 | 50 | ||