]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
m68k: cache: add an empty stub functions for invalidate/flush dcache
authorWu, Josh <Josh.wu@atmel.com>
Mon, 27 Jul 2015 03:40:15 +0000 (11:40 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:18:03 +0000 (10:18 +0200)
Since some driver like ohci, lcd used dcache functions. But m68k 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 m68k cpu.

Also each cpu can implement its own implementation. If not implemented
then by default is using an empty function.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Acked-by: Angelo Dureghello <angelo@sysam.it>
arch/m68k/lib/cache.c

index 21daf3d1d0f65115145ccd1cff0f4192624a1d84..ace791beb18eda19d08be051c1f2cd8adcf387cc 100644 (file)
@@ -132,3 +132,12 @@ void dcache_invalid(void)
        __asm__ __volatile__("movec %0, %%cacr"::"r"(temp));
 #endif
 }
+
+__weak void invalidate_dcache_range(unsigned long start, unsigned long stop)
+{
+       /* An empty stub, real implementation should be in platform code */
+}
+__weak void flush_dcache_range(unsigned long start, unsigned long stop)
+{
+       /* An empty stub, real implementation should be in platform code */
+}