From: Vipin Kumar Date: Thu, 13 Dec 2012 11:52:51 +0000 (+0530) Subject: net/designware: Do not select MIIPORT for RGMII interface X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=7091915ad7a58d7884b7353b87373847ae943e1c;p=u-boot.git net/designware: Do not select MIIPORT for RGMII interface Do not select MIIPORT for RGMII interface Signed-off-by: Vipin Kumar Acked-by: Stefan Roese --- diff --git a/drivers/net/designware.c b/drivers/net/designware.c index bf21a08bdf..46f6601fa3 100644 --- a/drivers/net/designware.c +++ b/drivers/net/designware.c @@ -113,7 +113,9 @@ static int mac_reset(struct eth_device *dev) int timeout = CONFIG_MACRESET_TIMEOUT; 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); while (get_timer(start) < timeout) {