Commit 7a5c679b authored by Magnus Damm's avatar Magnus Damm Committed by Paul Mundt

sh: Use sh7203 GPIO on rsk7203 board

Make the rsk7203 board use the newly added sh7203 pinmux code.
Only a single LED plus the serial console pins for now.
Signed-off-by: default avatarMagnus Damm <damm@igel.co.jp>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 41e4a9a5
...@@ -128,6 +128,7 @@ config SH_RTS7751R2D ...@@ -128,6 +128,7 @@ config SH_RTS7751R2D
config SH_RSK7203 config SH_RSK7203
bool "RSK7203" bool "RSK7203"
select GENERIC_GPIO
depends on CPU_SUBTYPE_SH7203 depends on CPU_SUBTYPE_SH7203
config SH_SDK7780 config SH_SDK7780
......
...@@ -16,8 +16,10 @@ ...@@ -16,8 +16,10 @@
#include <linux/mtd/physmap.h> #include <linux/mtd/physmap.h>
#include <linux/mtd/map.h> #include <linux/mtd/map.h>
#include <linux/smc911x.h> #include <linux/smc911x.h>
#include <linux/gpio.h>
#include <asm/machvec.h> #include <asm/machvec.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/sh7203.h>
static struct smc911x_platdata smc911x_info = { static struct smc911x_platdata smc911x_info = {
.flags = SMC911X_USE_16BIT, .flags = SMC911X_USE_16BIT,
...@@ -122,6 +124,15 @@ static struct platform_device *rsk7203_devices[] __initdata = { ...@@ -122,6 +124,15 @@ static struct platform_device *rsk7203_devices[] __initdata = {
static int __init rsk7203_devices_setup(void) 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(); set_mtd_partitions();
return platform_add_devices(rsk7203_devices, return platform_add_devices(rsk7203_devices,
ARRAY_SIZE(rsk7203_devices)); ARRAY_SIZE(rsk7203_devices));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment