Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

m68knommu: move ColdFire CPU names into their headers

Move the ColdFire CPU names out of setup.c and into their repsective
headers. That way when we add new ones we won't need to modify
setup.c any more.

Add the missing 548x CPU name.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>

+30 -44
+1
arch/m68k/include/asm/m5206sim.h
··· 12 12 #define m5206sim_h 13 13 /****************************************************************************/ 14 14 15 + #define CPU_NAME "COLDFIRE(m5206)" 15 16 16 17 /* 17 18 * Define the 5206 SIM register set addresses.
+2
arch/m68k/include/asm/m520xsim.h
··· 11 11 #define m520xsim_h 12 12 /****************************************************************************/ 13 13 14 + #define CPU_NAME "COLDFIRE(m520x)" 15 + 14 16 /* 15 17 * Define the 520x SIM register set addresses. 16 18 */
+1
arch/m68k/include/asm/m523xsim.h
··· 11 11 #define m523xsim_h 12 12 /****************************************************************************/ 13 13 14 + #define CPU_NAME "COLDFIRE(m523x)" 14 15 15 16 /* 16 17 * Define the 523x SIM register set addresses.
+2
arch/m68k/include/asm/m5249sim.h
··· 11 11 #define m5249sim_h 12 12 /****************************************************************************/ 13 13 14 + #define CPU_NAME "COLDFIRE(m5249)" 15 + 14 16 /* 15 17 * Define the 5249 SIM register set addresses. 16 18 */
+2
arch/m68k/include/asm/m5272sim.h
··· 12 12 #define m5272sim_h 13 13 /****************************************************************************/ 14 14 15 + #define CPU_NAME "COLDFIRE(m5272)" 16 + 15 17 /* 16 18 * Define the 5272 SIM register set addresses. 17 19 */
+2
arch/m68k/include/asm/m527xsim.h
··· 11 11 #define m527xsim_h 12 12 /****************************************************************************/ 13 13 14 + #define CPU_NAME "COLDFIRE(m527x)" 15 + 14 16 15 17 /* 16 18 * Define the 5270/5271 SIM register set addresses.
+1
arch/m68k/include/asm/m528xsim.h
··· 11 11 #define m528xsim_h 12 12 /****************************************************************************/ 13 13 14 + #define CPU_NAME "COLDFIRE(m528x)" 14 15 15 16 /* 16 17 * Define the 5280/5282 SIM register set addresses.
+2
arch/m68k/include/asm/m5307sim.h
··· 14 14 #define m5307sim_h 15 15 /****************************************************************************/ 16 16 17 + #define CPU_NAME "COLDFIRE(m5307)" 18 + 17 19 /* 18 20 * Define the 5307 SIM register set addresses. 19 21 */
+2
arch/m68k/include/asm/m532xsim.h
··· 9 9 #define m532xsim_h 10 10 /****************************************************************************/ 11 11 12 + #define CPU_NAME "COLDFIRE(m532x)" 13 + 12 14 #define MCF_REG32(x) (*(volatile unsigned long *)(x)) 13 15 #define MCF_REG16(x) (*(volatile unsigned short *)(x)) 14 16 #define MCF_REG08(x) (*(volatile unsigned char *)(x))
+2
arch/m68k/include/asm/m5407sim.h
··· 14 14 #define m5407sim_h 15 15 /****************************************************************************/ 16 16 17 + #define CPU_NAME "COLDFIRE(m5407)" 18 + 17 19 /* 18 20 * Define the 5407 SIM register set addresses. 19 21 */
+2
arch/m68k/include/asm/m54xxsim.h
··· 5 5 #ifndef m54xxsim_h 6 6 #define m54xxsim_h 7 7 8 + #define CPU_NAME "COLDFIRE(m54xx)" 9 + 8 10 #define MCFINT_VECBASE 64 9 11 10 12 /*
+11 -44
arch/m68knommu/kernel/setup.c
··· 55 55 void (*mach_power_off)(void); 56 56 57 57 #ifdef CONFIG_M68328 58 - #define CPU "MC68328" 58 + #define CPU_NAME "MC68328" 59 59 #endif 60 60 #ifdef CONFIG_M68EZ328 61 - #define CPU "MC68EZ328" 61 + #define CPU_NAME "MC68EZ328" 62 62 #endif 63 63 #ifdef CONFIG_M68VZ328 64 - #define CPU "MC68VZ328" 64 + #define CPU_NAME "MC68VZ328" 65 65 #endif 66 66 #ifdef CONFIG_M68360 67 - #define CPU "MC68360" 67 + #define CPU_NAME "MC68360" 68 68 #endif 69 - #if defined(CONFIG_M5206) 70 - #define CPU "COLDFIRE(m5206)" 71 - #endif 72 - #if defined(CONFIG_M5206e) 73 - #define CPU "COLDFIRE(m5206e)" 74 - #endif 75 - #if defined(CONFIG_M520x) 76 - #define CPU "COLDFIRE(m520x)" 77 - #endif 78 - #if defined(CONFIG_M523x) 79 - #define CPU "COLDFIRE(m523x)" 80 - #endif 81 - #if defined(CONFIG_M5249) 82 - #define CPU "COLDFIRE(m5249)" 83 - #endif 84 - #if defined(CONFIG_M5271) 85 - #define CPU "COLDFIRE(m5270/5271)" 86 - #endif 87 - #if defined(CONFIG_M5272) 88 - #define CPU "COLDFIRE(m5272)" 89 - #endif 90 - #if defined(CONFIG_M5275) 91 - #define CPU "COLDFIRE(m5274/5275)" 92 - #endif 93 - #if defined(CONFIG_M528x) 94 - #define CPU "COLDFIRE(m5280/5282)" 95 - #endif 96 - #if defined(CONFIG_M5307) 97 - #define CPU "COLDFIRE(m5307)" 98 - #endif 99 - #if defined(CONFIG_M532x) 100 - #define CPU "COLDFIRE(m532x)" 101 - #endif 102 - #if defined(CONFIG_M5407) 103 - #define CPU "COLDFIRE(m5407)" 104 - #endif 105 - #ifndef CPU 106 - #define CPU "UNKNOWN" 69 + /* 70 + * The ColdFire CPU names are defined in their headers. 71 + */ 72 + #ifndef CPU_NAME 73 + #define CPU_NAME "UNKNOWN" 107 74 #endif 108 75 109 76 extern int _stext, _etext, _sdata, _edata, _sbss, _ebss, _end; ··· 175 208 command_line[sizeof(command_line) - 1] = 0; 176 209 #endif /* CONFIG_UBOOT */ 177 210 178 - printk(KERN_INFO "\x0F\r\n\nuClinux/" CPU "\n"); 211 + printk(KERN_INFO "\x0F\r\n\nuClinux/" CPU_NAME "\n"); 179 212 180 213 #ifdef CONFIG_UCDIMM 181 214 printk(KERN_INFO "uCdimm by Lineo, Inc. <www.lineo.com>\n"); ··· 270 303 char *cpu, *mmu, *fpu; 271 304 u_long clockfreq; 272 305 273 - cpu = CPU; 306 + cpu = CPU_NAME; 274 307 mmu = "none"; 275 308 fpu = "none"; 276 309