aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-07-28 09:31:02 -0400
committerPaul Mundt <lethal@linux-sh.org>2008-07-28 17:32:05 -0400
commit6d0b365731682857ecc754163e7c5cb9edaae846 (patch)
tree22294ea9885a7c8c93986621d0e1a5e5f409212a /arch/sh/boards
parentf934fb19ef34730263e6afc01e8ec27a8a71470f (diff)
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 @@
10#include <linux/init.h> 10#include <linux/init.h>
11#include <linux/types.h> 11#include <linux/types.h>
12#include <linux/platform_device.h> 12#include <linux/platform_device.h>
13#include <linux/interrupt.h>
13#include <linux/mtd/mtd.h> 14#include <linux/mtd/mtd.h>
14#include <linux/mtd/partitions.h> 15#include <linux/mtd/partitions.h>
15#include <linux/mtd/physmap.h> 16#include <linux/mtd/physmap.h>
16#include <linux/mtd/map.h> 17#include <linux/mtd/map.h>
18#include <linux/smc911x.h>
17#include <asm/machvec.h> 19#include <asm/machvec.h>
18#include <asm/io.h> 20#include <asm/io.h>
19 21
22static struct smc911x_platdata smc911x_info = {
23 .flags = SMC911X_USE_16BIT,
24 .irq_flags = IRQF_TRIGGER_LOW,
25};
26
20static struct resource smc911x_resources[] = { 27static struct resource smc911x_resources[] = {
21 [0] = { 28 [0] = {
22 .start = 0x24000000, 29 .start = 0x24000000,
@@ -35,6 +42,9 @@ static struct platform_device smc911x_device = {
35 .id = -1, 42 .id = -1,
36 .num_resources = ARRAY_SIZE(smc911x_resources), 43 .num_resources = ARRAY_SIZE(smc911x_resources),
37 .resource = smc911x_resources, 44 .resource = smc911x_resources,
45 .dev = {
46 .platform_data = &smc911x_info,
47 },
38}; 48};
39 49
40static const char *probes[] = { "cmdlinepart", NULL }; 50static const char *probes[] = { "cmdlinepart", NULL };