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-h2.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-h2.c')
-rw-r--r-- | arch/arm/mach-omap1/board-h2.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c index 89ba8ec4bbf4..eeafe6ed15cb 100644 --- a/arch/arm/mach-omap1/board-h2.c +++ b/arch/arm/mach-omap1/board-h2.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <linux/mtd/partitions.h> | 28 | #include <linux/mtd/partitions.h> |
29 | #include <linux/input.h> | 29 | #include <linux/input.h> |
30 | #include <linux/i2c/tps65010.h> | 30 | #include <linux/i2c/tps65010.h> |
31 | #include <linux/smc91x.h> | ||
31 | 32 | ||
32 | #include <mach/hardware.h> | 33 | #include <mach/hardware.h> |
33 | #include <asm/gpio.h> | 34 | #include <asm/gpio.h> |
@@ -200,6 +201,12 @@ static struct platform_device h2_nand_device = { | |||
200 | .resource = &h2_nand_resource, | 201 | .resource = &h2_nand_resource, |
201 | }; | 202 | }; |
202 | 203 | ||
204 | static struct smc91x_platdata h2_smc91x_info = { | ||
205 | .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT, | ||
206 | .leda = RPC_LED_100_10, | ||
207 | .ledb = RPC_LED_TX_RX, | ||
208 | }; | ||
209 | |||
203 | static struct resource h2_smc91x_resources[] = { | 210 | static struct resource h2_smc91x_resources[] = { |
204 | [0] = { | 211 | [0] = { |
205 | .start = OMAP1610_ETHR_START, /* Physical */ | 212 | .start = OMAP1610_ETHR_START, /* Physical */ |
@@ -216,6 +223,9 @@ static struct resource h2_smc91x_resources[] = { | |||
216 | static struct platform_device h2_smc91x_device = { | 223 | static struct platform_device h2_smc91x_device = { |
217 | .name = "smc91x", | 224 | .name = "smc91x", |
218 | .id = 0, | 225 | .id = 0, |
226 | .dev = { | ||
227 | .platform_data = &h2_smc91x_info, | ||
228 | }, | ||
219 | .num_resources = ARRAY_SIZE(h2_smc91x_resources), | 229 | .num_resources = ARRAY_SIZE(h2_smc91x_resources), |
220 | .resource = h2_smc91x_resources, | 230 | .resource = h2_smc91x_resources, |
221 | }; | 231 | }; |