diff options
Diffstat (limited to 'arch/blackfin/mach-bf527/boards/tll6527m.c')
-rw-r--r-- | arch/blackfin/mach-bf527/boards/tll6527m.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/arch/blackfin/mach-bf527/boards/tll6527m.c b/arch/blackfin/mach-bf527/boards/tll6527m.c index ae4130e97c0..9ec575729e2 100644 --- a/arch/blackfin/mach-bf527/boards/tll6527m.c +++ b/arch/blackfin/mach-bf527/boards/tll6527m.c | |||
@@ -257,13 +257,35 @@ static struct platform_device rtc_device = { | |||
257 | #endif | 257 | #endif |
258 | 258 | ||
259 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) | 259 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) |
260 | #include <linux/bfin_mac.h> | ||
261 | static const unsigned short bfin_mac_peripherals[] = P_RMII0; | ||
262 | |||
263 | static struct bfin_phydev_platform_data bfin_phydev_data[] = { | ||
264 | { | ||
265 | .addr = 1, | ||
266 | .irq = IRQ_MAC_PHYINT, | ||
267 | }, | ||
268 | }; | ||
269 | |||
270 | static struct bfin_mii_bus_platform_data bfin_mii_bus_data = { | ||
271 | .phydev_number = 1, | ||
272 | .phydev_data = bfin_phydev_data, | ||
273 | .phy_mode = PHY_INTERFACE_MODE_RMII, | ||
274 | .mac_peripherals = bfin_mac_peripherals, | ||
275 | }; | ||
276 | |||
260 | static struct platform_device bfin_mii_bus = { | 277 | static struct platform_device bfin_mii_bus = { |
261 | .name = "bfin_mii_bus", | 278 | .name = "bfin_mii_bus", |
279 | .dev = { | ||
280 | .platform_data = &bfin_mii_bus_data, | ||
281 | } | ||
262 | }; | 282 | }; |
263 | 283 | ||
264 | static struct platform_device bfin_mac_device = { | 284 | static struct platform_device bfin_mac_device = { |
265 | .name = "bfin_mac", | 285 | .name = "bfin_mac", |
266 | .dev.platform_data = &bfin_mii_bus, | 286 | .dev = { |
287 | .platform_data = &bfin_mii_bus, | ||
288 | } | ||
267 | }; | 289 | }; |
268 | #endif | 290 | #endif |
269 | 291 | ||