diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-10-20 10:40:32 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-10-20 10:40:32 +0900 |
commit | 79ed2a9216dd3cc35c4f2c5dbaddadb195af83ac (patch) | |
tree | b1567c167b4eeb60cd0a4f316012a637045b0168 /arch/sh/boards/board-rsk7203.c | |
parent | 25627c7fd71269e2658b6872eef65719ee80b9aa (diff) | |
parent | 843284d0e41b2a7f88504d051d91b5e9dc9c78c7 (diff) |
Merge branch 'sh/gpiolib'
Diffstat (limited to 'arch/sh/boards/board-rsk7203.c')
-rw-r--r-- | arch/sh/boards/board-rsk7203.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/sh/boards/board-rsk7203.c b/arch/sh/boards/board-rsk7203.c index ffbedc59a97..ded799cf3ea 100644 --- a/arch/sh/boards/board-rsk7203.c +++ b/arch/sh/boards/board-rsk7203.c @@ -16,8 +16,10 @@ #include <linux/mtd/physmap.h> #include <linux/mtd/map.h> #include <linux/smc911x.h> +#include <linux/gpio.h> #include <asm/machvec.h> #include <asm/io.h> +#include <asm/sh7203.h> static struct smc911x_platdata smc911x_info = { .flags = SMC911X_USE_16BIT, @@ -122,6 +124,15 @@ static struct platform_device *rsk7203_devices[] __initdata = { static int __init rsk7203_devices_setup(void) { + /* Select pins for SCIF0 */ + gpio_request(GPIO_FN_TXD0, NULL); + gpio_request(GPIO_FN_RXD0, NULL); + + /* Lit LED0 */ + gpio_request(GPIO_PE10, NULL); + gpio_direction_output(GPIO_PE10, 0); + gpio_export(GPIO_PE10, 0); + set_mtd_partitions(); return platform_add_devices(rsk7203_devices, ARRAY_SIZE(rsk7203_devices)); |