Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116174
b: refs/heads/master
c: 7a5c679
h: refs/heads/master
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Oct 20, 2008
1 parent 8f100cc commit 0b7300c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 41e4a9a5e2fc5a43b2b81aec402720226de29f05
refs/heads/master: 7a5c679b52d06471b0b08a39ed5c9e843eab13dd
1 change: 1 addition & 0 deletions trunk/arch/sh/boards/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ config SH_RTS7751R2D

config SH_RSK7203
bool "RSK7203"
select GENERIC_GPIO
depends on CPU_SUBTYPE_SH7203

config SH_SDK7780
Expand Down
11 changes: 11 additions & 0 deletions trunk/arch/sh/boards/board-rsk7203.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 0b7300c

Please sign in to comment.