projects
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa84fa7
)
net/designware: Do not select MIIPORT for RGMII interface
author
Vipin Kumar
<vipin.kumar@st.com>
Thu, 13 Dec 2012 11:52:51 +0000
(17:22 +0530)
committer
Joe Hershberger
<joe.hershberger@ni.com>
Tue, 25 Jun 2013 00:10:16 +0000
(19:10 -0500)
Do not select MIIPORT for RGMII interface
Signed-off-by: Vipin Kumar <vipin.kumar@st.com>
Acked-by: Stefan Roese <sr@denx.de>
drivers/net/designware.c
patch
|
blob
|
history
diff --git
a/drivers/net/designware.c
b/drivers/net/designware.c
index
bf21a08
..
46f6601
100644
(file)
--- 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) {