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

Tsi-Chung Liew Tsi-Chung.Liew at freescale.com
Tue Aug 12 15:18:12 CEST 2008


From: TsiChung Liew <Tsi-Chung.Liew at freescale.com>

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

diff --git a/drivers/net/mcffec.c b/drivers/net/mcffec.c
index 58ed5e3..5218ab6 100644
--- a/drivers/net/mcffec.c
+++ b/drivers/net/mcffec.c
@@ -168,10 +168,11 @@ 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.
+	/*
+	 * FEC fix for MCF5275, FEC unable to initial transmit data packet.
 	 * A nop will ensure the descriptor polling active completed.
 	 */
-#ifdef CONFIG_M5275
+#if defined(CONFIG_M5275) || defined(CONFIG_M5282)
 	__asm__ ("nop");
 #endif
 
-- 
1.5.6.4




More information about the U-Boot mailing list