From: Armando Visconti Date: Mon, 26 Mar 2012 00:09:58 +0000 (+0000) Subject: net/designware: Set ANAR to 0x1e1 X-Git-Tag: v2012.04-rc2~8^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=20a5dde1495c74fd6c8b977a2619538b6bee8e0b;p=karo-tx-uboot.git net/designware: Set ANAR to 0x1e1 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 Signed-off-by: Amit Virdi --- diff --git a/drivers/net/designware.c b/drivers/net/designware.c index 56f0c7ac53..987469a2f6 100644 --- a/drivers/net/designware.c +++ b/drivers/net/designware.c @@ -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;