From 762d994929deb79569986bda8e4d7b56e06d14f0 Mon Sep 17 00:00:00 2001 From: Jason Date: Wed, 17 Mar 2010 16:41:56 +0800 Subject: ENGR00121202 Add uboot support for MX53 Add uboot support for MX53 Signed-off-by:Jason Liu --- drivers/net/mxc_fec.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'drivers/net') diff --git a/drivers/net/mxc_fec.c b/drivers/net/mxc_fec.c index 314496e..0e6c0b0 100644 --- a/drivers/net/mxc_fec.c +++ b/drivers/net/mxc_fec.c @@ -93,7 +93,7 @@ DECLARE_GLOBAL_DATA_PTR; -#ifdef CONFIG_MX25 +#if defined(CONFIG_MX25) || defined(CONFIG_MX53) /* * * i.MX25 allows RMII mode to be configured via a gasket * */ @@ -124,6 +124,9 @@ static inline void fec_localhw_setup(volatile fec_t *fecp) /* re-enable the gasket */ fecp->fec_miigsk_enr = FEC_MIIGSK_ENR_EN; + + while (!(fecp->fec_miigsk_enr & FEC_MIIGSK_ENR_READY)) + udelay(1); } #else static inline void fec_localhw_setup(fec_t *fecp) -- cgit v1.1