|
@@ -104,24 +104,23 @@ static const unsigned short bfin_mac_peripherals[] = {
|
|
|
|
|
|
static struct bfin_phydev_platform_data bfin_phydev_data[] = {
|
|
static struct bfin_phydev_platform_data bfin_phydev_data[] = {
|
|
{
|
|
{
|
|
- .addr = 1,
|
|
|
|
- .irq = IRQ_MAC_PHYINT,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- .addr = 2,
|
|
|
|
- .irq = IRQ_MAC_PHYINT,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
|
|
+#if defined(CONFIG_NET_DSA_KSZ8893M) || defined(CONFIG_NET_DSA_KSZ8893M_MODULE)
|
|
.addr = 3,
|
|
.addr = 3,
|
|
|
|
+#else
|
|
|
|
+ .addr = 1,
|
|
|
|
+#endif
|
|
.irq = IRQ_MAC_PHYINT,
|
|
.irq = IRQ_MAC_PHYINT,
|
|
},
|
|
},
|
|
};
|
|
};
|
|
|
|
|
|
static struct bfin_mii_bus_platform_data bfin_mii_bus_data = {
|
|
static struct bfin_mii_bus_platform_data bfin_mii_bus_data = {
|
|
- .phydev_number = 3,
|
|
|
|
|
|
+ .phydev_number = 1,
|
|
.phydev_data = bfin_phydev_data,
|
|
.phydev_data = bfin_phydev_data,
|
|
.phy_mode = PHY_INTERFACE_MODE_MII,
|
|
.phy_mode = PHY_INTERFACE_MODE_MII,
|
|
.mac_peripherals = bfin_mac_peripherals,
|
|
.mac_peripherals = bfin_mac_peripherals,
|
|
|
|
+#if defined(CONFIG_NET_DSA_KSZ8893M) || defined(CONFIG_NET_DSA_KSZ8893M_MODULE)
|
|
|
|
+ .phy_mask = 0xfff7, /* Only probe the port phy connect to the on chip MAC */
|
|
|
|
+#endif
|
|
};
|
|
};
|
|
|
|
|
|
static struct platform_device bfin_mii_bus = {
|
|
static struct platform_device bfin_mii_bus = {
|