[U-Boot] [PATCH 2/2] net: fec_mxc: Fix MDC for xMII

Benoît Thébaudeau benoit.thebaudeau at advansee.com
Thu Jul 19 14:12:58 CEST 2012


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 at advansee.com>
Cc: Joe Hershberger <joe.hershberger at gmail.com>
Cc: Stefano Babic <sbabic at denx.de>
---
 .../drivers/net/fec_mxc.c                          |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git u-boot-66714b1.orig/drivers/net/fec_mxc.c u-boot-66714b1/drivers/net/fec_mxc.c
index c64a223..e25cde0 100644
--- u-boot-66714b1.orig/drivers/net/fec_mxc.c
+++ u-boot-66714b1/drivers/net/fec_mxc.c
@@ -597,7 +597,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);
 
 	/*


More information about the U-Boot mailing list