ARM: cache: add an empty stub function for invalidate/flush dcache
authorWu, Josh <Josh.wu@atmel.com>
Mon, 27 Jul 2015 03:40:16 +0000 (11:40 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:18:03 +0000 (10:18 +0200)
commitbd5c3cec8324f0ffcef815557f9ac92d8932c196
treeff03da642add087bdb13bce5911874ef74ac6d58
parent36fe402ae6982472d481df0f164d23baf82b2fc4
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>
arch/arm/cpu/arm11/cpu.c
arch/arm/cpu/arm926ejs/cache.c
arch/arm/cpu/armv7/cache_v7.c
arch/arm/cpu/armv8/cache_v8.c
arch/arm/lib/cache.c