|
@@ -165,6 +165,9 @@ void am65_cpsw_nuss_adjust_link(struct net_device *ndev)
|
|
|
|
|
|
|
|
if (phy->speed == 1000)
|
|
if (phy->speed == 1000)
|
|
|
mac_control |= CPSW_SL_CTL_GIG;
|
|
mac_control |= CPSW_SL_CTL_GIG;
|
|
|
|
|
+ if (phy->speed == 10 && phy_interface_is_rgmii(phy))
|
|
|
|
|
+ /* Can be used with in band mode only */
|
|
|
|
|
+ mac_control |= CPSW_SL_CTL_EXT_EN;
|
|
|
if (phy->duplex)
|
|
if (phy->duplex)
|
|
|
mac_control |= CPSW_SL_CTL_FULLDUPLEX;
|
|
mac_control |= CPSW_SL_CTL_FULLDUPLEX;
|
|
|
|
|
|