aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-shmobile/board-koelsch.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-koelsch.c b/arch/arm/mach-shmobile/board-koelsch.c
index 412e1539c952..6e12914d6d58 100644
--- a/arch/arm/mach-shmobile/board-koelsch.c
+++ b/arch/arm/mach-shmobile/board-koelsch.c
@@ -24,6 +24,7 @@
24#include <linux/input.h> 24#include <linux/input.h>
25#include <linux/kernel.h> 25#include <linux/kernel.h>
26#include <linux/leds.h> 26#include <linux/leds.h>
27#include <linux/pinctrl/machine.h>
27#include <linux/platform_data/gpio-rcar.h> 28#include <linux/platform_data/gpio-rcar.h>
28#include <linux/platform_device.h> 29#include <linux/platform_device.h>
29#include <mach/common.h> 30#include <mach/common.h>
@@ -78,9 +79,20 @@ static const struct gpio_keys_platform_data koelsch_keys_pdata __initconst = {
78 .nbuttons = ARRAY_SIZE(gpio_buttons), 79 .nbuttons = ARRAY_SIZE(gpio_buttons),
79}; 80};
80 81
82static const struct pinctrl_map koelsch_pinctrl_map[] = {
83 /* SCIF0 (CN19: DEBUG SERIAL0) */
84 PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.6", "pfc-r8a7791",
85 "scif0_data_d", "scif0"),
86 /* SCIF1 (CN20: DEBUG SERIAL1) */
87 PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.7", "pfc-r8a7791",
88 "scif1_data_d", "scif1"),
89};
90
81static void __init koelsch_add_standard_devices(void) 91static void __init koelsch_add_standard_devices(void)
82{ 92{
83 r8a7791_clock_init(); 93 r8a7791_clock_init();
94 pinctrl_register_mappings(koelsch_pinctrl_map,
95 ARRAY_SIZE(koelsch_pinctrl_map));
84 r8a7791_pinmux_init(); 96 r8a7791_pinmux_init();
85 r8a7791_add_standard_devices(); 97 r8a7791_add_standard_devices();
86 platform_device_register_data(&platform_bus, "leds-gpio", -1, 98 platform_device_register_data(&platform_bus, "leds-gpio", -1,