diff options
author | Greg Ungerer <gerg@uclinux.org> | 2011-10-13 21:32:41 -0400 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2011-12-29 19:20:16 -0500 |
commit | 59dbb3b168465e48e3a72b635ee0c184fa5c55aa (patch) | |
tree | f769de499d161e52b705af07c8e1aa6ca3cc4af3 /arch/m68k | |
parent | 2c85bd318996bb915b7181cecea602272752550c (diff) |
m68k: add machine and CPU definitions for ColdFire cores
Create machine and CPU definitions to support the ColdFire CPU family
members that have a virtual memory management unit.
The ColdFire V4e core contains an MMU, and it is quite different to
any other 68k family members.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Matt Waddel <mwaddel@yahoo.com>
Acked-by: Kurt Mahan <kmahan@xmission.com>
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/include/asm/setup.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/setup.h b/arch/m68k/include/asm/setup.h index 4dfb3952b375..00c2c5397d37 100644 --- a/arch/m68k/include/asm/setup.h +++ b/arch/m68k/include/asm/setup.h | |||
@@ -40,6 +40,7 @@ | |||
40 | #define MACH_HP300 9 | 40 | #define MACH_HP300 9 |
41 | #define MACH_Q40 10 | 41 | #define MACH_Q40 10 |
42 | #define MACH_SUN3X 11 | 42 | #define MACH_SUN3X 11 |
43 | #define MACH_M54XX 12 | ||
43 | 44 | ||
44 | #define COMMAND_LINE_SIZE 256 | 45 | #define COMMAND_LINE_SIZE 256 |
45 | 46 | ||
@@ -211,23 +212,27 @@ extern unsigned long m68k_machtype; | |||
211 | #define CPUB_68030 1 | 212 | #define CPUB_68030 1 |
212 | #define CPUB_68040 2 | 213 | #define CPUB_68040 2 |
213 | #define CPUB_68060 3 | 214 | #define CPUB_68060 3 |
215 | #define CPUB_COLDFIRE 4 | ||
214 | 216 | ||
215 | #define CPU_68020 (1<<CPUB_68020) | 217 | #define CPU_68020 (1<<CPUB_68020) |
216 | #define CPU_68030 (1<<CPUB_68030) | 218 | #define CPU_68030 (1<<CPUB_68030) |
217 | #define CPU_68040 (1<<CPUB_68040) | 219 | #define CPU_68040 (1<<CPUB_68040) |
218 | #define CPU_68060 (1<<CPUB_68060) | 220 | #define CPU_68060 (1<<CPUB_68060) |
221 | #define CPU_COLDFIRE (1<<CPUB_COLDFIRE) | ||
219 | 222 | ||
220 | #define FPUB_68881 0 | 223 | #define FPUB_68881 0 |
221 | #define FPUB_68882 1 | 224 | #define FPUB_68882 1 |
222 | #define FPUB_68040 2 /* Internal FPU */ | 225 | #define FPUB_68040 2 /* Internal FPU */ |
223 | #define FPUB_68060 3 /* Internal FPU */ | 226 | #define FPUB_68060 3 /* Internal FPU */ |
224 | #define FPUB_SUNFPA 4 /* Sun-3 FPA */ | 227 | #define FPUB_SUNFPA 4 /* Sun-3 FPA */ |
228 | #define FPUB_COLDFIRE 5 /* ColdFire FPU */ | ||
225 | 229 | ||
226 | #define FPU_68881 (1<<FPUB_68881) | 230 | #define FPU_68881 (1<<FPUB_68881) |
227 | #define FPU_68882 (1<<FPUB_68882) | 231 | #define FPU_68882 (1<<FPUB_68882) |
228 | #define FPU_68040 (1<<FPUB_68040) | 232 | #define FPU_68040 (1<<FPUB_68040) |
229 | #define FPU_68060 (1<<FPUB_68060) | 233 | #define FPU_68060 (1<<FPUB_68060) |
230 | #define FPU_SUNFPA (1<<FPUB_SUNFPA) | 234 | #define FPU_SUNFPA (1<<FPUB_SUNFPA) |
235 | #define FPU_COLDFIRE (1<<FPUB_COLDFIRE) | ||
231 | 236 | ||
232 | #define MMUB_68851 0 | 237 | #define MMUB_68851 0 |
233 | #define MMUB_68030 1 /* Internal MMU */ | 238 | #define MMUB_68030 1 /* Internal MMU */ |
@@ -235,6 +240,7 @@ extern unsigned long m68k_machtype; | |||
235 | #define MMUB_68060 3 /* Internal MMU */ | 240 | #define MMUB_68060 3 /* Internal MMU */ |
236 | #define MMUB_APOLLO 4 /* Custom Apollo */ | 241 | #define MMUB_APOLLO 4 /* Custom Apollo */ |
237 | #define MMUB_SUN3 5 /* Custom Sun-3 */ | 242 | #define MMUB_SUN3 5 /* Custom Sun-3 */ |
243 | #define MMUB_COLDFIRE 6 /* Internal MMU */ | ||
238 | 244 | ||
239 | #define MMU_68851 (1<<MMUB_68851) | 245 | #define MMU_68851 (1<<MMUB_68851) |
240 | #define MMU_68030 (1<<MMUB_68030) | 246 | #define MMU_68030 (1<<MMUB_68030) |
@@ -242,6 +248,7 @@ extern unsigned long m68k_machtype; | |||
242 | #define MMU_68060 (1<<MMUB_68060) | 248 | #define MMU_68060 (1<<MMUB_68060) |
243 | #define MMU_SUN3 (1<<MMUB_SUN3) | 249 | #define MMU_SUN3 (1<<MMUB_SUN3) |
244 | #define MMU_APOLLO (1<<MMUB_APOLLO) | 250 | #define MMU_APOLLO (1<<MMUB_APOLLO) |
251 | #define MMU_COLDFIRE (1<<MMUB_COLDFIRE) | ||
245 | 252 | ||
246 | #ifdef __KERNEL__ | 253 | #ifdef __KERNEL__ |
247 | 254 | ||
@@ -341,6 +348,13 @@ extern int m68k_is040or060; | |||
341 | # endif | 348 | # endif |
342 | #endif | 349 | #endif |
343 | 350 | ||
351 | #if !defined(CONFIG_COLDFIRE) | ||
352 | # define CPU_IS_COLDFIRE (0) | ||
353 | #else | ||
354 | # define CPU_IS_COLDFIRE (1) | ||
355 | # define MMU_IS_COLDFIRE (1) | ||
356 | #endif | ||
357 | |||
344 | #define CPU_TYPE (m68k_cputype) | 358 | #define CPU_TYPE (m68k_cputype) |
345 | 359 | ||
346 | #ifdef CONFIG_M68KFPU_EMU | 360 | #ifdef CONFIG_M68KFPU_EMU |