summaryrefslogtreecommitdiffstats
path: root/arch/sh/boards
diff options
context:
space:
mode:
authorPaul Mundt2008-07-28 15:31:02 +0200
committerPaul Mundt2008-07-28 23:32:05 +0200
commit6d0b365731682857ecc754163e7c5cb9edaae846 (patch)
tree22294ea9885a7c8c93986621d0e1a5e5f409212a /arch/sh/boards
parentMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dto... (diff)
downloadkernel-qcow2-linux-6d0b365731682857ecc754163e7c5cb9edaae846.tar.gz
kernel-qcow2-linux-6d0b365731682857ecc754163e7c5cb9edaae846.tar.xz
kernel-qcow2-linux-6d0b365731682857ecc754163e7c5cb9edaae846.zip
sh: rsk7203: Add smc911x platform data.
This hooks up platform data for the SMC9118 on the RSK+7203. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards')
-rw-r--r--arch/sh/boards/renesas/rsk7203/setup.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/sh/boards/renesas/rsk7203/setup.c b/arch/sh/boards/renesas/rsk7203/setup.c
index 0bbda04b03b9..ffbedc59a973 100644
--- a/arch/sh/boards/renesas/rsk7203/setup.c
+++ b/arch/sh/boards/renesas/rsk7203/setup.c
@@ -10,13 +10,20 @@
#include <linux/init.h>
#include <linux/types.h>
#include <linux/platform_device.h>
+#include <linux/interrupt.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <linux/mtd/physmap.h>
#include <linux/mtd/map.h>
+#include <linux/smc911x.h>
#include <asm/machvec.h>
#include <asm/io.h>
+static struct smc911x_platdata smc911x_info = {
+ .flags = SMC911X_USE_16BIT,
+ .irq_flags = IRQF_TRIGGER_LOW,
+};
+
static struct resource smc911x_resources[] = {
[0] = {
.start = 0x24000000,
@@ -35,6 +42,9 @@ static struct platform_device smc911x_device = {
.id = -1,
.num_resources = ARRAY_SIZE(smc911x_resources),
.resource = smc911x_resources,
+ .dev = {
+ .platform_data = &smc911x_info,
+ },
};
static const char *probes[] = { "cmdlinepart", NULL };