diff options
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 | }; |