summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorArmando Visconti <armando.visconti@st.com>2012-03-26 00:09:58 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2012-04-04 10:47:40 -0500
commit20a5dde1495c74fd6c8b977a2619538b6bee8e0b (patch)
tree7cd7210f721b0386e5617044444815d5873ee045 /drivers/net
parente25c90b45c4764e60e44f302ad337ed6ce066468 (diff)
downloadu-boot-20a5dde1495c74fd6c8b977a2619538b6bee8e0b.tar.gz
u-boot-20a5dde1495c74fd6c8b977a2619538b6bee8e0b.tar.xz
u-boot-20a5dde1495c74fd6c8b977a2619538b6bee8e0b.zip
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 <armando.visconti@st.com> Signed-off-by: Amit Virdi <amit.virdi@st.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/designware.c3
1 files changed, 3 insertions, 0 deletions
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;