Skip to content
Snippets Groups Projects
Commit 7091915a authored by Vipin Kumar's avatar Vipin Kumar Committed by Joe Hershberger
Browse files

net/designware: Do not select MIIPORT for RGMII interface


Do not select MIIPORT for RGMII interface

Signed-off-by: default avatarVipin Kumar <vipin.kumar@st.com>
Acked-by: default avatarStefan Roese <sr@denx.de>
parent fa84fa70
No related branches found
No related tags found
No related merge requests found
...@@ -113,7 +113,9 @@ static int mac_reset(struct eth_device *dev) ...@@ -113,7 +113,9 @@ static int mac_reset(struct eth_device *dev)
int timeout = CONFIG_MACRESET_TIMEOUT; int timeout = CONFIG_MACRESET_TIMEOUT;
writel(DMAMAC_SRST, &dma_p->busmode); writel(DMAMAC_SRST, &dma_p->busmode);
writel(MII_PORTSELECT, &mac_p->conf);
if (priv->interface != PHY_INTERFACE_MODE_RGMII)
writel(MII_PORTSELECT, &mac_p->conf);
start = get_timer(0); start = get_timer(0);
while (get_timer(start) < timeout) { while (get_timer(start) < timeout) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment