]> git.sur5r.net Git - u-boot/commitdiff
net: sh-eth: Change cache API of SH
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Thu, 22 Aug 2013 04:22:01 +0000 (13:22 +0900)
committerJoe Hershberger <joe.hershberger@ni.com>
Fri, 22 Nov 2013 22:50:49 +0000 (16:50 -0600)
The cache API of SH was changed from dcache_wback_range to flush_dcache_range.
sh-eth uses dcache_wback_range. This patch changes to flush_dcache_range.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
drivers/net/sh_eth.c

index d5a83e0bf5b32b3dc89336cffd49a434839960ed..4cfd1e512a3a73bb859291308e8dc90f5503fe00 100644 (file)
 #ifndef CONFIG_SH_ETHER_PHY_ADDR
 # error "Please define CONFIG_SH_ETHER_PHY_ADDR"
 #endif
+
 #ifdef CONFIG_SH_ETHER_CACHE_WRITEBACK
 #define flush_cache_wback(addr, len)   \
-                       dcache_wback_range((u32)addr, (u32)(addr + len - 1))
+                       flush_dcache_range((u32)addr, (u32)(addr + len - 1))
 #else
 #define flush_cache_wback(...)
 #endif