mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 14:40:41 +00:00
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>
This commit is contained in:
parent
d9a2f416d6
commit
f605479de2
1 changed files with 7 additions and 0 deletions
|
@ -166,6 +166,13 @@ int fec_send(struct eth_device *dev, volatile void *packet, int length)
|
||||||
/* Activate transmit Buffer Descriptor polling */
|
/* Activate transmit Buffer Descriptor polling */
|
||||||
fecp->tdar = 0x01000000; /* Descriptor polling active */
|
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
|
#ifdef CFG_UNIFY_CACHE
|
||||||
icache_invalid();
|
icache_invalid();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue