summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/board-ap4evb.c
diff options
context:
space:
mode:
authorKuninori Morimoto2010-02-22 10:30:12 +0100
committerPaul Mundt2010-02-22 11:19:21 +0100
commit8cb3a2ebc19eef58bcbd5460c4fb463f30bc6459 (patch)
treee528aa7781edceb914b15238269a28ebdfd3b421 /arch/arm/mach-shmobile/board-ap4evb.c
parentARM: mach-shmobile: ap4evb: Add LED support (diff)
downloadkernel-qcow2-linux-8cb3a2ebc19eef58bcbd5460c4fb463f30bc6459.tar.gz
kernel-qcow2-linux-8cb3a2ebc19eef58bcbd5460c4fb463f30bc6459.tar.xz
kernel-qcow2-linux-8cb3a2ebc19eef58bcbd5460c4fb463f30bc6459.zip
ARM: mach-shmobile: ap4evb: Add S6 debug switch support
Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/arm/mach-shmobile/board-ap4evb.c')
-rw-r--r--arch/arm/mach-shmobile/board-ap4evb.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c
index 4714cad373b8..d9a46d0ce01c 100644
--- a/arch/arm/mach-shmobile/board-ap4evb.c
+++ b/arch/arm/mach-shmobile/board-ap4evb.c
@@ -211,6 +211,20 @@ static void __init ap4evb_init(void)
gpio_export(GPIO_PORT187, 0);
gpio_export(GPIO_PORT188, 0);
+ /* enable Debug switch (S6) */
+ gpio_request(GPIO_PORT32, NULL);
+ gpio_request(GPIO_PORT33, NULL);
+ gpio_request(GPIO_PORT34, NULL);
+ gpio_request(GPIO_PORT35, NULL);
+ gpio_direction_input(GPIO_PORT32);
+ gpio_direction_input(GPIO_PORT33);
+ gpio_direction_input(GPIO_PORT34);
+ gpio_direction_input(GPIO_PORT35);
+ gpio_export(GPIO_PORT32, 0);
+ gpio_export(GPIO_PORT33, 0);
+ gpio_export(GPIO_PORT34, 0);
+ gpio_export(GPIO_PORT35, 0);
+
sh7372_add_standard_devices();
platform_add_devices(ap4evb_devices, ARRAY_SIZE(ap4evb_devices));