Commit 4dbe4b168bd3b315930bf65bb6c95eac10170026

Authored by Wu, Josh
Committed by Tom Rini
1 parent 057c220055

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>

Showing 1 changed file with 9 additions and 0 deletions Side-by-side Diff

arch/m68k/lib/cache.c
... ... @@ -132,4 +132,13 @@
132 132 __asm__ __volatile__("movec %0, %%cacr"::"r"(temp));
133 133 #endif
134 134 }
  135 +
  136 +__weak void invalidate_dcache_range(unsigned long start, unsigned long stop)
  137 +{
  138 + /* An empty stub, real implementation should be in platform code */
  139 +}
  140 +__weak void flush_dcache_range(unsigned long start, unsigned long stop)
  141 +{
  142 + /* An empty stub, real implementation should be in platform code */
  143 +}