[U-Boot-Users] [PATCH] ColdFire: Fix FEC transmit issue for MCF5275

Tsi-Chung Liew Tsi-Chung.Liew at freescale.com
Tue Mar 18 23:29:22 CET 2008


Signed-off-by: TsiChung Liew <Tsi-Chung.Liew at freescale.com>
---
 drivers/net/mcffec.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/drivers/net/mcffec.c b/drivers/net/mcffec.c
index 3b81258..40d7bf2 100644
--- a/drivers/net/mcffec.c
+++ b/drivers/net/mcffec.c
@@ -166,6 +166,14 @@ int fec_send(struct eth_device *dev, volatile void *packet, int length)
 	/* Activate transmit Buffer Descriptor polling */
 	fecp->tdar = 0x01000000;	/* Descriptor polling active    */
 
+	/*
+	 * FEC fix for MCF5275, FEC unable to initial transmit data packet.
+	 * A nop will ensure the descriptor polling active completed.
+	 */
+#ifdef CONFIG_M5275
+	__asm__ ("nop");
+#endif
+
 #ifdef CFG_UNIFY_CACHE
 	icache_invalid();
 #endif
-- 
1.5.4.1





More information about the U-Boot mailing list