diff options
Diffstat (limited to 'arch/blackfin/mach-bf518/boards/tcm-bf518.c')
-rw-r--r-- | arch/blackfin/mach-bf518/boards/tcm-bf518.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/arch/blackfin/mach-bf518/boards/tcm-bf518.c b/arch/blackfin/mach-bf518/boards/tcm-bf518.c index bead810a654..e6ce1d7c523 100644 --- a/arch/blackfin/mach-bf518/boards/tcm-bf518.c +++ b/arch/blackfin/mach-bf518/boards/tcm-bf518.c | |||
@@ -81,13 +81,35 @@ static struct platform_device rtc_device = { | |||
81 | #endif | 81 | #endif |
82 | 82 | ||
83 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) | 83 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) |
84 | #include <linux/bfin_mac.h> | ||
85 | static const unsigned short bfin_mac_peripherals[] = P_MII0; | ||
86 | |||
87 | static struct bfin_phydev_platform_data bfin_phydev_data[] = { | ||
88 | { | ||
89 | .addr = 1, | ||
90 | .irq = IRQ_MAC_PHYINT, | ||
91 | }, | ||
92 | }; | ||
93 | |||
94 | static struct bfin_mii_bus_platform_data bfin_mii_bus_data = { | ||
95 | .phydev_number = 1, | ||
96 | .phydev_data = bfin_phydev_data, | ||
97 | .phy_mode = PHY_INTERFACE_MODE_MII, | ||
98 | .mac_peripherals = bfin_mac_peripherals, | ||
99 | }; | ||
100 | |||
84 | static struct platform_device bfin_mii_bus = { | 101 | static struct platform_device bfin_mii_bus = { |
85 | .name = "bfin_mii_bus", | 102 | .name = "bfin_mii_bus", |
103 | .dev = { | ||
104 | .platform_data = &bfin_mii_bus_data, | ||
105 | } | ||
86 | }; | 106 | }; |
87 | 107 | ||
88 | static struct platform_device bfin_mac_device = { | 108 | static struct platform_device bfin_mac_device = { |
89 | .name = "bfin_mac", | 109 | .name = "bfin_mac", |
90 | .dev.platform_data = &bfin_mii_bus, | 110 | .dev = { |
111 | .platform_data = &bfin_mii_bus, | ||
112 | } | ||
91 | }; | 113 | }; |
92 | #endif | 114 | #endif |
93 | 115 | ||