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