summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorTsi-Chung Liew <Tsi-Chung.Liew@freescale.com>2008-03-17 17:08:16 -0500
committerBen Warren <biggerbadderben@gmail.com>2008-03-30 00:15:34 -0400
commitf605479de2deb11e834f31dfdb0af107c86aced6 (patch)
tree51cf38eba418908f13f90ac6777e0642d91ec301 /drivers/net
parentd9a2f416d6ac6058cd7845033ae4dc32ef1c0746 (diff)
downloadu-boot-imx-f605479de2deb11e834f31dfdb0af107c86aced6.zip
u-boot-imx-f605479de2deb11e834f31dfdb0af107c86aced6.tar.gz
u-boot-imx-f605479de2deb11e834f31dfdb0af107c86aced6.tar.bz2
ColdFire: Fix FEC transmit issue for MCF5275
Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/mcffec.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/mcffec.c b/drivers/net/mcffec.c
index 3b81258..71d1960 100644
--- a/drivers/net/mcffec.c
+++ b/drivers/net/mcffec.c
@@ -166,6 +166,13 @@ 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