diff options
Diffstat (limited to 'arch/arm/mach-omap1/board-osk.c')
-rw-r--r-- | arch/arm/mach-omap1/board-osk.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-omap1/board-osk.c b/arch/arm/mach-omap1/board-osk.c index 50c92c13e48a..ccea4f448e9a 100644 --- a/arch/arm/mach-omap1/board-osk.c +++ b/arch/arm/mach-omap1/board-osk.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include <linux/irq.h> | 33 | #include <linux/irq.h> |
34 | #include <linux/i2c.h> | 34 | #include <linux/i2c.h> |
35 | #include <linux/leds.h> | 35 | #include <linux/leds.h> |
36 | #include <linux/smc91x.h> | ||
36 | 37 | ||
37 | #include <linux/mtd/mtd.h> | 38 | #include <linux/mtd/mtd.h> |
38 | #include <linux/mtd/partitions.h> | 39 | #include <linux/mtd/partitions.h> |
@@ -115,6 +116,12 @@ static struct platform_device osk5912_flash_device = { | |||
115 | .resource = &osk_flash_resource, | 116 | .resource = &osk_flash_resource, |
116 | }; | 117 | }; |
117 | 118 | ||
119 | static struct smc91x_platdata osk5912_smc91x_info = { | ||
120 | .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT, | ||
121 | .leda = RPC_LED_100_10, | ||
122 | .ledb = RPC_LED_TX_RX, | ||
123 | }; | ||
124 | |||
118 | static struct resource osk5912_smc91x_resources[] = { | 125 | static struct resource osk5912_smc91x_resources[] = { |
119 | [0] = { | 126 | [0] = { |
120 | .start = OMAP_OSK_ETHR_START, /* Physical */ | 127 | .start = OMAP_OSK_ETHR_START, /* Physical */ |
@@ -131,6 +138,9 @@ static struct resource osk5912_smc91x_resources[] = { | |||
131 | static struct platform_device osk5912_smc91x_device = { | 138 | static struct platform_device osk5912_smc91x_device = { |
132 | .name = "smc91x", | 139 | .name = "smc91x", |
133 | .id = -1, | 140 | .id = -1, |
141 | .dev = { | ||
142 | .platform_data = &osk5912_smc91x_info, | ||
143 | }, | ||
134 | .num_resources = ARRAY_SIZE(osk5912_smc91x_resources), | 144 | .num_resources = ARRAY_SIZE(osk5912_smc91x_resources), |
135 | .resource = osk5912_smc91x_resources, | 145 | .resource = osk5912_smc91x_resources, |
136 | }; | 146 | }; |