diff options
Diffstat (limited to 'arch/blackfin/mach-bf537/boards/pnav10.c')
| -rw-r--r-- | arch/blackfin/mach-bf537/boards/pnav10.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/arch/blackfin/mach-bf537/boards/pnav10.c b/arch/blackfin/mach-bf537/boards/pnav10.c index 6b03808800a..b95807894e2 100644 --- a/arch/blackfin/mach-bf537/boards/pnav10.c +++ b/arch/blackfin/mach-bf537/boards/pnav10.c | |||
| @@ -99,13 +99,35 @@ static struct platform_device smc91x_device = { | |||
| 99 | #endif | 99 | #endif |
| 100 | 100 | ||
| 101 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) | 101 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) |
| 102 | #include <linux/bfin_mac.h> | ||
| 103 | static const unsigned short bfin_mac_peripherals[] = P_RMII0; | ||
| 104 | |||
| 105 | static struct bfin_phydev_platform_data bfin_phydev_data[] = { | ||
| 106 | { | ||
| 107 | .addr = 1, | ||
| 108 | .irq = IRQ_MAC_PHYINT, | ||
| 109 | }, | ||
| 110 | }; | ||
| 111 | |||
| 112 | static struct bfin_mii_bus_platform_data bfin_mii_bus_data = { | ||
| 113 | .phydev_number = 1, | ||
| 114 | .phydev_data = bfin_phydev_data, | ||
| 115 | .phy_mode = PHY_INTERFACE_MODE_RMII, | ||
| 116 | .mac_peripherals = bfin_mac_peripherals, | ||
| 117 | }; | ||
| 118 | |||
| 102 | static struct platform_device bfin_mii_bus = { | 119 | static struct platform_device bfin_mii_bus = { |
| 103 | .name = "bfin_mii_bus", | 120 | .name = "bfin_mii_bus", |
| 121 | .dev = { | ||
| 122 | .platform_data = &bfin_mii_bus_data, | ||
| 123 | } | ||
| 104 | }; | 124 | }; |
| 105 | 125 | ||
| 106 | static struct platform_device bfin_mac_device = { | 126 | static struct platform_device bfin_mac_device = { |
| 107 | .name = "bfin_mac", | 127 | .name = "bfin_mac", |
| 108 | .dev.platform_data = &bfin_mii_bus, | 128 | .dev = { |
| 129 | .platform_data = &bfin_mii_bus, | ||
| 130 | } | ||
| 109 | }; | 131 | }; |
| 110 | #endif | 132 | #endif |
| 111 | 133 | ||
