diff options
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/setup.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/arch/sparc/kernel/setup.c b/arch/sparc/kernel/setup.c index 8d5fbce1635b..f8391c0d7e9b 100644 --- a/arch/sparc/kernel/setup.c +++ b/arch/sparc/kernel/setup.c | |||
@@ -216,13 +216,20 @@ void __init setup_arch(char **cmdline_p) | |||
216 | 216 | ||
217 | /* Set sparc_cpu_model */ | 217 | /* Set sparc_cpu_model */ |
218 | sparc_cpu_model = sun_unknown; | 218 | sparc_cpu_model = sun_unknown; |
219 | if(!strcmp(&cputypval,"sun4 ")) { sparc_cpu_model=sun4; } | 219 | if (!strcmp(&cputypval,"sun4 ")) |
220 | if(!strcmp(&cputypval,"sun4c")) { sparc_cpu_model=sun4c; } | 220 | sparc_cpu_model = sun4; |
221 | if(!strcmp(&cputypval,"sun4m")) { sparc_cpu_model=sun4m; } | 221 | if (!strcmp(&cputypval,"sun4c")) |
222 | if(!strcmp(&cputypval,"sun4s")) { sparc_cpu_model=sun4m; } /* CP-1200 with PROM 2.30 -E */ | 222 | sparc_cpu_model = sun4c; |
223 | if(!strcmp(&cputypval,"sun4d")) { sparc_cpu_model=sun4d; } | 223 | if (!strcmp(&cputypval,"sun4m")) |
224 | if(!strcmp(&cputypval,"sun4e")) { sparc_cpu_model=sun4e; } | 224 | sparc_cpu_model = sun4m; |
225 | if(!strcmp(&cputypval,"sun4u")) { sparc_cpu_model=sun4u; } | 225 | if (!strcmp(&cputypval,"sun4s")) |
226 | sparc_cpu_model = sun4m; /* CP-1200 with PROM 2.30 -E */ | ||
227 | if (!strcmp(&cputypval,"sun4d")) | ||
228 | sparc_cpu_model = sun4d; | ||
229 | if (!strcmp(&cputypval,"sun4e")) | ||
230 | sparc_cpu_model = sun4e; | ||
231 | if (!strcmp(&cputypval,"sun4u")) | ||
232 | sparc_cpu_model = sun4u; | ||
226 | 233 | ||
227 | printk("ARCH: "); | 234 | printk("ARCH: "); |
228 | switch(sparc_cpu_model) { | 235 | switch(sparc_cpu_model) { |