aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/include
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2010-11-08 19:40:44 -0500
committerGreg Ungerer <gerg@uclinux.org>2011-01-05 00:19:18 -0500
commit3d461401eb5e3a8c471e92500aebd6c115273fba (patch)
tree9b8df3b3afb8f358851527db5c73b40dfc65228d /arch/m68k/include
parent278c2cbd59371bc8905d83b7cc3aa0bbe69c00f1 (diff)
m68knommu: move inclusion of ColdFire v4 cache registers
Move the inclusion of the version 4 cache controller registers so that it is with all the other register bit flag definitions. This makes it consistent with the other version core inclusion points, and means we don't need "#ifdef"ery in odd-ball places for these definitions. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k/include')
-rw-r--r--arch/m68k/include/asm/cacheflush_no.h4
-rw-r--r--arch/m68k/include/asm/m5407sim.h2
-rw-r--r--arch/m68k/include/asm/m54xxsim.h2
-rw-r--r--arch/m68k/include/asm/mcfcache.h2
4 files changed, 5 insertions, 5 deletions
diff --git a/arch/m68k/include/asm/cacheflush_no.h b/arch/m68k/include/asm/cacheflush_no.h
index e295923020d3..52b11ac9a30c 100644
--- a/arch/m68k/include/asm/cacheflush_no.h
+++ b/arch/m68k/include/asm/cacheflush_no.h
@@ -5,9 +5,7 @@
5 * (C) Copyright 2000-2004, Greg Ungerer <gerg@snapgear.com> 5 * (C) Copyright 2000-2004, Greg Ungerer <gerg@snapgear.com>
6 */ 6 */
7#include <linux/mm.h> 7#include <linux/mm.h>
8#if defined(CONFIG_M5407) || defined(CONFIG_M54xx) 8#include <asm/mcfsim.h>
9#include <asm/m54xxacr.h>
10#endif
11 9
12#define flush_cache_all() __flush_cache_all() 10#define flush_cache_all() __flush_cache_all()
13#define flush_cache_mm(mm) do { } while (0) 11#define flush_cache_mm(mm) do { } while (0)
diff --git a/arch/m68k/include/asm/m5407sim.h b/arch/m68k/include/asm/m5407sim.h
index ddfff88629fe..75f5c28a551d 100644
--- a/arch/m68k/include/asm/m5407sim.h
+++ b/arch/m68k/include/asm/m5407sim.h
@@ -17,6 +17,8 @@
17#define CPU_NAME "COLDFIRE(m5407)" 17#define CPU_NAME "COLDFIRE(m5407)"
18#define CPU_INSTR_PER_JIFFY 3 18#define CPU_INSTR_PER_JIFFY 3
19 19
20#include <asm/m54xxacr.h>
21
20/* 22/*
21 * Define the 5407 SIM register set addresses. 23 * Define the 5407 SIM register set addresses.
22 */ 24 */
diff --git a/arch/m68k/include/asm/m54xxsim.h b/arch/m68k/include/asm/m54xxsim.h
index a08a7ae776b1..462ae5328441 100644
--- a/arch/m68k/include/asm/m54xxsim.h
+++ b/arch/m68k/include/asm/m54xxsim.h
@@ -8,6 +8,8 @@
8#define CPU_NAME "COLDFIRE(m54xx)" 8#define CPU_NAME "COLDFIRE(m54xx)"
9#define CPU_INSTR_PER_JIFFY 2 9#define CPU_INSTR_PER_JIFFY 2
10 10
11#include <asm/m54xxacr.h>
12
11#define MCFINT_VECBASE 64 13#define MCFINT_VECBASE 64
12 14
13/* 15/*
diff --git a/arch/m68k/include/asm/mcfcache.h b/arch/m68k/include/asm/mcfcache.h
index 437686b62fea..2b3a6cfaaac0 100644
--- a/arch/m68k/include/asm/mcfcache.h
+++ b/arch/m68k/include/asm/mcfcache.h
@@ -109,8 +109,6 @@
109 109
110#if defined(CONFIG_M5407) || defined(CONFIG_M54xx) 110#if defined(CONFIG_M5407) || defined(CONFIG_M54xx)
111 111
112#include <asm/m54xxacr.h>
113
114.macro CACHE_ENABLE 112.macro CACHE_ENABLE
115 /* invalidate whole cache */ 113 /* invalidate whole cache */
116 movel #(CACR_DCINVA+CACR_BCINVA+CACR_ICINVA),%d0 114 movel #(CACR_DCINVA+CACR_BCINVA+CACR_ICINVA),%d0