summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorbenoit.thebaudeau@advans <benoit.thebaudeau@advans>2012-07-19 02:12:58 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2012-07-19 11:46:19 -0500
commitf41471e6a36e70e53bf4cbe4247ff4c0ba87e56f (patch)
tree75fe01ef15f81b5408b10f78124463171025fe90 /drivers/net
parent9d2d924a0a728a4f852a3e9de7aa6cc72c4b460d (diff)
downloadu-boot-imx-f41471e6a36e70e53bf4cbe4247ff4c0ba87e56f.zip
u-boot-imx-f41471e6a36e70e53bf4cbe4247ff4c0ba87e56f.tar.gz
u-boot-imx-f41471e6a36e70e53bf4cbe4247ff4c0ba87e56f.tar.bz2
net: fec_mxc: Fix MDC for xMII
The MDC signal is available on all xMII (i.e. 'not 7-wire') interfaces, so mii_speed has to be set for all these interfaces, and not only for MII. Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com> Cc: Joe Hershberger <joe.hershberger@gmail.com> Cc: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/fec_mxc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c
index ddbdd33..fbfc842 100644
--- a/drivers/net/fec_mxc.c
+++ b/drivers/net/fec_mxc.c
@@ -603,7 +603,7 @@ static int fec_init(struct eth_device *dev, bd_t* bd)
fec_reg_setup(fec);
- if (fec->xcv_type == MII10 || fec->xcv_type == MII100)
+ if (fec->xcv_type != SEVENWIRE)
fec_mii_setspeed(fec);
/*