m68k: set appropriate machine type for m5411x SoC platforms
authorGreg Ungerer <gerg@linux-m68k.org>
Thu, 25 Aug 2016 13:10:59 +0000 (23:10 +1000)
committerGreg Ungerer <gerg@linux-m68k.org>
Mon, 26 Sep 2016 02:02:58 +0000 (12:02 +1000)
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>
arch/m68k/coldfire/head.S
arch/m68k/include/asm/m5441xsim.h
arch/m68k/include/asm/m54xxsim.h
arch/m68k/include/uapi/asm/bootinfo.h
arch/m68k/kernel/setup_mm.c

index 73d92ea0ce65b5caca8e79f208995c034872b004..4ba5d56280674a6f7ecef92c219196888c2e1a1f 100644 (file)
@@ -282,8 +282,8 @@ _clear_bss:
        movel   %d0,m68k_mmutype
        movel   #FPU_COLDFIRE,%d0
        movel   %d0,m68k_fputype
-       movel   #MACH_M54XX,%d0
-       movel   %d0,m68k_machtype               /* Mark us as a 54xx machine */
+       movel   #MACHINE,%d0
+       movel   %d0,m68k_machtype               /* Mark machine type */
        lea     init_task,%a2                   /* Set "current" init task */
 #endif
 
index cc798ab9524bebf4e701ba77e5eb2fac09c0463f..60768b5973dbe46e76a5d49111072ab2c7ef3f49 100644 (file)
@@ -10,6 +10,7 @@
 #define CPU_NAME               "COLDFIRE(m5441x)"
 #define CPU_INSTR_PER_JIFFY    2
 #define MCF_BUSCLK             (MCF_CLK / 2)
+#define MACHINE                        MACH_M5441X
 
 #include <asm/m54xxacr.h>
 
index a5fbd17ab0a5f7944559d7150ecf04c9112aafae..cde03902da24e5daf0ec248b86e6ea8e317d232f 100644 (file)
@@ -8,6 +8,7 @@
 #define        CPU_NAME                "COLDFIRE(m54xx)"
 #define        CPU_INSTR_PER_JIFFY     2
 #define        MCF_BUSCLK              (MCF_CLK / 2)
+#define        MACHINE                 MACH_M54XX
 
 #include <asm/m54xxacr.h>
 
index cdeb26a015b09ca110263d5d4983dc348953d872..a48cf544c7628dda39721a669335a668d47b84ec 100644 (file)
@@ -81,6 +81,7 @@ struct mem_info {
 #define MACH_Q40               10
 #define MACH_SUN3X             11
 #define MACH_M54XX             12
+#define MACH_M5441X            13
 
 
     /*
index 5b8ec4d5f8e8d79d1becaa48d489d0117374daa8..13f4640bb84fb437609e732e288bcc6daae20351 100644 (file)
@@ -341,6 +341,7 @@ void __init setup_arch(char **cmdline_p)
 #endif
 #ifdef CONFIG_COLDFIRE
        case MACH_M54XX:
+       case MACH_M5441X:
                config_BSP(NULL, 0);
                break;
 #endif