aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/include/asm/m532xsim.h
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2010-11-08 19:19:45 -0500
committerGreg Ungerer <gerg@uclinux.org>2011-01-05 00:19:18 -0500
commit278c2cbd59371bc8905d83b7cc3aa0bbe69c00f1 (patch)
tree56df7c83d37bf188a7750f3b126b6dd24b3db918 /arch/m68k/include/asm/m532xsim.h
parenta12cf0a8c6e2763ac865aa31f296557e07432b8a (diff)
m68knommu: merge bit definitions for version 3 ColdFire cache controller
All version 3 based ColdFire CPU cores have a similar cache controller. Merge all the exitsing definitions into a single file, and make them similar in style and naming to the existing version 2 and version 4 cache controller definitions. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k/include/asm/m532xsim.h')
-rw-r--r--arch/m68k/include/asm/m532xsim.h29
1 files changed, 2 insertions, 27 deletions
diff --git a/arch/m68k/include/asm/m532xsim.h b/arch/m68k/include/asm/m532xsim.h
index 45c119c072db..e6470f8ca324 100644
--- a/arch/m68k/include/asm/m532xsim.h
+++ b/arch/m68k/include/asm/m532xsim.h
@@ -12,6 +12,8 @@
12#define CPU_NAME "COLDFIRE(m532x)" 12#define CPU_NAME "COLDFIRE(m532x)"
13#define CPU_INSTR_PER_JIFFY 3 13#define CPU_INSTR_PER_JIFFY 3
14 14
15#include <asm/m53xxacr.h>
16
15#define MCF_REG32(x) (*(volatile unsigned long *)(x)) 17#define MCF_REG32(x) (*(volatile unsigned long *)(x))
16#define MCF_REG16(x) (*(volatile unsigned short *)(x)) 18#define MCF_REG16(x) (*(volatile unsigned short *)(x))
17#define MCF_REG08(x) (*(volatile unsigned char *)(x)) 19#define MCF_REG08(x) (*(volatile unsigned char *)(x))
@@ -77,33 +79,6 @@
77#define MCF_IRQ_PROFILER (64 + 33) /* Timer1 */ 79#define MCF_IRQ_PROFILER (64 + 33) /* Timer1 */
78 80
79/* 81/*
80 * Define the Cache register flags.
81 */
82#define CACR_EC (1<<31)
83#define CACR_ESB (1<<29)
84#define CACR_DPI (1<<28)
85#define CACR_HLCK (1<<27)
86#define CACR_CINVA (1<<24)
87#define CACR_DNFB (1<<10)
88#define CACR_DCM_WTHRU (0<<8)
89#define CACR_DCM_WBACK (1<<8)
90#define CACR_DCM_OFF_PRE (2<<8)
91#define CACR_DCM_OFF_IMP (3<<8)
92#define CACR_DW (1<<5)
93
94#define ACR_BASE_POS 24
95#define ACR_MASK_POS 16
96#define ACR_ENABLE (1<<15)
97#define ACR_USER (0<<13)
98#define ACR_SUPER (1<<13)
99#define ACR_ANY (2<<13)
100#define ACR_CM_WTHRU (0<<5)
101#define ACR_CM_WBACK (1<<5)
102#define ACR_CM_OFF_PRE (2<<5)
103#define ACR_CM_OFF_IMP (3<<5)
104#define ACR_WPROTECT (1<<2)
105
106/*
107 * UART module. 82 * UART module.
108 */ 83 */
109#define MCFUART_BASE1 0xFC060000 /* Base address of UART1 */ 84#define MCFUART_BASE1 0xFC060000 /* Base address of UART1 */