diff options
author | Greg Ungerer <gerg@uclinux.org> | 2010-11-02 03:13:27 -0400 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2011-01-05 00:19:17 -0500 |
commit | 7fc82b655a169039d8a58fde609b5e778573d5ab (patch) | |
tree | 2058767159344ab4e2653cf28ef0a76eba1575e4 /arch/m68knommu/kernel | |
parent | 9e29949cfcf0ed737f5b9778fd232f1e6b825e3e (diff) |
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>
Diffstat (limited to 'arch/m68knommu/kernel')
-rw-r--r-- | arch/m68knommu/kernel/setup.c | 55 |
1 files changed, 11 insertions, 44 deletions
diff --git a/arch/m68knommu/kernel/setup.c b/arch/m68knommu/kernel/setup.c index c684adf5dc40..f48d9df484d3 100644 --- a/arch/m68knommu/kernel/setup.c +++ b/arch/m68knommu/kernel/setup.c | |||
@@ -55,55 +55,22 @@ void (*mach_halt)(void); | |||
55 | void (*mach_power_off)(void); | 55 | void (*mach_power_off)(void); |
56 | 56 | ||
57 | #ifdef CONFIG_M68328 | 57 | #ifdef CONFIG_M68328 |
58 | #define CPU "MC68328" | 58 | #define CPU_NAME "MC68328" |
59 | #endif | 59 | #endif |
60 | #ifdef CONFIG_M68EZ328 | 60 | #ifdef CONFIG_M68EZ328 |
61 | #define CPU "MC68EZ328" | 61 | #define CPU_NAME "MC68EZ328" |
62 | #endif | 62 | #endif |
63 | #ifdef CONFIG_M68VZ328 | 63 | #ifdef CONFIG_M68VZ328 |
64 | #define CPU "MC68VZ328" | 64 | #define CPU_NAME "MC68VZ328" |
65 | #endif | 65 | #endif |
66 | #ifdef CONFIG_M68360 | 66 | #ifdef CONFIG_M68360 |
67 | #define CPU "MC68360" | 67 | #define CPU_NAME "MC68360" |
68 | #endif | 68 | #endif |
69 | #if defined(CONFIG_M5206) | 69 | /* |
70 | #define CPU "COLDFIRE(m5206)" | 70 | * The ColdFire CPU names are defined in their headers. |
71 | #endif | 71 | */ |
72 | #if defined(CONFIG_M5206e) | 72 | #ifndef CPU_NAME |
73 | #define CPU "COLDFIRE(m5206e)" | 73 | #define CPU_NAME "UNKNOWN" |
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" | ||
107 | #endif | 74 | #endif |
108 | 75 | ||
109 | extern int _stext, _etext, _sdata, _edata, _sbss, _ebss, _end; | 76 | extern int _stext, _etext, _sdata, _edata, _sbss, _ebss, _end; |
@@ -208,7 +175,7 @@ void __init setup_arch(char **cmdline_p) | |||
208 | command_line[sizeof(command_line) - 1] = 0; | 175 | command_line[sizeof(command_line) - 1] = 0; |
209 | #endif /* CONFIG_UBOOT */ | 176 | #endif /* CONFIG_UBOOT */ |
210 | 177 | ||
211 | printk(KERN_INFO "\x0F\r\n\nuClinux/" CPU "\n"); | 178 | printk(KERN_INFO "\x0F\r\n\nuClinux/" CPU_NAME "\n"); |
212 | 179 | ||
213 | #ifdef CONFIG_UCDIMM | 180 | #ifdef CONFIG_UCDIMM |
214 | printk(KERN_INFO "uCdimm by Lineo, Inc. <www.lineo.com>\n"); | 181 | printk(KERN_INFO "uCdimm by Lineo, Inc. <www.lineo.com>\n"); |
@@ -303,7 +270,7 @@ static int show_cpuinfo(struct seq_file *m, void *v) | |||
303 | char *cpu, *mmu, *fpu; | 270 | char *cpu, *mmu, *fpu; |
304 | u_long clockfreq; | 271 | u_long clockfreq; |
305 | 272 | ||
306 | cpu = CPU; | 273 | cpu = CPU_NAME; |
307 | mmu = "none"; | 274 | mmu = "none"; |
308 | fpu = "none"; | 275 | fpu = "none"; |
309 | 276 | ||