diff options
author | Wu, Josh <Josh.wu@atmel.com> | 2015-07-27 11:40:16 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-08-12 20:47:47 -0400 |
commit | 387871a10edc777a5d94bfdbd6b86e493991826e (patch) | |
tree | 7461973b0510ef8f0ca6eb3df08fdb350edee0c3 /arch/arm/cpu/armv7/cache_v7.c | |
parent | 4dbe4b168bd3b315930bf65bb6c95eac10170026 (diff) |
ARM: cache: add an empty stub function for invalidate/flush dcache
Since some driver like ohci, lcd used dcache functions. But some ARM
cpu don't implement the invalidate_dcache_range()/flush_dcache_range()
functions.
To avoid compiling errors this patch adds an weak empty stub function
for all ARM cpu in arch/arm/lib/cache.c.
And ARM cpu still can implemnt its own cache functions on the cpu folder.
Signed-off-by: Josh Wu <josh.wu@atmel.com>
Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'arch/arm/cpu/armv7/cache_v7.c')
-rw-r--r-- | arch/arm/cpu/armv7/cache_v7.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/arm/cpu/armv7/cache_v7.c b/arch/arm/cpu/armv7/cache_v7.c index e8ee875981f..4f0e4062a2d 100644 --- a/arch/arm/cpu/armv7/cache_v7.c +++ b/arch/arm/cpu/armv7/cache_v7.c @@ -304,14 +304,6 @@ void flush_dcache_all(void) { } -void invalidate_dcache_range(unsigned long start, unsigned long stop) -{ -} - -void flush_dcache_range(unsigned long start, unsigned long stop) -{ -} - void arm_init_before_mmu(void) { } |