]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
davinci_emac: fix for running with dcache enabled
authorIlya Yanok <yanok@emcraft.com>
Mon, 28 Nov 2011 06:37:33 +0000 (06:37 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 6 Dec 2011 22:59:35 +0000 (23:59 +0100)
commit2aa8720257beadde8f798bd30096ca4c9007c8e0
tree2d8f3122b943d882dc07227463b5829f61376373
parent2f3427ccb915c6f6774f0bcebb67c648dc25dcfd
davinci_emac: fix for running with dcache enabled

DaVinci EMAC is present on TI AM35xx SoCs (ARMv7) which run with D-Cache
enabled by default. So we have to take care and flush/invalidate the
cache before/after the DMA operations.

Please note that the receive buffer alignment to 32 byte boundary comes
from the old driver version I don't know if it is really needed or
alignment to cache line size is enough.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
drivers/net/davinci_emac.c
drivers/net/davinci_emac.h