]> git.sur5r.net Git - u-boot/commit
net: macb: enable dcache in macb
authorWu, Josh <Josh.wu@atmel.com>
Tue, 27 May 2014 08:31:05 +0000 (16:31 +0800)
committerAndreas Bießmann <andreas.devel@googlemail.com>
Sat, 14 Jun 2014 16:07:01 +0000 (18:07 +0200)
commit5ae0e38278ad3becfc9a0a6bfc5ab8c531ccd621
treeead18afaba4a5280e6031e14f5ca743b121e7075
parentceef983bf9b687926b274ad0eee8aae5a1812c92
net: macb: enable dcache in macb

Add to code to flush the dcache after we writing in DMA buffer.
Also we need invalidate the dcache before we check the status in the
DMA buffer.

Tested in SAMA5D3x-EK with gmac0. Tftp download speed shows in below:
Disable DCache: 1.1 MiB/s
Enable DCache: 1.6 MiB/s
Increase speed with about 40%.

The code should have no impact with the boards which are not
enable_dcache().
Tested in AT91SAM9M10G45EK.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
drivers/net/macb.c