diff options
author | Wu, Josh <Josh.wu@atmel.com> | 2015-07-27 11:40:17 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-08-12 20:47:48 -0400 |
commit | 633b6ccedf9d536fd93299b2207a5227dedd987c (patch) | |
tree | 1fca53c6a3d3ed616fa172e68b2ae78c0b074d7a /arch/arm/cpu/armv8/cache_v8.c | |
parent | 387871a10edc777a5d94bfdbd6b86e493991826e (diff) | |
download | u-boot-633b6ccedf9d536fd93299b2207a5227dedd987c.tar.gz |
ARM: cache: implement a default weak flush_cache() function
Current many cpu use the same flush_cache() function, which just call
the flush_dcache_range().
So implement a weak flush_cache() for all the cpus to use.
In original weak flush_cache() in arch/arm/lib/cache.c, there has some
code for ARM1136 & ARM926ejs. But in the arch/arm/cpu/arm1136/cpu.c and
arch/arm/cpu/arm926ejs/cache.c, there implements a real flush_cache()
function as well. That means the original code for ARM1136 & ARM926ejs
in weak flush_cache() of arch/arm/lib/cache.c is totally useless.
So in this patch remove such code in flush_cache() and only call
flush_dcache_range().
Signed-off-by: Josh Wu <josh.wu@atmel.com>
Diffstat (limited to 'arch/arm/cpu/armv8/cache_v8.c')
-rw-r--r-- | arch/arm/cpu/armv8/cache_v8.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/arm/cpu/armv8/cache_v8.c b/arch/arm/cpu/armv8/cache_v8.c index cd160c4b63..835f6a6525 100644 --- a/arch/arm/cpu/armv8/cache_v8.c +++ b/arch/arm/cpu/armv8/cache_v8.c @@ -253,11 +253,3 @@ void __weak enable_caches(void) icache_enable(); dcache_enable(); } - -/* - * Flush range from all levels of d-cache/unified-cache - */ -void flush_cache(unsigned long start, unsigned long size) -{ - flush_dcache_range(start, start + size); -} |