diff options
Diffstat (limited to 'arch/blackfin/mach-bf527/boards/cm_bf527.c')
| -rw-r--r-- | arch/blackfin/mach-bf527/boards/cm_bf527.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/arch/blackfin/mach-bf527/boards/cm_bf527.c b/arch/blackfin/mach-bf527/boards/cm_bf527.c index 38037c7e125..2c31af7a320 100644 --- a/arch/blackfin/mach-bf527/boards/cm_bf527.c +++ b/arch/blackfin/mach-bf527/boards/cm_bf527.c | |||
| @@ -273,13 +273,35 @@ static struct platform_device dm9000_device = { | |||
| 273 | #endif | 273 | #endif |
| 274 | 274 | ||
| 275 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) | 275 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) |
| 276 | #include <linux/bfin_mac.h> | ||
| 277 | static const unsigned short bfin_mac_peripherals[] = P_RMII0; | ||
| 278 | |||
| 279 | static struct bfin_phydev_platform_data bfin_phydev_data[] = { | ||
| 280 | { | ||
| 281 | .addr = 1, | ||
| 282 | .irq = IRQ_MAC_PHYINT, | ||
| 283 | }, | ||
| 284 | }; | ||
| 285 | |||
| 286 | static struct bfin_mii_bus_platform_data bfin_mii_bus_data = { | ||
| 287 | .phydev_number = 1, | ||
| 288 | .phydev_data = bfin_phydev_data, | ||
| 289 | .phy_mode = PHY_INTERFACE_MODE_RMII, | ||
| 290 | .mac_peripherals = bfin_mac_peripherals, | ||
| 291 | }; | ||
| 292 | |||
| 276 | static struct platform_device bfin_mii_bus = { | 293 | static struct platform_device bfin_mii_bus = { |
| 277 | .name = "bfin_mii_bus", | 294 | .name = "bfin_mii_bus", |
| 295 | .dev = { | ||
| 296 | .platform_data = &bfin_mii_bus_data, | ||
| 297 | } | ||
| 278 | }; | 298 | }; |
| 279 | 299 | ||
| 280 | static struct platform_device bfin_mac_device = { | 300 | static struct platform_device bfin_mac_device = { |
| 281 | .name = "bfin_mac", | 301 | .name = "bfin_mac", |
| 282 | .dev.platform_data = &bfin_mii_bus, | 302 | .dev = { |
| 303 | .platform_data = &bfin_mii_bus, | ||
| 304 | } | ||
| 283 | }; | 305 | }; |
| 284 | #endif | 306 | #endif |
| 285 | 307 | ||
