提交 f605479d 编写于 作者: T Tsi-Chung Liew 提交者: Ben Warren

ColdFire: Fix FEC transmit issue for MCF5275

Signed-off-by: NTsiChung Liew <Tsi-Chung.Liew@freescale.com>
Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
上级 d9a2f416
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册