024-m5445x_enable_cache_store.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From 96de11ad11db226423d364a75cc82c6118a18a1f Mon Sep 17 00:00:00 2001
  2. From: Kurt Mahan <[email protected]>
  3. Date: Tue, 4 Dec 2007 00:04:21 -0700
  4. Subject: [PATCH] Enable Cache Store Buffer.
  5. LTIBName: m5445x-enable-cache-store
  6. Signed-off-by: Kurt Mahan <[email protected]>
  7. ---
  8. arch/m68k/coldfire/config.c | 2 ++
  9. include/asm-m68k/cfcache.h | 1 +
  10. 2 files changed, 3 insertions(+), 0 deletions(-)
  11. --- a/arch/m68k/coldfire/config.c
  12. +++ b/arch/m68k/coldfire/config.c
  13. @@ -21,6 +21,7 @@
  14. #include <asm/machdep.h>
  15. #include <asm/coldfire.h>
  16. #include <asm/cfcache.h>
  17. +#include <asm/cacheflush.h>
  18. #include <asm/bootinfo.h>
  19. #include <asm/io.h>
  20. #include <asm/cfmmu.h>
  21. @@ -165,6 +166,7 @@ asmlinkage void __init cf_early_init(voi
  22. + sizeof(record->data[0]) + sizeof(record->data[1]);
  23. /* Invalidate caches via CACR */
  24. + flush_bcache();
  25. cacr_set(CACHE_DISABLE_MODE);
  26. /* Turn on caches via CACR, enable EUSP */
  27. --- a/include/asm-m68k/cfcache.h
  28. +++ b/include/asm-m68k/cfcache.h
  29. @@ -64,6 +64,7 @@
  30. #define CACHE_INITIAL_MODE (CF_CACR_DEC+ \
  31. CF_CACR_BEC+ \
  32. CF_CACR_IEC+ \
  33. + CF_CACR_DESB+ \
  34. CF_CACR_EUSP)
  35. #else
  36. /* cache disabled for testing */