net: fec_mxc: allow use with cache enabled
authorEric Nelson <eric.nelson@boundarydevices.com>
Thu, 15 Mar 2012 18:33:25 +0000 (18:33 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 29 Mar 2012 05:57:20 +0000 (07:57 +0200)
commit5c1ad3e6f8ae578bbe30e09652f1531e9bc22031
tree65969d30d4140d8dd075d6fcf4da036d3c919e10
parent2c4b3c19a1fe1c4e9ef1ec457cf34821368288d7
net: fec_mxc: allow use with cache enabled

Ensure that transmit and receive buffers are cache-line aligned.
Invalidate cache for each packet as received, update receive buffer
descriptors one cache line at a time, flush cache before transmitting.

Original patch by Marek:
 http://lists.denx.de/pipermail/u-boot/2012-February/117695.html

Signed-off-by: Eric Nelson <eric.nelson at boundarydevices.com>
Acked-by: Marek Vasut <marex@denx.de>
Tested-by: Marek Vasut <marex@denx.de>
drivers/net/fec_mxc.c
drivers/net/fec_mxc.h