aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/board-g3evm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-shmobile/board-g3evm.c')
-rw-r--r--arch/arm/mach-shmobile/board-g3evm.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-g3evm.c b/arch/arm/mach-shmobile/board-g3evm.c
index eba2311beba2..28ee589caba6 100644
--- a/arch/arm/mach-shmobile/board-g3evm.c
+++ b/arch/arm/mach-shmobile/board-g3evm.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/sh7367.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,29 @@ static void __init g3evm_map_io(void)
113 115
114static void __init g3evm_init(void) 116static void __init g3evm_init(void)
115{ 117{
118 sh7367_pinmux_init();
119
120 /* Lit DS4 LED */
121 gpio_request(GPIO_PORT22, NULL);
122 gpio_direction_output(GPIO_PORT22, 1);
123 gpio_export(GPIO_PORT22, 0);
124
125 /* Lit DS8 LED */
126 gpio_request(GPIO_PORT23, NULL);
127 gpio_direction_output(GPIO_PORT23, 1);
128 gpio_export(GPIO_PORT23, 0);
129
130 /* Lit DS3 LED */
131 gpio_request(GPIO_PORT24, NULL);
132 gpio_direction_output(GPIO_PORT24, 1);
133 gpio_export(GPIO_PORT24, 0);
134
135 /* SCIFA1 */
136 gpio_request(GPIO_FN_SCIFA1_TXD, NULL);
137 gpio_request(GPIO_FN_SCIFA1_RXD, NULL);
138 gpio_request(GPIO_FN_SCIFA1_CTS, NULL);
139 gpio_request(GPIO_FN_SCIFA1_RTS, NULL);
140
116 sh7367_add_standard_devices(); 141 sh7367_add_standard_devices();
117 142
118 platform_add_devices(g3evm_devices, ARRAY_SIZE(g3evm_devices)); 143 platform_add_devices(g3evm_devices, ARRAY_SIZE(g3evm_devices));