diff options
Diffstat (limited to 'arch/blackfin/mach-bf527/boards/ezbrd.c')
-rw-r--r-- | arch/blackfin/mach-bf527/boards/ezbrd.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/arch/blackfin/mach-bf527/boards/ezbrd.c b/arch/blackfin/mach-bf527/boards/ezbrd.c index 6cc64a1e78b9..9a736a850c5c 100644 --- a/arch/blackfin/mach-bf527/boards/ezbrd.c +++ b/arch/blackfin/mach-bf527/boards/ezbrd.c | |||
@@ -193,13 +193,35 @@ static struct platform_device rtc_device = { | |||
193 | 193 | ||
194 | 194 | ||
195 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) | 195 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) |
196 | #include <linux/bfin_mac.h> | ||
197 | static const unsigned short bfin_mac_peripherals[] = P_RMII0; | ||
198 | |||
199 | static struct bfin_phydev_platform_data bfin_phydev_data[] = { | ||
200 | { | ||
201 | .addr = 1, | ||
202 | .irq = IRQ_MAC_PHYINT, | ||
203 | }, | ||
204 | }; | ||
205 | |||
206 | static struct bfin_mii_bus_platform_data bfin_mii_bus_data = { | ||
207 | .phydev_number = 1, | ||
208 | .phydev_data = bfin_phydev_data, | ||
209 | .phy_mode = PHY_INTERFACE_MODE_RMII, | ||
210 | .mac_peripherals = bfin_mac_peripherals, | ||
211 | }; | ||
212 | |||
196 | static struct platform_device bfin_mii_bus = { | 213 | static struct platform_device bfin_mii_bus = { |
197 | .name = "bfin_mii_bus", | 214 | .name = "bfin_mii_bus", |
215 | .dev = { | ||
216 | .platform_data = &bfin_mii_bus_data, | ||
217 | } | ||
198 | }; | 218 | }; |
199 | 219 | ||
200 | static struct platform_device bfin_mac_device = { | 220 | static struct platform_device bfin_mac_device = { |
201 | .name = "bfin_mac", | 221 | .name = "bfin_mac", |
202 | .dev.platform_data = &bfin_mii_bus, | 222 | .dev = { |
223 | .platform_data = &bfin_mii_bus, | ||
224 | } | ||
203 | }; | 225 | }; |
204 | #endif | 226 | #endif |
205 | 227 | ||