diff options
author | Ladislav Michl <ladis@linux-mips.org> | 2009-12-11 19:16:33 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-12-11 19:16:33 -0500 |
commit | 3bc48014782a89f7201734d3e23865cb283926a7 (patch) | |
tree | f02691c3a2b919d49ba253060f7ce4d2296f9923 /arch/arm/mach-omap1/board-perseus2.c | |
parent | 662c8b55d26abeabc0b125f922dfa66338a046ae (diff) |
omap: use smc91x_platdata to setup smc91x
Use smc91x_platdata to setup smc91x, so we can get rid of OMAP specific stuff
in smc91x driver
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1/board-perseus2.c')
-rw-r--r-- | arch/arm/mach-omap1/board-perseus2.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-omap1/board-perseus2.c b/arch/arm/mach-omap1/board-perseus2.c index ca7df1e93efc..b9ea31289b50 100644 --- a/arch/arm/mach-omap1/board-perseus2.c +++ b/arch/arm/mach-omap1/board-perseus2.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/mtd/nand.h> | 19 | #include <linux/mtd/nand.h> |
20 | #include <linux/mtd/partitions.h> | 20 | #include <linux/mtd/partitions.h> |
21 | #include <linux/input.h> | 21 | #include <linux/input.h> |
22 | #include <linux/smc91x.h> | ||
22 | 23 | ||
23 | #include <mach/hardware.h> | 24 | #include <mach/hardware.h> |
24 | #include <asm/mach-types.h> | 25 | #include <asm/mach-types.h> |
@@ -67,6 +68,12 @@ static int p2_keymap[] = { | |||
67 | 0 | 68 | 0 |
68 | }; | 69 | }; |
69 | 70 | ||
71 | static struct smc91x_platdata smc91x_info = { | ||
72 | .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT, | ||
73 | .leda = RPC_LED_100_10, | ||
74 | .ledb = RPC_LED_TX_RX, | ||
75 | }; | ||
76 | |||
70 | static struct resource smc91x_resources[] = { | 77 | static struct resource smc91x_resources[] = { |
71 | [0] = { | 78 | [0] = { |
72 | .start = H2P2_DBG_FPGA_ETHR_START, /* Physical */ | 79 | .start = H2P2_DBG_FPGA_ETHR_START, /* Physical */ |
@@ -157,6 +164,9 @@ static struct platform_device nand_device = { | |||
157 | static struct platform_device smc91x_device = { | 164 | static struct platform_device smc91x_device = { |
158 | .name = "smc91x", | 165 | .name = "smc91x", |
159 | .id = 0, | 166 | .id = 0, |
167 | .dev = { | ||
168 | .platform_data = &smc91x_info, | ||
169 | }, | ||
160 | .num_resources = ARRAY_SIZE(smc91x_resources), | 170 | .num_resources = ARRAY_SIZE(smc91x_resources), |
161 | .resource = smc91x_resources, | 171 | .resource = smc91x_resources, |
162 | }; | 172 | }; |