aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorVipin Kumar <vipin.kumar@st.com>2012-12-13 17:22:51 +0530
committerJoe Hershberger <joe.hershberger@ni.com>2013-06-24 19:10:16 -0500
commit7091915ad7a58d7884b7353b87373847ae943e1c (patch)
tree940eb801b5038b62e437d9788fd71b8847cdd541 /drivers
parentfa84fa708c8ac826ea0e0c4af1b5fdfcd146a46d (diff)
downloadu-boot-7091915ad7a58d7884b7353b87373847ae943e1c.zip
u-boot-7091915ad7a58d7884b7353b87373847ae943e1c.tar.gz
u-boot-7091915ad7a58d7884b7353b87373847ae943e1c.tar.bz2
net/designware: Do not select MIIPORT for RGMII interface
Do not select MIIPORT for RGMII interface Signed-off-by: Vipin Kumar <vipin.kumar@st.com> Acked-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/designware.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/designware.c b/drivers/net/designware.c
index bf21a08..46f6601 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) {