[U-Boot] [PATCH 9/9] sync the buffer descriptor IO for coldfire FEC

Jason Jin Jason.jin at freescale.com
Tue Apr 19 08:15:34 CEST 2011


Some low-end ColdFire chip such as 5208 need more io sync
for FEC to work.

Signed-off-by: Jason Jin <Jason.jin at freescale.com>
---
 drivers/net/mcffec.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/net/mcffec.c b/drivers/net/mcffec.c
index a08ff27..666b24e 100644
--- a/drivers/net/mcffec.c
+++ b/drivers/net/mcffec.c
@@ -160,6 +160,8 @@ int fec_send(struct eth_device *dev, volatile void *packet, int length)
 	info->txbd[info->txIdx].cbd_datlen = length;
 	info->txbd[info->txIdx].cbd_sc |= BD_ENET_TX_RDY_LST;
 
+	__asm__("tpf");
+
 	/* Activate transmit Buffer Descriptor polling */
 	fecp->tdar = 0x01000000;	/* Descriptor polling active    */
 
-- 
1.6.4




More information about the U-Boot mailing list