Skip to content
Snippets Groups Projects
Commit 20a5dde1 authored by Armando Visconti's avatar Armando Visconti Committed by Joe Hershberger
Browse files

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: default avatarArmando Visconti <armando.visconti@st.com>
Signed-off-by: default avatarAmit Virdi <amit.virdi@st.com>
parent e25c90b4
Branches
Tags
No related merge requests found
...@@ -399,6 +399,9 @@ static int configure_phy(struct eth_device *dev) ...@@ -399,6 +399,9 @@ static int configure_phy(struct eth_device *dev)
return -1; return -1;
#if defined(CONFIG_DW_AUTONEG) #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; bmcr = BMCR_ANENABLE | BMCR_ANRESTART;
#else #else
bmcr = BMCR_SPEED100 | BMCR_FULLDPLX; bmcr = BMCR_SPEED100 | BMCR_FULLDPLX;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment