diff options
author | NISHIMOTO Hiroki <nishimoto.hiroki@renesas.com> | 2010-02-12 03:10:06 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-02-14 23:43:37 -0500 |
commit | 276b4f623cfd30320c004269725683ba8f262bb6 (patch) | |
tree | 5d6ff272e902614b33fb6ec1a87cf9bc9e8df014 /arch/arm/mach-shmobile/board-g4evm.c | |
parent | 3a7b802d1a8c279876ec74094d71f3c6c45d8030 (diff) |
ARM: mach-shmobile: sh7377 and G4EVM pinmux support
Add support for the sh 7377 pinmux using drivers/sh/pfc.c
and some LEDs on G4EVM.
Signed-off-by: NISHIMOTO Hiroki <nishimoto.hiroki@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/arm/mach-shmobile/board-g4evm.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-g4evm.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-g4evm.c b/arch/arm/mach-shmobile/board-g4evm.c index 0ddde038588e..ef4b0f59af49 100644 --- a/arch/arm/mach-shmobile/board-g4evm.c +++ b/arch/arm/mach-shmobile/board-g4evm.c | |||
@@ -27,6 +27,8 @@ | |||
27 | #include <linux/mtd/partitions.h> | 27 | #include <linux/mtd/partitions.h> |
28 | #include <linux/mtd/physmap.h> | 28 | #include <linux/mtd/physmap.h> |
29 | #include <linux/io.h> | 29 | #include <linux/io.h> |
30 | #include <linux/gpio.h> | ||
31 | #include <mach/sh7377.h> | ||
30 | #include <mach/common.h> | 32 | #include <mach/common.h> |
31 | #include <asm/mach-types.h> | 33 | #include <asm/mach-types.h> |
32 | #include <asm/mach/arch.h> | 34 | #include <asm/mach/arch.h> |
@@ -113,6 +115,28 @@ static void __init g4evm_map_io(void) | |||
113 | 115 | ||
114 | static void __init g4evm_init(void) | 116 | static void __init g4evm_init(void) |
115 | { | 117 | { |
118 | sh7377_pinmux_init(); | ||
119 | |||
120 | /* Lit DS14 LED */ | ||
121 | gpio_request(GPIO_PORT109, NULL); | ||
122 | gpio_direction_output(GPIO_PORT109, 1); | ||
123 | gpio_export(GPIO_PORT109, 1); | ||
124 | |||
125 | /* Lit DS15 LED */ | ||
126 | gpio_request(GPIO_PORT110, NULL); | ||
127 | gpio_direction_output(GPIO_PORT110, 1); | ||
128 | gpio_export(GPIO_PORT110, 1); | ||
129 | |||
130 | /* Lit DS16 LED */ | ||
131 | gpio_request(GPIO_PORT112, NULL); | ||
132 | gpio_direction_output(GPIO_PORT112, 1); | ||
133 | gpio_export(GPIO_PORT112, 1); | ||
134 | |||
135 | /* Lit DS17 LED */ | ||
136 | gpio_request(GPIO_PORT113, NULL); | ||
137 | gpio_direction_output(GPIO_PORT113, 1); | ||
138 | gpio_export(GPIO_PORT113, 1); | ||
139 | |||
116 | sh7377_add_standard_devices(); | 140 | sh7377_add_standard_devices(); |
117 | 141 | ||
118 | platform_add_devices(g4evm_devices, ARRAY_SIZE(g4evm_devices)); | 142 | platform_add_devices(g4evm_devices, ARRAY_SIZE(g4evm_devices)); |