diff options
author | Wu, Josh <Josh.wu@atmel.com> | 2014-05-27 16:31:05 +0800 |
---|---|---|
committer | Andreas Bießmann <andreas.devel@googlemail.com> | 2014-06-14 18:07:01 +0200 |
commit | 5ae0e38278ad3becfc9a0a6bfc5ab8c531ccd621 (patch) | |
tree | ead18afaba4a5280e6031e14f5ca743b121e7075 /include/configs/ethernut5.h | |
parent | ceef983bf9b687926b274ad0eee8aae5a1812c92 (diff) |
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>
Diffstat (limited to 'include/configs/ethernut5.h')
0 files changed, 0 insertions, 0 deletions