summaryrefslogtreecommitdiff
path: root/arch/arm/mach-shmobile/board-g4evm.c
diff options
context:
space:
mode:
authorNISHIMOTO Hiroki <nishimoto.hiroki@renesas.com>2010-02-12 11:10:06 +0300
committerPaul Mundt <lethal@linux-sh.org>2010-02-15 07:43:37 +0300
commit276b4f623cfd30320c004269725683ba8f262bb6 (patch)
tree5d6ff272e902614b33fb6ec1a87cf9bc9e8df014 /arch/arm/mach-shmobile/board-g4evm.c
parent3a7b802d1a8c279876ec74094d71f3c6c45d8030 (diff)
downloadlinux-276b4f623cfd30320c004269725683ba8f262bb6.tar.xz
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.c24
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 @@
#include <linux/mtd/partitions.h>
#include <linux/mtd/physmap.h>
#include <linux/io.h>
+#include <linux/gpio.h>
+#include <mach/sh7377.h>
#include <mach/common.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
@@ -113,6 +115,28 @@ static void __init g4evm_map_io(void)
static void __init g4evm_init(void)
{
+ sh7377_pinmux_init();
+
+ /* Lit DS14 LED */
+ gpio_request(GPIO_PORT109, NULL);
+ gpio_direction_output(GPIO_PORT109, 1);
+ gpio_export(GPIO_PORT109, 1);
+
+ /* Lit DS15 LED */
+ gpio_request(GPIO_PORT110, NULL);
+ gpio_direction_output(GPIO_PORT110, 1);
+ gpio_export(GPIO_PORT110, 1);
+
+ /* Lit DS16 LED */
+ gpio_request(GPIO_PORT112, NULL);
+ gpio_direction_output(GPIO_PORT112, 1);
+ gpio_export(GPIO_PORT112, 1);
+
+ /* Lit DS17 LED */
+ gpio_request(GPIO_PORT113, NULL);
+ gpio_direction_output(GPIO_PORT113, 1);
+ gpio_export(GPIO_PORT113, 1);
+
sh7377_add_standard_devices();
platform_add_devices(g4evm_devices, ARRAY_SIZE(g4evm_devices));