summaryrefslogtreecommitdiff
path: root/arch/m68k
diff options
context:
space:
mode:
authorWu, Josh <Josh.wu@atmel.com>2015-07-27 11:40:15 +0800
committerTom Rini <trini@konsulko.com>2015-08-12 20:47:46 -0400
commit4dbe4b168bd3b315930bf65bb6c95eac10170026 (patch)
treea083a474f0a3eb60b05484c2e6a1db7cabffda45 /arch/m68k
parent057c2200557e187a47f2c10af6c0b2db9bf88df3 (diff)
downloadu-boot-imx-4dbe4b168bd3b315930bf65bb6c95eac10170026.zip
u-boot-imx-4dbe4b168bd3b315930bf65bb6c95eac10170026.tar.gz
u-boot-imx-4dbe4b168bd3b315930bf65bb6c95eac10170026.tar.bz2
m68k: cache: add an empty stub functions for invalidate/flush dcache
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>
Diffstat (limited to 'arch/m68k')
-rw-r--r--arch/m68k/lib/cache.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/m68k/lib/cache.c b/arch/m68k/lib/cache.c
index 21daf3d..ace791b 100644
--- a/arch/m68k/lib/cache.c
+++ b/arch/m68k/lib/cache.c
@@ -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 */
+}