[U-Boot] [PATCH 2/9] NET: fec_mxc.c: Add support for MII for MX5 SOCs

Dirk Behme dirk.behme at de.bosch.com
Tue May 15 14:39:34 CEST 2012


On 22.02.2012 11:24, Stefano Babic wrote:
> Signed-off-by: Stefano Babic <sbabic at denx.de>
> CC: Fabio Estevam <fabio.estevam at freescale.com>
> ---
>  drivers/net/fec_mxc.c |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c
> index 1fdd071..201e5d2 100644
> --- a/drivers/net/fec_mxc.c
> +++ b/drivers/net/fec_mxc.c
> @@ -419,8 +419,13 @@ static int fec_open(struct eth_device *edev)
>  	while (readw(&fec->eth->miigsk_enr) & MIIGSK_ENR_READY)
>  		udelay(2);
>  
> +#if !defined(CONFIG_MII)
>  	/* configure gasket for RMII, 50 MHz, no loopback, and no echo */
>  	writew(MIIGSK_CFGR_IF_MODE_RMII, &fec->eth->miigsk_cfgr);
> +#else
> +	/* configure gasket for MII, no loopback, and no echo */
> +	writew(MIIGSK_CFGR_IF_MODE_MII, &fec->eth->miigsk_cfgr);
> +#endif
>  
>  	/* re-enable the gasket */
>  	writew(MIIGSK_ENR_EN, &fec->eth->miigsk_enr);

I have this patch on my list of pending patches.

What's the status of this?

Best regards

Dirk


More information about the U-Boot mailing list