aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@linux-m68k.org>2016-08-25 09:10:59 -0400
committerGreg Ungerer <gerg@linux-m68k.org>2016-09-25 22:02:58 -0400
commit81d33350bab8b6889ac0f9c98bce58128be1c72d (patch)
treeda949bd8c7b3ff49dfa53c895e82e4d333c5218b
parente5f8d1f0a13dc8129bf8a0a3d715feabb0ce8c5e (diff)
m68k: set appropriate machine type for m5411x SoC platforms
Create a new machine type for platforms based around the ColdFire 5441x SoC family. Set that machine type on startup when building for this platform type. Currently the ColdFire head.S hard codes a M54xx machine type at startup - since that is the only platform type currently supported with MMU enabled. The m5441x has an MMU and this change forms part of the support required to run it with the MMU enabled. Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
-rw-r--r--arch/m68k/coldfire/head.S4
-rw-r--r--arch/m68k/include/asm/m5441xsim.h1
-rw-r--r--arch/m68k/include/asm/m54xxsim.h1
-rw-r--r--arch/m68k/include/uapi/asm/bootinfo.h1
-rw-r--r--arch/m68k/kernel/setup_mm.c1
5 files changed, 6 insertions, 2 deletions
diff --git a/arch/m68k/coldfire/head.S b/arch/m68k/coldfire/head.S
index 73d92ea0ce65..4ba5d5628067 100644
--- a/arch/m68k/coldfire/head.S
+++ b/arch/m68k/coldfire/head.S
@@ -282,8 +282,8 @@ _clear_bss:
282 movel %d0,m68k_mmutype 282 movel %d0,m68k_mmutype
283 movel #FPU_COLDFIRE,%d0 283 movel #FPU_COLDFIRE,%d0
284 movel %d0,m68k_fputype 284 movel %d0,m68k_fputype
285 movel #MACH_M54XX,%d0 285 movel #MACHINE,%d0
286 movel %d0,m68k_machtype /* Mark us as a 54xx machine */ 286 movel %d0,m68k_machtype /* Mark machine type */
287 lea init_task,%a2 /* Set "current" init task */ 287 lea init_task,%a2 /* Set "current" init task */
288#endif 288#endif
289 289
diff --git a/arch/m68k/include/asm/m5441xsim.h b/arch/m68k/include/asm/m5441xsim.h
index cc798ab9524b..60768b5973db 100644
--- a/arch/m68k/include/asm/m5441xsim.h
+++ b/arch/m68k/include/asm/m5441xsim.h
@@ -10,6 +10,7 @@
10#define CPU_NAME "COLDFIRE(m5441x)" 10#define CPU_NAME "COLDFIRE(m5441x)"
11#define CPU_INSTR_PER_JIFFY 2 11#define CPU_INSTR_PER_JIFFY 2
12#define MCF_BUSCLK (MCF_CLK / 2) 12#define MCF_BUSCLK (MCF_CLK / 2)
13#define MACHINE MACH_M5441X
13 14
14#include <asm/m54xxacr.h> 15#include <asm/m54xxacr.h>
15 16
diff --git a/arch/m68k/include/asm/m54xxsim.h b/arch/m68k/include/asm/m54xxsim.h
index a5fbd17ab0a5..cde03902da24 100644
--- a/arch/m68k/include/asm/m54xxsim.h
+++ b/arch/m68k/include/asm/m54xxsim.h
@@ -8,6 +8,7 @@
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#define MCF_BUSCLK (MCF_CLK / 2) 10#define MCF_BUSCLK (MCF_CLK / 2)
11#define MACHINE MACH_M54XX
11 12
12#include <asm/m54xxacr.h> 13#include <asm/m54xxacr.h>
13 14
diff --git a/arch/m68k/include/uapi/asm/bootinfo.h b/arch/m68k/include/uapi/asm/bootinfo.h
index cdeb26a015b0..a48cf544c762 100644
--- a/arch/m68k/include/uapi/asm/bootinfo.h
+++ b/arch/m68k/include/uapi/asm/bootinfo.h
@@ -81,6 +81,7 @@ struct mem_info {
81#define MACH_Q40 10 81#define MACH_Q40 10
82#define MACH_SUN3X 11 82#define MACH_SUN3X 11
83#define MACH_M54XX 12 83#define MACH_M54XX 12
84#define MACH_M5441X 13
84 85
85 86
86 /* 87 /*
diff --git a/arch/m68k/kernel/setup_mm.c b/arch/m68k/kernel/setup_mm.c
index 5b8ec4d5f8e8..13f4640bb84f 100644
--- a/arch/m68k/kernel/setup_mm.c
+++ b/arch/m68k/kernel/setup_mm.c
@@ -341,6 +341,7 @@ void __init setup_arch(char **cmdline_p)
341#endif 341#endif
342#ifdef CONFIG_COLDFIRE 342#ifdef CONFIG_COLDFIRE
343 case MACH_M54XX: 343 case MACH_M54XX:
344 case MACH_M5441X:
344 config_BSP(NULL, 0); 345 config_BSP(NULL, 0);
345 break; 346 break;
346#endif 347#endif