]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net/designware: Set ANAR to 0x1e1
authorArmando Visconti <armando.visconti@st.com>
Mon, 26 Mar 2012 00:09:58 +0000 (00:09 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 4 Apr 2012 15:47:40 +0000 (10:47 -0500)
This patch forces the advertised capabilities during auto
negotiation to always be 10/100 Mbps and half/full as duplexing.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
Signed-off-by: Amit Virdi <amit.virdi@st.com>
drivers/net/designware.c

index 56f0c7ac53a78b176af06011004a67227903b570..987469a2f6469598a68eba1def72ff2307d349b2 100644 (file)
@@ -399,6 +399,9 @@ static int configure_phy(struct eth_device *dev)
                return -1;
 
 #if defined(CONFIG_DW_AUTONEG)
+       /* Set Auto-Neg Advertisement capabilities to 10/100 half/full */
+       eth_mdio_write(dev, phy_addr, MII_ADVERTISE, 0x1E1);
+
        bmcr = BMCR_ANENABLE | BMCR_ANRESTART;
 #else
        bmcr = BMCR_SPEED100 | BMCR_FULLDPLX;