2 * Copyright (C) 2001 Ben. Herrenschmidt (benh@kernel.crashing.org)
4 * Modifications for ppc64:
5 * Copyright (C) 2003 Dave Engebretsen <engebret@us.ibm.com>
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version
10 * 2 of the License, or (at your option) any later version.
13 #include <linux/string.h>
14 #include <linux/sched.h>
15 #include <linux/threads.h>
16 #include <linux/init.h>
17 #include <linux/export.h>
19 #include <asm/oprofile_impl.h>
20 #include <asm/cputable.h>
21 #include <asm/prom.h> /* for PTRRELOC on ARCH=ppc */
23 #include <asm/setup.h>
25 struct cpu_spec* cur_cpu_spec = NULL;
26 EXPORT_SYMBOL(cur_cpu_spec);
28 /* The platform string corresponding to the real PVR */
29 const char *powerpc_base_platform;
32 * Unlike ppc32, ppc64 will only call this once for the boot CPU, it's
33 * the responsibility of the appropriate CPU save/restore functions to
34 * eventually copy these settings over. Those save/restore aren't yet
35 * part of the cputable though. That has to be fixed for both ppc32
39 extern void __setup_cpu_e200(unsigned long offset, struct cpu_spec* spec);
40 extern void __setup_cpu_e500v1(unsigned long offset, struct cpu_spec* spec);
41 extern void __setup_cpu_e500v2(unsigned long offset, struct cpu_spec* spec);
42 extern void __setup_cpu_e500mc(unsigned long offset, struct cpu_spec* spec);
43 extern void __setup_cpu_440ep(unsigned long offset, struct cpu_spec* spec);
44 extern void __setup_cpu_440epx(unsigned long offset, struct cpu_spec* spec);
45 extern void __setup_cpu_440gx(unsigned long offset, struct cpu_spec* spec);
46 extern void __setup_cpu_440grx(unsigned long offset, struct cpu_spec* spec);
47 extern void __setup_cpu_440spe(unsigned long offset, struct cpu_spec* spec);
48 extern void __setup_cpu_440x5(unsigned long offset, struct cpu_spec* spec);
49 extern void __setup_cpu_460ex(unsigned long offset, struct cpu_spec* spec);
50 extern void __setup_cpu_460gt(unsigned long offset, struct cpu_spec* spec);
51 extern void __setup_cpu_460sx(unsigned long offset, struct cpu_spec *spec);
52 extern void __setup_cpu_apm821xx(unsigned long offset, struct cpu_spec *spec);
53 extern void __setup_cpu_603(unsigned long offset, struct cpu_spec* spec);
54 extern void __setup_cpu_604(unsigned long offset, struct cpu_spec* spec);
55 extern void __setup_cpu_750(unsigned long offset, struct cpu_spec* spec);
56 extern void __setup_cpu_750cx(unsigned long offset, struct cpu_spec* spec);
57 extern void __setup_cpu_750fx(unsigned long offset, struct cpu_spec* spec);
58 extern void __setup_cpu_7400(unsigned long offset, struct cpu_spec* spec);
59 extern void __setup_cpu_7410(unsigned long offset, struct cpu_spec* spec);
60 extern void __setup_cpu_745x(unsigned long offset, struct cpu_spec* spec);
61 #endif /* CONFIG_PPC32 */
63 extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec);
64 extern void __setup_cpu_ppc970MP(unsigned long offset, struct cpu_spec* spec);
65 extern void __setup_cpu_pa6t(unsigned long offset, struct cpu_spec* spec);
66 extern void __setup_cpu_a2(unsigned long offset, struct cpu_spec* spec);
67 extern void __restore_cpu_pa6t(void);
68 extern void __restore_cpu_ppc970(void);
69 extern void __setup_cpu_power7(unsigned long offset, struct cpu_spec* spec);
70 extern void __restore_cpu_power7(void);
71 extern void __setup_cpu_power8(unsigned long offset, struct cpu_spec* spec);
72 extern void __restore_cpu_power8(void);
73 extern void __restore_cpu_a2(void);
74 #endif /* CONFIG_PPC64 */
75 #if defined(CONFIG_E500)
76 extern void __setup_cpu_e5500(unsigned long offset, struct cpu_spec* spec);
77 extern void __setup_cpu_e6500(unsigned long offset, struct cpu_spec* spec);
78 extern void __restore_cpu_e5500(void);
79 extern void __restore_cpu_e6500(void);
80 #endif /* CONFIG_E500 */
82 /* This table only contains "desktop" CPUs, it need to be filled with embedded
85 #define COMMON_USER (PPC_FEATURE_32 | PPC_FEATURE_HAS_FPU | \
87 #define COMMON_USER_PPC64 (COMMON_USER | PPC_FEATURE_64)
88 #define COMMON_USER_POWER4 (COMMON_USER_PPC64 | PPC_FEATURE_POWER4)
89 #define COMMON_USER_POWER5 (COMMON_USER_PPC64 | PPC_FEATURE_POWER5 |\
90 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
91 #define COMMON_USER_POWER5_PLUS (COMMON_USER_PPC64 | PPC_FEATURE_POWER5_PLUS|\
92 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
93 #define COMMON_USER_POWER6 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_05 |\
94 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \
95 PPC_FEATURE_TRUE_LE | \
96 PPC_FEATURE_PSERIES_PERFMON_COMPAT)
97 #define COMMON_USER_POWER7 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_06 |\
98 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \
99 PPC_FEATURE_TRUE_LE | \
100 PPC_FEATURE_PSERIES_PERFMON_COMPAT)
101 #define COMMON_USER2_POWER7 (PPC_FEATURE2_DSCR)
102 #define COMMON_USER_POWER8 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_06 |\
103 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \
104 PPC_FEATURE_TRUE_LE | \
105 PPC_FEATURE_PSERIES_PERFMON_COMPAT)
106 #define COMMON_USER_PA6T (COMMON_USER_PPC64 | PPC_FEATURE_PA6T |\
107 PPC_FEATURE_TRUE_LE | \
108 PPC_FEATURE_HAS_ALTIVEC_COMP)
109 #ifdef CONFIG_PPC_BOOK3E_64
110 #define COMMON_USER_BOOKE (COMMON_USER_PPC64 | PPC_FEATURE_BOOKE)
112 #define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \
116 static struct cpu_spec __initdata cpu_specs[] = {
117 #ifdef CONFIG_PPC_BOOK3S_64
119 .pvr_mask = 0xffff0000,
120 .pvr_value = 0x00400000,
121 .cpu_name = "POWER3 (630)",
122 .cpu_features = CPU_FTRS_POWER3,
123 .cpu_user_features = COMMON_USER_PPC64|PPC_FEATURE_PPC_LE,
124 .mmu_features = MMU_FTR_HPTE_TABLE,
128 .pmc_type = PPC_PMC_IBM,
129 .oprofile_cpu_type = "ppc64/power3",
130 .oprofile_type = PPC_OPROFILE_RS64,
131 .platform = "power3",
134 .pvr_mask = 0xffff0000,
135 .pvr_value = 0x00410000,
136 .cpu_name = "POWER3 (630+)",
137 .cpu_features = CPU_FTRS_POWER3,
138 .cpu_user_features = COMMON_USER_PPC64|PPC_FEATURE_PPC_LE,
139 .mmu_features = MMU_FTR_HPTE_TABLE,
143 .pmc_type = PPC_PMC_IBM,
144 .oprofile_cpu_type = "ppc64/power3",
145 .oprofile_type = PPC_OPROFILE_RS64,
146 .platform = "power3",
149 .pvr_mask = 0xffff0000,
150 .pvr_value = 0x00330000,
151 .cpu_name = "RS64-II (northstar)",
152 .cpu_features = CPU_FTRS_RS64,
153 .cpu_user_features = COMMON_USER_PPC64,
154 .mmu_features = MMU_FTR_HPTE_TABLE,
158 .pmc_type = PPC_PMC_IBM,
159 .oprofile_cpu_type = "ppc64/rs64",
160 .oprofile_type = PPC_OPROFILE_RS64,
164 .pvr_mask = 0xffff0000,
165 .pvr_value = 0x00340000,
166 .cpu_name = "RS64-III (pulsar)",
167 .cpu_features = CPU_FTRS_RS64,
168 .cpu_user_features = COMMON_USER_PPC64,
169 .mmu_features = MMU_FTR_HPTE_TABLE,
173 .pmc_type = PPC_PMC_IBM,
174 .oprofile_cpu_type = "ppc64/rs64",
175 .oprofile_type = PPC_OPROFILE_RS64,
179 .pvr_mask = 0xffff0000,
180 .pvr_value = 0x00360000,
181 .cpu_name = "RS64-III (icestar)",
182 .cpu_features = CPU_FTRS_RS64,
183 .cpu_user_features = COMMON_USER_PPC64,
184 .mmu_features = MMU_FTR_HPTE_TABLE,
188 .pmc_type = PPC_PMC_IBM,
189 .oprofile_cpu_type = "ppc64/rs64",
190 .oprofile_type = PPC_OPROFILE_RS64,
194 .pvr_mask = 0xffff0000,
195 .pvr_value = 0x00370000,
196 .cpu_name = "RS64-IV (sstar)",
197 .cpu_features = CPU_FTRS_RS64,
198 .cpu_user_features = COMMON_USER_PPC64,
199 .mmu_features = MMU_FTR_HPTE_TABLE,
203 .pmc_type = PPC_PMC_IBM,
204 .oprofile_cpu_type = "ppc64/rs64",
205 .oprofile_type = PPC_OPROFILE_RS64,
209 .pvr_mask = 0xffff0000,
210 .pvr_value = 0x00350000,
211 .cpu_name = "POWER4 (gp)",
212 .cpu_features = CPU_FTRS_POWER4,
213 .cpu_user_features = COMMON_USER_POWER4,
214 .mmu_features = MMU_FTRS_POWER4,
218 .pmc_type = PPC_PMC_IBM,
219 .oprofile_cpu_type = "ppc64/power4",
220 .oprofile_type = PPC_OPROFILE_POWER4,
221 .platform = "power4",
224 .pvr_mask = 0xffff0000,
225 .pvr_value = 0x00380000,
226 .cpu_name = "POWER4+ (gq)",
227 .cpu_features = CPU_FTRS_POWER4,
228 .cpu_user_features = COMMON_USER_POWER4,
229 .mmu_features = MMU_FTRS_POWER4,
233 .pmc_type = PPC_PMC_IBM,
234 .oprofile_cpu_type = "ppc64/power4",
235 .oprofile_type = PPC_OPROFILE_POWER4,
236 .platform = "power4",
239 .pvr_mask = 0xffff0000,
240 .pvr_value = 0x00390000,
241 .cpu_name = "PPC970",
242 .cpu_features = CPU_FTRS_PPC970,
243 .cpu_user_features = COMMON_USER_POWER4 |
244 PPC_FEATURE_HAS_ALTIVEC_COMP,
245 .mmu_features = MMU_FTRS_PPC970,
249 .pmc_type = PPC_PMC_IBM,
250 .cpu_setup = __setup_cpu_ppc970,
251 .cpu_restore = __restore_cpu_ppc970,
252 .oprofile_cpu_type = "ppc64/970",
253 .oprofile_type = PPC_OPROFILE_POWER4,
254 .platform = "ppc970",
257 .pvr_mask = 0xffff0000,
258 .pvr_value = 0x003c0000,
259 .cpu_name = "PPC970FX",
260 .cpu_features = CPU_FTRS_PPC970,
261 .cpu_user_features = COMMON_USER_POWER4 |
262 PPC_FEATURE_HAS_ALTIVEC_COMP,
263 .mmu_features = MMU_FTRS_PPC970,
267 .pmc_type = PPC_PMC_IBM,
268 .cpu_setup = __setup_cpu_ppc970,
269 .cpu_restore = __restore_cpu_ppc970,
270 .oprofile_cpu_type = "ppc64/970",
271 .oprofile_type = PPC_OPROFILE_POWER4,
272 .platform = "ppc970",
274 { /* PPC970MP DD1.0 - no DEEPNAP, use regular 970 init */
275 .pvr_mask = 0xffffffff,
276 .pvr_value = 0x00440100,
277 .cpu_name = "PPC970MP",
278 .cpu_features = CPU_FTRS_PPC970,
279 .cpu_user_features = COMMON_USER_POWER4 |
280 PPC_FEATURE_HAS_ALTIVEC_COMP,
281 .mmu_features = MMU_FTRS_PPC970,
285 .pmc_type = PPC_PMC_IBM,
286 .cpu_setup = __setup_cpu_ppc970,
287 .cpu_restore = __restore_cpu_ppc970,
288 .oprofile_cpu_type = "ppc64/970MP",
289 .oprofile_type = PPC_OPROFILE_POWER4,
290 .platform = "ppc970",
293 .pvr_mask = 0xffff0000,
294 .pvr_value = 0x00440000,
295 .cpu_name = "PPC970MP",
296 .cpu_features = CPU_FTRS_PPC970,
297 .cpu_user_features = COMMON_USER_POWER4 |
298 PPC_FEATURE_HAS_ALTIVEC_COMP,
299 .mmu_features = MMU_FTRS_PPC970,
303 .pmc_type = PPC_PMC_IBM,
304 .cpu_setup = __setup_cpu_ppc970MP,
305 .cpu_restore = __restore_cpu_ppc970,
306 .oprofile_cpu_type = "ppc64/970MP",
307 .oprofile_type = PPC_OPROFILE_POWER4,
308 .platform = "ppc970",
311 .pvr_mask = 0xffff0000,
312 .pvr_value = 0x00450000,
313 .cpu_name = "PPC970GX",
314 .cpu_features = CPU_FTRS_PPC970,
315 .cpu_user_features = COMMON_USER_POWER4 |
316 PPC_FEATURE_HAS_ALTIVEC_COMP,
317 .mmu_features = MMU_FTRS_PPC970,
321 .pmc_type = PPC_PMC_IBM,
322 .cpu_setup = __setup_cpu_ppc970,
323 .oprofile_cpu_type = "ppc64/970",
324 .oprofile_type = PPC_OPROFILE_POWER4,
325 .platform = "ppc970",
328 .pvr_mask = 0xffff0000,
329 .pvr_value = 0x003a0000,
330 .cpu_name = "POWER5 (gr)",
331 .cpu_features = CPU_FTRS_POWER5,
332 .cpu_user_features = COMMON_USER_POWER5,
333 .mmu_features = MMU_FTRS_POWER5,
337 .pmc_type = PPC_PMC_IBM,
338 .oprofile_cpu_type = "ppc64/power5",
339 .oprofile_type = PPC_OPROFILE_POWER4,
340 /* SIHV / SIPR bits are implemented on POWER4+ (GQ)
341 * and above but only works on POWER5 and above
343 .oprofile_mmcra_sihv = MMCRA_SIHV,
344 .oprofile_mmcra_sipr = MMCRA_SIPR,
345 .platform = "power5",
348 .pvr_mask = 0xffffff00,
349 .pvr_value = 0x003b0300,
350 .cpu_name = "POWER5+ (gs)",
351 .cpu_features = CPU_FTRS_POWER5,
352 .cpu_user_features = COMMON_USER_POWER5_PLUS,
353 .mmu_features = MMU_FTRS_POWER5,
357 .oprofile_cpu_type = "ppc64/power5++",
358 .oprofile_type = PPC_OPROFILE_POWER4,
359 .oprofile_mmcra_sihv = MMCRA_SIHV,
360 .oprofile_mmcra_sipr = MMCRA_SIPR,
361 .platform = "power5+",
364 .pvr_mask = 0xffff0000,
365 .pvr_value = 0x003b0000,
366 .cpu_name = "POWER5+ (gs)",
367 .cpu_features = CPU_FTRS_POWER5,
368 .cpu_user_features = COMMON_USER_POWER5_PLUS,
369 .mmu_features = MMU_FTRS_POWER5,
373 .pmc_type = PPC_PMC_IBM,
374 .oprofile_cpu_type = "ppc64/power5+",
375 .oprofile_type = PPC_OPROFILE_POWER4,
376 .oprofile_mmcra_sihv = MMCRA_SIHV,
377 .oprofile_mmcra_sipr = MMCRA_SIPR,
378 .platform = "power5+",
380 { /* POWER6 in P5+ mode; 2.04-compliant processor */
381 .pvr_mask = 0xffffffff,
382 .pvr_value = 0x0f000001,
383 .cpu_name = "POWER5+",
384 .cpu_features = CPU_FTRS_POWER5,
385 .cpu_user_features = COMMON_USER_POWER5_PLUS,
386 .mmu_features = MMU_FTRS_POWER5,
389 .oprofile_cpu_type = "ppc64/ibm-compat-v1",
390 .oprofile_type = PPC_OPROFILE_POWER4,
391 .platform = "power5+",
394 .pvr_mask = 0xffff0000,
395 .pvr_value = 0x003e0000,
396 .cpu_name = "POWER6 (raw)",
397 .cpu_features = CPU_FTRS_POWER6,
398 .cpu_user_features = COMMON_USER_POWER6 |
399 PPC_FEATURE_POWER6_EXT,
400 .mmu_features = MMU_FTRS_POWER6,
404 .pmc_type = PPC_PMC_IBM,
405 .oprofile_cpu_type = "ppc64/power6",
406 .oprofile_type = PPC_OPROFILE_POWER4,
407 .oprofile_mmcra_sihv = POWER6_MMCRA_SIHV,
408 .oprofile_mmcra_sipr = POWER6_MMCRA_SIPR,
409 .oprofile_mmcra_clear = POWER6_MMCRA_THRM |
411 .platform = "power6x",
413 { /* 2.05-compliant processor, i.e. Power6 "architected" mode */
414 .pvr_mask = 0xffffffff,
415 .pvr_value = 0x0f000002,
416 .cpu_name = "POWER6 (architected)",
417 .cpu_features = CPU_FTRS_POWER6,
418 .cpu_user_features = COMMON_USER_POWER6,
419 .mmu_features = MMU_FTRS_POWER6,
422 .oprofile_cpu_type = "ppc64/ibm-compat-v1",
423 .oprofile_type = PPC_OPROFILE_POWER4,
424 .platform = "power6",
426 { /* 2.06-compliant processor, i.e. Power7 "architected" mode */
427 .pvr_mask = 0xffffffff,
428 .pvr_value = 0x0f000003,
429 .cpu_name = "POWER7 (architected)",
430 .cpu_features = CPU_FTRS_POWER7,
431 .cpu_user_features = COMMON_USER_POWER7,
432 .cpu_user_features2 = COMMON_USER2_POWER7,
433 .mmu_features = MMU_FTRS_POWER7,
436 .oprofile_type = PPC_OPROFILE_POWER4,
437 .oprofile_cpu_type = "ppc64/ibm-compat-v1",
438 .cpu_setup = __setup_cpu_power7,
439 .cpu_restore = __restore_cpu_power7,
440 .platform = "power7",
442 { /* 2.07-compliant processor, i.e. Power8 "architected" mode */
443 .pvr_mask = 0xffffffff,
444 .pvr_value = 0x0f000004,
445 .cpu_name = "POWER8 (architected)",
446 .cpu_features = CPU_FTRS_POWER8,
447 .cpu_user_features = COMMON_USER_POWER8,
448 .mmu_features = MMU_FTRS_POWER8,
451 .oprofile_type = PPC_OPROFILE_POWER4,
452 .oprofile_cpu_type = "ppc64/ibm-compat-v1",
453 .cpu_setup = __setup_cpu_power8,
454 .cpu_restore = __restore_cpu_power8,
455 .platform = "power8",
458 .pvr_mask = 0xffff0000,
459 .pvr_value = 0x003f0000,
460 .cpu_name = "POWER7 (raw)",
461 .cpu_features = CPU_FTRS_POWER7,
462 .cpu_user_features = COMMON_USER_POWER7,
463 .cpu_user_features2 = COMMON_USER2_POWER7,
464 .mmu_features = MMU_FTRS_POWER7,
468 .pmc_type = PPC_PMC_IBM,
469 .oprofile_cpu_type = "ppc64/power7",
470 .oprofile_type = PPC_OPROFILE_POWER4,
471 .cpu_setup = __setup_cpu_power7,
472 .cpu_restore = __restore_cpu_power7,
473 .platform = "power7",
476 .pvr_mask = 0xffff0000,
477 .pvr_value = 0x004A0000,
478 .cpu_name = "POWER7+ (raw)",
479 .cpu_features = CPU_FTRS_POWER7,
480 .cpu_user_features = COMMON_USER_POWER7,
481 .cpu_user_features = COMMON_USER2_POWER7,
482 .mmu_features = MMU_FTRS_POWER7,
486 .pmc_type = PPC_PMC_IBM,
487 .oprofile_cpu_type = "ppc64/power7",
488 .oprofile_type = PPC_OPROFILE_POWER4,
489 .cpu_setup = __setup_cpu_power7,
490 .cpu_restore = __restore_cpu_power7,
491 .platform = "power7+",
494 .pvr_mask = 0xffff0000,
495 .pvr_value = 0x004b0000,
496 .cpu_name = "POWER8 (raw)",
497 .cpu_features = CPU_FTRS_POWER8,
498 .cpu_user_features = COMMON_USER_POWER8,
499 .mmu_features = MMU_FTRS_POWER8,
503 .pmc_type = PPC_PMC_IBM,
504 .oprofile_cpu_type = "ppc64/power8",
505 .oprofile_type = PPC_OPROFILE_POWER4,
506 .cpu_setup = __setup_cpu_power8,
507 .cpu_restore = __restore_cpu_power8,
508 .platform = "power8",
510 { /* Cell Broadband Engine */
511 .pvr_mask = 0xffff0000,
512 .pvr_value = 0x00700000,
513 .cpu_name = "Cell Broadband Engine",
514 .cpu_features = CPU_FTRS_CELL,
515 .cpu_user_features = COMMON_USER_PPC64 |
516 PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP |
518 .mmu_features = MMU_FTRS_CELL,
522 .pmc_type = PPC_PMC_IBM,
523 .oprofile_cpu_type = "ppc64/cell-be",
524 .oprofile_type = PPC_OPROFILE_CELL,
525 .platform = "ppc-cell-be",
528 .pvr_mask = 0x7fff0000,
529 .pvr_value = 0x00900000,
531 .cpu_features = CPU_FTRS_PA6T,
532 .cpu_user_features = COMMON_USER_PA6T,
533 .mmu_features = MMU_FTRS_PA6T,
537 .pmc_type = PPC_PMC_PA6T,
538 .cpu_setup = __setup_cpu_pa6t,
539 .cpu_restore = __restore_cpu_pa6t,
540 .oprofile_cpu_type = "ppc64/pa6t",
541 .oprofile_type = PPC_OPROFILE_PA6T,
544 { /* default match */
545 .pvr_mask = 0x00000000,
546 .pvr_value = 0x00000000,
547 .cpu_name = "POWER4 (compatible)",
548 .cpu_features = CPU_FTRS_COMPATIBLE,
549 .cpu_user_features = COMMON_USER_PPC64,
550 .mmu_features = MMU_FTRS_DEFAULT_HPTE_ARCH_V2,
554 .pmc_type = PPC_PMC_IBM,
555 .platform = "power4",
557 #endif /* CONFIG_PPC_BOOK3S_64 */
562 .pvr_mask = 0xffff0000,
563 .pvr_value = 0x00010000,
565 .cpu_features = CPU_FTRS_PPC601,
566 .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR |
567 PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB,
568 .mmu_features = MMU_FTR_HPTE_TABLE,
571 .machine_check = machine_check_generic,
572 .platform = "ppc601",
575 .pvr_mask = 0xffff0000,
576 .pvr_value = 0x00030000,
578 .cpu_features = CPU_FTRS_603,
579 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
583 .cpu_setup = __setup_cpu_603,
584 .machine_check = machine_check_generic,
585 .platform = "ppc603",
588 .pvr_mask = 0xffff0000,
589 .pvr_value = 0x00060000,
591 .cpu_features = CPU_FTRS_603,
592 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
596 .cpu_setup = __setup_cpu_603,
597 .machine_check = machine_check_generic,
598 .platform = "ppc603",
601 .pvr_mask = 0xffff0000,
602 .pvr_value = 0x00070000,
604 .cpu_features = CPU_FTRS_603,
605 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
609 .cpu_setup = __setup_cpu_603,
610 .machine_check = machine_check_generic,
611 .platform = "ppc603",
614 .pvr_mask = 0xffff0000,
615 .pvr_value = 0x00040000,
617 .cpu_features = CPU_FTRS_604,
618 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
619 .mmu_features = MMU_FTR_HPTE_TABLE,
623 .cpu_setup = __setup_cpu_604,
624 .machine_check = machine_check_generic,
625 .platform = "ppc604",
628 .pvr_mask = 0xfffff000,
629 .pvr_value = 0x00090000,
631 .cpu_features = CPU_FTRS_604,
632 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
633 .mmu_features = MMU_FTR_HPTE_TABLE,
637 .cpu_setup = __setup_cpu_604,
638 .machine_check = machine_check_generic,
639 .platform = "ppc604",
642 .pvr_mask = 0xffff0000,
643 .pvr_value = 0x00090000,
645 .cpu_features = CPU_FTRS_604,
646 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
647 .mmu_features = MMU_FTR_HPTE_TABLE,
651 .cpu_setup = __setup_cpu_604,
652 .machine_check = machine_check_generic,
653 .platform = "ppc604",
656 .pvr_mask = 0xffff0000,
657 .pvr_value = 0x000a0000,
659 .cpu_features = CPU_FTRS_604,
660 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
661 .mmu_features = MMU_FTR_HPTE_TABLE,
665 .cpu_setup = __setup_cpu_604,
666 .machine_check = machine_check_generic,
667 .platform = "ppc604",
669 { /* 740/750 (0x4202, don't support TAU ?) */
670 .pvr_mask = 0xffffffff,
671 .pvr_value = 0x00084202,
672 .cpu_name = "740/750",
673 .cpu_features = CPU_FTRS_740_NOTAU,
674 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
675 .mmu_features = MMU_FTR_HPTE_TABLE,
679 .cpu_setup = __setup_cpu_750,
680 .machine_check = machine_check_generic,
681 .platform = "ppc750",
683 { /* 750CX (80100 and 8010x?) */
684 .pvr_mask = 0xfffffff0,
685 .pvr_value = 0x00080100,
687 .cpu_features = CPU_FTRS_750,
688 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
689 .mmu_features = MMU_FTR_HPTE_TABLE,
693 .cpu_setup = __setup_cpu_750cx,
694 .machine_check = machine_check_generic,
695 .platform = "ppc750",
697 { /* 750CX (82201 and 82202) */
698 .pvr_mask = 0xfffffff0,
699 .pvr_value = 0x00082200,
701 .cpu_features = CPU_FTRS_750,
702 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
703 .mmu_features = MMU_FTR_HPTE_TABLE,
707 .pmc_type = PPC_PMC_IBM,
708 .cpu_setup = __setup_cpu_750cx,
709 .machine_check = machine_check_generic,
710 .platform = "ppc750",
712 { /* 750CXe (82214) */
713 .pvr_mask = 0xfffffff0,
714 .pvr_value = 0x00082210,
715 .cpu_name = "750CXe",
716 .cpu_features = CPU_FTRS_750,
717 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
718 .mmu_features = MMU_FTR_HPTE_TABLE,
722 .pmc_type = PPC_PMC_IBM,
723 .cpu_setup = __setup_cpu_750cx,
724 .machine_check = machine_check_generic,
725 .platform = "ppc750",
727 { /* 750CXe "Gekko" (83214) */
728 .pvr_mask = 0xffffffff,
729 .pvr_value = 0x00083214,
730 .cpu_name = "750CXe",
731 .cpu_features = CPU_FTRS_750,
732 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
733 .mmu_features = MMU_FTR_HPTE_TABLE,
737 .pmc_type = PPC_PMC_IBM,
738 .cpu_setup = __setup_cpu_750cx,
739 .machine_check = machine_check_generic,
740 .platform = "ppc750",
742 { /* 750CL (and "Broadway") */
743 .pvr_mask = 0xfffff0e0,
744 .pvr_value = 0x00087000,
746 .cpu_features = CPU_FTRS_750CL,
747 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
748 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
752 .pmc_type = PPC_PMC_IBM,
753 .cpu_setup = __setup_cpu_750,
754 .machine_check = machine_check_generic,
755 .platform = "ppc750",
756 .oprofile_cpu_type = "ppc/750",
757 .oprofile_type = PPC_OPROFILE_G4,
760 .pvr_mask = 0xfffff000,
761 .pvr_value = 0x00083000,
762 .cpu_name = "745/755",
763 .cpu_features = CPU_FTRS_750,
764 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
765 .mmu_features = MMU_FTR_HPTE_TABLE,
769 .pmc_type = PPC_PMC_IBM,
770 .cpu_setup = __setup_cpu_750,
771 .machine_check = machine_check_generic,
772 .platform = "ppc750",
774 { /* 750FX rev 1.x */
775 .pvr_mask = 0xffffff00,
776 .pvr_value = 0x70000100,
778 .cpu_features = CPU_FTRS_750FX1,
779 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
780 .mmu_features = MMU_FTR_HPTE_TABLE,
784 .pmc_type = PPC_PMC_IBM,
785 .cpu_setup = __setup_cpu_750,
786 .machine_check = machine_check_generic,
787 .platform = "ppc750",
788 .oprofile_cpu_type = "ppc/750",
789 .oprofile_type = PPC_OPROFILE_G4,
791 { /* 750FX rev 2.0 must disable HID0[DPM] */
792 .pvr_mask = 0xffffffff,
793 .pvr_value = 0x70000200,
795 .cpu_features = CPU_FTRS_750FX2,
796 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
797 .mmu_features = MMU_FTR_HPTE_TABLE,
801 .pmc_type = PPC_PMC_IBM,
802 .cpu_setup = __setup_cpu_750,
803 .machine_check = machine_check_generic,
804 .platform = "ppc750",
805 .oprofile_cpu_type = "ppc/750",
806 .oprofile_type = PPC_OPROFILE_G4,
808 { /* 750FX (All revs except 2.0) */
809 .pvr_mask = 0xffff0000,
810 .pvr_value = 0x70000000,
812 .cpu_features = CPU_FTRS_750FX,
813 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
814 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
818 .pmc_type = PPC_PMC_IBM,
819 .cpu_setup = __setup_cpu_750fx,
820 .machine_check = machine_check_generic,
821 .platform = "ppc750",
822 .oprofile_cpu_type = "ppc/750",
823 .oprofile_type = PPC_OPROFILE_G4,
826 .pvr_mask = 0xffff0000,
827 .pvr_value = 0x70020000,
829 .cpu_features = CPU_FTRS_750GX,
830 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
831 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
835 .pmc_type = PPC_PMC_IBM,
836 .cpu_setup = __setup_cpu_750fx,
837 .machine_check = machine_check_generic,
838 .platform = "ppc750",
839 .oprofile_cpu_type = "ppc/750",
840 .oprofile_type = PPC_OPROFILE_G4,
842 { /* 740/750 (L2CR bit need fixup for 740) */
843 .pvr_mask = 0xffff0000,
844 .pvr_value = 0x00080000,
845 .cpu_name = "740/750",
846 .cpu_features = CPU_FTRS_740,
847 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
848 .mmu_features = MMU_FTR_HPTE_TABLE,
852 .pmc_type = PPC_PMC_IBM,
853 .cpu_setup = __setup_cpu_750,
854 .machine_check = machine_check_generic,
855 .platform = "ppc750",
857 { /* 7400 rev 1.1 ? (no TAU) */
858 .pvr_mask = 0xffffffff,
859 .pvr_value = 0x000c1101,
860 .cpu_name = "7400 (1.1)",
861 .cpu_features = CPU_FTRS_7400_NOTAU,
862 .cpu_user_features = COMMON_USER |
863 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
864 .mmu_features = MMU_FTR_HPTE_TABLE,
868 .pmc_type = PPC_PMC_G4,
869 .cpu_setup = __setup_cpu_7400,
870 .machine_check = machine_check_generic,
871 .platform = "ppc7400",
874 .pvr_mask = 0xffff0000,
875 .pvr_value = 0x000c0000,
877 .cpu_features = CPU_FTRS_7400,
878 .cpu_user_features = COMMON_USER |
879 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
880 .mmu_features = MMU_FTR_HPTE_TABLE,
884 .pmc_type = PPC_PMC_G4,
885 .cpu_setup = __setup_cpu_7400,
886 .machine_check = machine_check_generic,
887 .platform = "ppc7400",
890 .pvr_mask = 0xffff0000,
891 .pvr_value = 0x800c0000,
893 .cpu_features = CPU_FTRS_7400,
894 .cpu_user_features = COMMON_USER |
895 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
896 .mmu_features = MMU_FTR_HPTE_TABLE,
900 .pmc_type = PPC_PMC_G4,
901 .cpu_setup = __setup_cpu_7410,
902 .machine_check = machine_check_generic,
903 .platform = "ppc7400",
905 { /* 7450 2.0 - no doze/nap */
906 .pvr_mask = 0xffffffff,
907 .pvr_value = 0x80000200,
909 .cpu_features = CPU_FTRS_7450_20,
910 .cpu_user_features = COMMON_USER |
911 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
912 .mmu_features = MMU_FTR_HPTE_TABLE,
916 .pmc_type = PPC_PMC_G4,
917 .cpu_setup = __setup_cpu_745x,
918 .oprofile_cpu_type = "ppc/7450",
919 .oprofile_type = PPC_OPROFILE_G4,
920 .machine_check = machine_check_generic,
921 .platform = "ppc7450",
924 .pvr_mask = 0xffffffff,
925 .pvr_value = 0x80000201,
927 .cpu_features = CPU_FTRS_7450_21,
928 .cpu_user_features = COMMON_USER |
929 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
930 .mmu_features = MMU_FTR_HPTE_TABLE,
934 .pmc_type = PPC_PMC_G4,
935 .cpu_setup = __setup_cpu_745x,
936 .oprofile_cpu_type = "ppc/7450",
937 .oprofile_type = PPC_OPROFILE_G4,
938 .machine_check = machine_check_generic,
939 .platform = "ppc7450",
941 { /* 7450 2.3 and newer */
942 .pvr_mask = 0xffff0000,
943 .pvr_value = 0x80000000,
945 .cpu_features = CPU_FTRS_7450_23,
946 .cpu_user_features = COMMON_USER |
947 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
948 .mmu_features = MMU_FTR_HPTE_TABLE,
952 .pmc_type = PPC_PMC_G4,
953 .cpu_setup = __setup_cpu_745x,
954 .oprofile_cpu_type = "ppc/7450",
955 .oprofile_type = PPC_OPROFILE_G4,
956 .machine_check = machine_check_generic,
957 .platform = "ppc7450",
960 .pvr_mask = 0xffffff00,
961 .pvr_value = 0x80010100,
963 .cpu_features = CPU_FTRS_7455_1,
964 .cpu_user_features = COMMON_USER |
965 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
966 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
970 .pmc_type = PPC_PMC_G4,
971 .cpu_setup = __setup_cpu_745x,
972 .oprofile_cpu_type = "ppc/7450",
973 .oprofile_type = PPC_OPROFILE_G4,
974 .machine_check = machine_check_generic,
975 .platform = "ppc7450",
978 .pvr_mask = 0xffffffff,
979 .pvr_value = 0x80010200,
981 .cpu_features = CPU_FTRS_7455_20,
982 .cpu_user_features = COMMON_USER |
983 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
984 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
988 .pmc_type = PPC_PMC_G4,
989 .cpu_setup = __setup_cpu_745x,
990 .oprofile_cpu_type = "ppc/7450",
991 .oprofile_type = PPC_OPROFILE_G4,
992 .machine_check = machine_check_generic,
993 .platform = "ppc7450",
996 .pvr_mask = 0xffff0000,
997 .pvr_value = 0x80010000,
999 .cpu_features = CPU_FTRS_7455,
1000 .cpu_user_features = COMMON_USER |
1001 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
1002 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
1006 .pmc_type = PPC_PMC_G4,
1007 .cpu_setup = __setup_cpu_745x,
1008 .oprofile_cpu_type = "ppc/7450",
1009 .oprofile_type = PPC_OPROFILE_G4,
1010 .machine_check = machine_check_generic,
1011 .platform = "ppc7450",
1013 { /* 7447/7457 Rev 1.0 */
1014 .pvr_mask = 0xffffffff,
1015 .pvr_value = 0x80020100,
1016 .cpu_name = "7447/7457",
1017 .cpu_features = CPU_FTRS_7447_10,
1018 .cpu_user_features = COMMON_USER |
1019 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
1020 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
1024 .pmc_type = PPC_PMC_G4,
1025 .cpu_setup = __setup_cpu_745x,
1026 .oprofile_cpu_type = "ppc/7450",
1027 .oprofile_type = PPC_OPROFILE_G4,
1028 .machine_check = machine_check_generic,
1029 .platform = "ppc7450",
1031 { /* 7447/7457 Rev 1.1 */
1032 .pvr_mask = 0xffffffff,
1033 .pvr_value = 0x80020101,
1034 .cpu_name = "7447/7457",
1035 .cpu_features = CPU_FTRS_7447_10,
1036 .cpu_user_features = COMMON_USER |
1037 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
1038 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
1042 .pmc_type = PPC_PMC_G4,
1043 .cpu_setup = __setup_cpu_745x,
1044 .oprofile_cpu_type = "ppc/7450",
1045 .oprofile_type = PPC_OPROFILE_G4,
1046 .machine_check = machine_check_generic,
1047 .platform = "ppc7450",
1049 { /* 7447/7457 Rev 1.2 and later */
1050 .pvr_mask = 0xffff0000,
1051 .pvr_value = 0x80020000,
1052 .cpu_name = "7447/7457",
1053 .cpu_features = CPU_FTRS_7447,
1054 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
1055 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
1059 .pmc_type = PPC_PMC_G4,
1060 .cpu_setup = __setup_cpu_745x,
1061 .oprofile_cpu_type = "ppc/7450",
1062 .oprofile_type = PPC_OPROFILE_G4,
1063 .machine_check = machine_check_generic,
1064 .platform = "ppc7450",
1067 .pvr_mask = 0xffff0000,
1068 .pvr_value = 0x80030000,
1069 .cpu_name = "7447A",
1070 .cpu_features = CPU_FTRS_7447A,
1071 .cpu_user_features = COMMON_USER |
1072 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
1073 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
1077 .pmc_type = PPC_PMC_G4,
1078 .cpu_setup = __setup_cpu_745x,
1079 .oprofile_cpu_type = "ppc/7450",
1080 .oprofile_type = PPC_OPROFILE_G4,
1081 .machine_check = machine_check_generic,
1082 .platform = "ppc7450",
1085 .pvr_mask = 0xffff0000,
1086 .pvr_value = 0x80040000,
1088 .cpu_features = CPU_FTRS_7448,
1089 .cpu_user_features = COMMON_USER |
1090 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
1091 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
1095 .pmc_type = PPC_PMC_G4,
1096 .cpu_setup = __setup_cpu_745x,
1097 .oprofile_cpu_type = "ppc/7450",
1098 .oprofile_type = PPC_OPROFILE_G4,
1099 .machine_check = machine_check_generic,
1100 .platform = "ppc7450",
1102 { /* 82xx (8240, 8245, 8260 are all 603e cores) */
1103 .pvr_mask = 0x7fff0000,
1104 .pvr_value = 0x00810000,
1106 .cpu_features = CPU_FTRS_82XX,
1107 .cpu_user_features = COMMON_USER,
1111 .cpu_setup = __setup_cpu_603,
1112 .machine_check = machine_check_generic,
1113 .platform = "ppc603",
1115 { /* All G2_LE (603e core, plus some) have the same pvr */
1116 .pvr_mask = 0x7fff0000,
1117 .pvr_value = 0x00820000,
1118 .cpu_name = "G2_LE",
1119 .cpu_features = CPU_FTRS_G2_LE,
1120 .cpu_user_features = COMMON_USER,
1121 .mmu_features = MMU_FTR_USE_HIGH_BATS,
1124 .cpu_setup = __setup_cpu_603,
1125 .machine_check = machine_check_generic,
1126 .platform = "ppc603",
1128 { /* e300c1 (a 603e core, plus some) on 83xx */
1129 .pvr_mask = 0x7fff0000,
1130 .pvr_value = 0x00830000,
1131 .cpu_name = "e300c1",
1132 .cpu_features = CPU_FTRS_E300,
1133 .cpu_user_features = COMMON_USER,
1134 .mmu_features = MMU_FTR_USE_HIGH_BATS,
1137 .cpu_setup = __setup_cpu_603,
1138 .machine_check = machine_check_generic,
1139 .platform = "ppc603",
1141 { /* e300c2 (an e300c1 core, plus some, minus FPU) on 83xx */
1142 .pvr_mask = 0x7fff0000,
1143 .pvr_value = 0x00840000,
1144 .cpu_name = "e300c2",
1145 .cpu_features = CPU_FTRS_E300C2,
1146 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
1147 .mmu_features = MMU_FTR_USE_HIGH_BATS |
1148 MMU_FTR_NEED_DTLB_SW_LRU,
1151 .cpu_setup = __setup_cpu_603,
1152 .machine_check = machine_check_generic,
1153 .platform = "ppc603",
1155 { /* e300c3 (e300c1, plus one IU, half cache size) on 83xx */
1156 .pvr_mask = 0x7fff0000,
1157 .pvr_value = 0x00850000,
1158 .cpu_name = "e300c3",
1159 .cpu_features = CPU_FTRS_E300,
1160 .cpu_user_features = COMMON_USER,
1161 .mmu_features = MMU_FTR_USE_HIGH_BATS |
1162 MMU_FTR_NEED_DTLB_SW_LRU,
1165 .cpu_setup = __setup_cpu_603,
1167 .oprofile_cpu_type = "ppc/e300",
1168 .oprofile_type = PPC_OPROFILE_FSL_EMB,
1169 .platform = "ppc603",
1171 { /* e300c4 (e300c1, plus one IU) */
1172 .pvr_mask = 0x7fff0000,
1173 .pvr_value = 0x00860000,
1174 .cpu_name = "e300c4",
1175 .cpu_features = CPU_FTRS_E300,
1176 .cpu_user_features = COMMON_USER,
1177 .mmu_features = MMU_FTR_USE_HIGH_BATS |
1178 MMU_FTR_NEED_DTLB_SW_LRU,
1181 .cpu_setup = __setup_cpu_603,
1182 .machine_check = machine_check_generic,
1184 .oprofile_cpu_type = "ppc/e300",
1185 .oprofile_type = PPC_OPROFILE_FSL_EMB,
1186 .platform = "ppc603",
1188 { /* default match, we assume split I/D cache & TB (non-601)... */
1189 .pvr_mask = 0x00000000,
1190 .pvr_value = 0x00000000,
1191 .cpu_name = "(generic PPC)",
1192 .cpu_features = CPU_FTRS_CLASSIC32,
1193 .cpu_user_features = COMMON_USER,
1194 .mmu_features = MMU_FTR_HPTE_TABLE,
1197 .machine_check = machine_check_generic,
1198 .platform = "ppc603",
1200 #endif /* CLASSIC_PPC */
1203 .pvr_mask = 0xffff0000,
1204 .pvr_value = 0x00500000,
1206 /* CPU_FTR_MAYBE_CAN_DOZE is possible,
1207 * if the 8xx code is there.... */
1208 .cpu_features = CPU_FTRS_8XX,
1209 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
1210 .mmu_features = MMU_FTR_TYPE_8xx,
1213 .platform = "ppc823",
1215 #endif /* CONFIG_8xx */
1218 .pvr_mask = 0xffffff00,
1219 .pvr_value = 0x00200200,
1220 .cpu_name = "403GC",
1221 .cpu_features = CPU_FTRS_40X,
1222 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
1223 .mmu_features = MMU_FTR_TYPE_40x,
1226 .machine_check = machine_check_4xx,
1227 .platform = "ppc403",
1230 .pvr_mask = 0xffffff00,
1231 .pvr_value = 0x00201400,
1232 .cpu_name = "403GCX",
1233 .cpu_features = CPU_FTRS_40X,
1234 .cpu_user_features = PPC_FEATURE_32 |
1235 PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB,
1236 .mmu_features = MMU_FTR_TYPE_40x,
1239 .machine_check = machine_check_4xx,
1240 .platform = "ppc403",
1243 .pvr_mask = 0xffff0000,
1244 .pvr_value = 0x00200000,
1245 .cpu_name = "403G ??",
1246 .cpu_features = CPU_FTRS_40X,
1247 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
1248 .mmu_features = MMU_FTR_TYPE_40x,
1251 .machine_check = machine_check_4xx,
1252 .platform = "ppc403",
1255 .pvr_mask = 0xffff0000,
1256 .pvr_value = 0x40110000,
1257 .cpu_name = "405GP",
1258 .cpu_features = CPU_FTRS_40X,
1259 .cpu_user_features = PPC_FEATURE_32 |
1260 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1261 .mmu_features = MMU_FTR_TYPE_40x,
1264 .machine_check = machine_check_4xx,
1265 .platform = "ppc405",
1268 .pvr_mask = 0xffff0000,
1269 .pvr_value = 0x40130000,
1270 .cpu_name = "STB03xxx",
1271 .cpu_features = CPU_FTRS_40X,
1272 .cpu_user_features = PPC_FEATURE_32 |
1273 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1274 .mmu_features = MMU_FTR_TYPE_40x,
1277 .machine_check = machine_check_4xx,
1278 .platform = "ppc405",
1281 .pvr_mask = 0xffff0000,
1282 .pvr_value = 0x41810000,
1283 .cpu_name = "STB04xxx",
1284 .cpu_features = CPU_FTRS_40X,
1285 .cpu_user_features = PPC_FEATURE_32 |
1286 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1287 .mmu_features = MMU_FTR_TYPE_40x,
1290 .machine_check = machine_check_4xx,
1291 .platform = "ppc405",
1294 .pvr_mask = 0xffff0000,
1295 .pvr_value = 0x41610000,
1296 .cpu_name = "NP405L",
1297 .cpu_features = CPU_FTRS_40X,
1298 .cpu_user_features = PPC_FEATURE_32 |
1299 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1300 .mmu_features = MMU_FTR_TYPE_40x,
1303 .machine_check = machine_check_4xx,
1304 .platform = "ppc405",
1307 .pvr_mask = 0xffff0000,
1308 .pvr_value = 0x40B10000,
1309 .cpu_name = "NP4GS3",
1310 .cpu_features = CPU_FTRS_40X,
1311 .cpu_user_features = PPC_FEATURE_32 |
1312 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1313 .mmu_features = MMU_FTR_TYPE_40x,
1316 .machine_check = machine_check_4xx,
1317 .platform = "ppc405",
1320 .pvr_mask = 0xffff0000,
1321 .pvr_value = 0x41410000,
1322 .cpu_name = "NP405H",
1323 .cpu_features = CPU_FTRS_40X,
1324 .cpu_user_features = PPC_FEATURE_32 |
1325 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1326 .mmu_features = MMU_FTR_TYPE_40x,
1329 .machine_check = machine_check_4xx,
1330 .platform = "ppc405",
1333 .pvr_mask = 0xffff0000,
1334 .pvr_value = 0x50910000,
1335 .cpu_name = "405GPr",
1336 .cpu_features = CPU_FTRS_40X,
1337 .cpu_user_features = PPC_FEATURE_32 |
1338 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1339 .mmu_features = MMU_FTR_TYPE_40x,
1342 .machine_check = machine_check_4xx,
1343 .platform = "ppc405",
1346 .pvr_mask = 0xffff0000,
1347 .pvr_value = 0x51510000,
1348 .cpu_name = "STBx25xx",
1349 .cpu_features = CPU_FTRS_40X,
1350 .cpu_user_features = PPC_FEATURE_32 |
1351 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1352 .mmu_features = MMU_FTR_TYPE_40x,
1355 .machine_check = machine_check_4xx,
1356 .platform = "ppc405",
1359 .pvr_mask = 0xffff0000,
1360 .pvr_value = 0x41F10000,
1361 .cpu_name = "405LP",
1362 .cpu_features = CPU_FTRS_40X,
1363 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
1364 .mmu_features = MMU_FTR_TYPE_40x,
1367 .machine_check = machine_check_4xx,
1368 .platform = "ppc405",
1370 { /* Xilinx Virtex-II Pro */
1371 .pvr_mask = 0xfffff000,
1372 .pvr_value = 0x20010000,
1373 .cpu_name = "Virtex-II Pro",
1374 .cpu_features = CPU_FTRS_40X,
1375 .cpu_user_features = PPC_FEATURE_32 |
1376 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1377 .mmu_features = MMU_FTR_TYPE_40x,
1380 .machine_check = machine_check_4xx,
1381 .platform = "ppc405",
1383 { /* Xilinx Virtex-4 FX */
1384 .pvr_mask = 0xfffff000,
1385 .pvr_value = 0x20011000,
1386 .cpu_name = "Virtex-4 FX",
1387 .cpu_features = CPU_FTRS_40X,
1388 .cpu_user_features = PPC_FEATURE_32 |
1389 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1390 .mmu_features = MMU_FTR_TYPE_40x,
1393 .machine_check = machine_check_4xx,
1394 .platform = "ppc405",
1397 .pvr_mask = 0xffff0000,
1398 .pvr_value = 0x51210000,
1399 .cpu_name = "405EP",
1400 .cpu_features = CPU_FTRS_40X,
1401 .cpu_user_features = PPC_FEATURE_32 |
1402 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1403 .mmu_features = MMU_FTR_TYPE_40x,
1406 .machine_check = machine_check_4xx,
1407 .platform = "ppc405",
1409 { /* 405EX Rev. A/B with Security */
1410 .pvr_mask = 0xffff000f,
1411 .pvr_value = 0x12910007,
1412 .cpu_name = "405EX Rev. A/B",
1413 .cpu_features = CPU_FTRS_40X,
1414 .cpu_user_features = PPC_FEATURE_32 |
1415 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1416 .mmu_features = MMU_FTR_TYPE_40x,
1419 .machine_check = machine_check_4xx,
1420 .platform = "ppc405",
1422 { /* 405EX Rev. C without Security */
1423 .pvr_mask = 0xffff000f,
1424 .pvr_value = 0x1291000d,
1425 .cpu_name = "405EX Rev. C",
1426 .cpu_features = CPU_FTRS_40X,
1427 .cpu_user_features = PPC_FEATURE_32 |
1428 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1429 .mmu_features = MMU_FTR_TYPE_40x,
1432 .machine_check = machine_check_4xx,
1433 .platform = "ppc405",
1435 { /* 405EX Rev. C with Security */
1436 .pvr_mask = 0xffff000f,
1437 .pvr_value = 0x1291000f,
1438 .cpu_name = "405EX Rev. C",
1439 .cpu_features = CPU_FTRS_40X,
1440 .cpu_user_features = PPC_FEATURE_32 |
1441 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1442 .mmu_features = MMU_FTR_TYPE_40x,
1445 .machine_check = machine_check_4xx,
1446 .platform = "ppc405",
1448 { /* 405EX Rev. D without Security */
1449 .pvr_mask = 0xffff000f,
1450 .pvr_value = 0x12910003,
1451 .cpu_name = "405EX Rev. D",
1452 .cpu_features = CPU_FTRS_40X,
1453 .cpu_user_features = PPC_FEATURE_32 |
1454 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1455 .mmu_features = MMU_FTR_TYPE_40x,
1458 .machine_check = machine_check_4xx,
1459 .platform = "ppc405",
1461 { /* 405EX Rev. D with Security */
1462 .pvr_mask = 0xffff000f,
1463 .pvr_value = 0x12910005,
1464 .cpu_name = "405EX Rev. D",
1465 .cpu_features = CPU_FTRS_40X,
1466 .cpu_user_features = PPC_FEATURE_32 |
1467 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1468 .mmu_features = MMU_FTR_TYPE_40x,
1471 .machine_check = machine_check_4xx,
1472 .platform = "ppc405",
1474 { /* 405EXr Rev. A/B without Security */
1475 .pvr_mask = 0xffff000f,
1476 .pvr_value = 0x12910001,
1477 .cpu_name = "405EXr Rev. A/B",
1478 .cpu_features = CPU_FTRS_40X,
1479 .cpu_user_features = PPC_FEATURE_32 |
1480 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1481 .mmu_features = MMU_FTR_TYPE_40x,
1484 .machine_check = machine_check_4xx,
1485 .platform = "ppc405",
1487 { /* 405EXr Rev. C without Security */
1488 .pvr_mask = 0xffff000f,
1489 .pvr_value = 0x12910009,
1490 .cpu_name = "405EXr Rev. C",
1491 .cpu_features = CPU_FTRS_40X,
1492 .cpu_user_features = PPC_FEATURE_32 |
1493 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1494 .mmu_features = MMU_FTR_TYPE_40x,
1497 .machine_check = machine_check_4xx,
1498 .platform = "ppc405",
1500 { /* 405EXr Rev. C with Security */
1501 .pvr_mask = 0xffff000f,
1502 .pvr_value = 0x1291000b,
1503 .cpu_name = "405EXr Rev. C",
1504 .cpu_features = CPU_FTRS_40X,
1505 .cpu_user_features = PPC_FEATURE_32 |
1506 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1507 .mmu_features = MMU_FTR_TYPE_40x,
1510 .machine_check = machine_check_4xx,
1511 .platform = "ppc405",
1513 { /* 405EXr Rev. D without Security */
1514 .pvr_mask = 0xffff000f,
1515 .pvr_value = 0x12910000,
1516 .cpu_name = "405EXr Rev. D",
1517 .cpu_features = CPU_FTRS_40X,
1518 .cpu_user_features = PPC_FEATURE_32 |
1519 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1520 .mmu_features = MMU_FTR_TYPE_40x,
1523 .machine_check = machine_check_4xx,
1524 .platform = "ppc405",
1526 { /* 405EXr Rev. D with Security */
1527 .pvr_mask = 0xffff000f,
1528 .pvr_value = 0x12910002,
1529 .cpu_name = "405EXr Rev. D",
1530 .cpu_features = CPU_FTRS_40X,
1531 .cpu_user_features = PPC_FEATURE_32 |
1532 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1533 .mmu_features = MMU_FTR_TYPE_40x,
1536 .machine_check = machine_check_4xx,
1537 .platform = "ppc405",
1541 .pvr_mask = 0xffff0000,
1542 .pvr_value = 0x41510000,
1543 .cpu_name = "405EZ",
1544 .cpu_features = CPU_FTRS_40X,
1545 .cpu_user_features = PPC_FEATURE_32 |
1546 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1547 .mmu_features = MMU_FTR_TYPE_40x,
1550 .machine_check = machine_check_4xx,
1551 .platform = "ppc405",
1554 .pvr_mask = 0xffff0000,
1555 .pvr_value = 0x7ff11432,
1556 .cpu_name = "APM8018X",
1557 .cpu_features = CPU_FTRS_40X,
1558 .cpu_user_features = PPC_FEATURE_32 |
1559 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1560 .mmu_features = MMU_FTR_TYPE_40x,
1563 .machine_check = machine_check_4xx,
1564 .platform = "ppc405",
1566 { /* default match */
1567 .pvr_mask = 0x00000000,
1568 .pvr_value = 0x00000000,
1569 .cpu_name = "(generic 40x PPC)",
1570 .cpu_features = CPU_FTRS_40X,
1571 .cpu_user_features = PPC_FEATURE_32 |
1572 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1573 .mmu_features = MMU_FTR_TYPE_40x,
1576 .machine_check = machine_check_4xx,
1577 .platform = "ppc405",
1580 #endif /* CONFIG_40x */
1583 .pvr_mask = 0xf0000fff,
1584 .pvr_value = 0x40000850,
1585 .cpu_name = "440GR Rev. A",
1586 .cpu_features = CPU_FTRS_44X,
1587 .cpu_user_features = COMMON_USER_BOOKE,
1588 .mmu_features = MMU_FTR_TYPE_44x,
1591 .machine_check = machine_check_4xx,
1592 .platform = "ppc440",
1594 { /* Use logical PVR for 440EP (logical pvr = pvr | 0x8) */
1595 .pvr_mask = 0xf0000fff,
1596 .pvr_value = 0x40000858,
1597 .cpu_name = "440EP Rev. A",
1598 .cpu_features = CPU_FTRS_44X,
1599 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
1600 .mmu_features = MMU_FTR_TYPE_44x,
1603 .cpu_setup = __setup_cpu_440ep,
1604 .machine_check = machine_check_4xx,
1605 .platform = "ppc440",
1608 .pvr_mask = 0xf0000fff,
1609 .pvr_value = 0x400008d3,
1610 .cpu_name = "440GR Rev. B",
1611 .cpu_features = CPU_FTRS_44X,
1612 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
1613 .mmu_features = MMU_FTR_TYPE_44x,
1616 .machine_check = machine_check_4xx,
1617 .platform = "ppc440",
1619 { /* Matches both physical and logical PVR for 440EP (logical pvr = pvr | 0x8) */
1620 .pvr_mask = 0xf0000ff7,
1621 .pvr_value = 0x400008d4,
1622 .cpu_name = "440EP Rev. C",
1623 .cpu_features = CPU_FTRS_44X,
1624 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
1625 .mmu_features = MMU_FTR_TYPE_44x,
1628 .cpu_setup = __setup_cpu_440ep,
1629 .machine_check = machine_check_4xx,
1630 .platform = "ppc440",
1632 { /* Use logical PVR for 440EP (logical pvr = pvr | 0x8) */
1633 .pvr_mask = 0xf0000fff,
1634 .pvr_value = 0x400008db,
1635 .cpu_name = "440EP Rev. B",
1636 .cpu_features = CPU_FTRS_44X,
1637 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
1638 .mmu_features = MMU_FTR_TYPE_44x,
1641 .cpu_setup = __setup_cpu_440ep,
1642 .machine_check = machine_check_4xx,
1643 .platform = "ppc440",
1646 .pvr_mask = 0xf0000ffb,
1647 .pvr_value = 0x200008D0,
1648 .cpu_name = "440GRX",
1649 .cpu_features = CPU_FTRS_44X,
1650 .cpu_user_features = COMMON_USER_BOOKE,
1651 .mmu_features = MMU_FTR_TYPE_44x,
1654 .cpu_setup = __setup_cpu_440grx,
1655 .machine_check = machine_check_440A,
1656 .platform = "ppc440",
1658 { /* Use logical PVR for 440EPx (logical pvr = pvr | 0x8) */
1659 .pvr_mask = 0xf0000ffb,
1660 .pvr_value = 0x200008D8,
1661 .cpu_name = "440EPX",
1662 .cpu_features = CPU_FTRS_44X,
1663 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
1664 .mmu_features = MMU_FTR_TYPE_44x,
1667 .cpu_setup = __setup_cpu_440epx,
1668 .machine_check = machine_check_440A,
1669 .platform = "ppc440",
1671 { /* 440GP Rev. B */
1672 .pvr_mask = 0xf0000fff,
1673 .pvr_value = 0x40000440,
1674 .cpu_name = "440GP Rev. B",
1675 .cpu_features = CPU_FTRS_44X,
1676 .cpu_user_features = COMMON_USER_BOOKE,
1677 .mmu_features = MMU_FTR_TYPE_44x,
1680 .machine_check = machine_check_4xx,
1681 .platform = "ppc440gp",
1683 { /* 440GP Rev. C */
1684 .pvr_mask = 0xf0000fff,
1685 .pvr_value = 0x40000481,
1686 .cpu_name = "440GP Rev. C",
1687 .cpu_features = CPU_FTRS_44X,
1688 .cpu_user_features = COMMON_USER_BOOKE,
1689 .mmu_features = MMU_FTR_TYPE_44x,
1692 .machine_check = machine_check_4xx,
1693 .platform = "ppc440gp",
1695 { /* 440GX Rev. A */
1696 .pvr_mask = 0xf0000fff,
1697 .pvr_value = 0x50000850,
1698 .cpu_name = "440GX Rev. A",
1699 .cpu_features = CPU_FTRS_44X,
1700 .cpu_user_features = COMMON_USER_BOOKE,
1701 .mmu_features = MMU_FTR_TYPE_44x,
1704 .cpu_setup = __setup_cpu_440gx,
1705 .machine_check = machine_check_440A,
1706 .platform = "ppc440",
1708 { /* 440GX Rev. B */
1709 .pvr_mask = 0xf0000fff,
1710 .pvr_value = 0x50000851,
1711 .cpu_name = "440GX Rev. B",
1712 .cpu_features = CPU_FTRS_44X,
1713 .cpu_user_features = COMMON_USER_BOOKE,
1714 .mmu_features = MMU_FTR_TYPE_44x,
1717 .cpu_setup = __setup_cpu_440gx,
1718 .machine_check = machine_check_440A,
1719 .platform = "ppc440",
1721 { /* 440GX Rev. C */
1722 .pvr_mask = 0xf0000fff,
1723 .pvr_value = 0x50000892,
1724 .cpu_name = "440GX Rev. C",
1725 .cpu_features = CPU_FTRS_44X,
1726 .cpu_user_features = COMMON_USER_BOOKE,
1727 .mmu_features = MMU_FTR_TYPE_44x,
1730 .cpu_setup = __setup_cpu_440gx,
1731 .machine_check = machine_check_440A,
1732 .platform = "ppc440",
1734 { /* 440GX Rev. F */
1735 .pvr_mask = 0xf0000fff,
1736 .pvr_value = 0x50000894,
1737 .cpu_name = "440GX Rev. F",
1738 .cpu_features = CPU_FTRS_44X,
1739 .cpu_user_features = COMMON_USER_BOOKE,
1740 .mmu_features = MMU_FTR_TYPE_44x,
1743 .cpu_setup = __setup_cpu_440gx,
1744 .machine_check = machine_check_440A,
1745 .platform = "ppc440",
1747 { /* 440SP Rev. A */
1748 .pvr_mask = 0xfff00fff,
1749 .pvr_value = 0x53200891,
1750 .cpu_name = "440SP Rev. A",
1751 .cpu_features = CPU_FTRS_44X,
1752 .cpu_user_features = COMMON_USER_BOOKE,
1753 .mmu_features = MMU_FTR_TYPE_44x,
1756 .machine_check = machine_check_4xx,
1757 .platform = "ppc440",
1759 { /* 440SPe Rev. A */
1760 .pvr_mask = 0xfff00fff,
1761 .pvr_value = 0x53400890,
1762 .cpu_name = "440SPe Rev. A",
1763 .cpu_features = CPU_FTRS_44X,
1764 .cpu_user_features = COMMON_USER_BOOKE,
1765 .mmu_features = MMU_FTR_TYPE_44x,
1768 .cpu_setup = __setup_cpu_440spe,
1769 .machine_check = machine_check_440A,
1770 .platform = "ppc440",
1772 { /* 440SPe Rev. B */
1773 .pvr_mask = 0xfff00fff,
1774 .pvr_value = 0x53400891,
1775 .cpu_name = "440SPe Rev. B",
1776 .cpu_features = CPU_FTRS_44X,
1777 .cpu_user_features = COMMON_USER_BOOKE,
1778 .mmu_features = MMU_FTR_TYPE_44x,
1781 .cpu_setup = __setup_cpu_440spe,
1782 .machine_check = machine_check_440A,
1783 .platform = "ppc440",
1785 { /* 440 in Xilinx Virtex-5 FXT */
1786 .pvr_mask = 0xfffffff0,
1787 .pvr_value = 0x7ff21910,
1788 .cpu_name = "440 in Virtex-5 FXT",
1789 .cpu_features = CPU_FTRS_44X,
1790 .cpu_user_features = COMMON_USER_BOOKE,
1791 .mmu_features = MMU_FTR_TYPE_44x,
1794 .cpu_setup = __setup_cpu_440x5,
1795 .machine_check = machine_check_440A,
1796 .platform = "ppc440",
1799 .pvr_mask = 0xffff0006,
1800 .pvr_value = 0x13020002,
1801 .cpu_name = "460EX",
1802 .cpu_features = CPU_FTRS_440x6,
1803 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
1804 .mmu_features = MMU_FTR_TYPE_44x,
1807 .cpu_setup = __setup_cpu_460ex,
1808 .machine_check = machine_check_440A,
1809 .platform = "ppc440",
1812 .pvr_mask = 0xffff0007,
1813 .pvr_value = 0x13020004,
1814 .cpu_name = "460EX Rev. B",
1815 .cpu_features = CPU_FTRS_440x6,
1816 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
1817 .mmu_features = MMU_FTR_TYPE_44x,
1820 .cpu_setup = __setup_cpu_460ex,
1821 .machine_check = machine_check_440A,
1822 .platform = "ppc440",
1825 .pvr_mask = 0xffff0006,
1826 .pvr_value = 0x13020000,
1827 .cpu_name = "460GT",
1828 .cpu_features = CPU_FTRS_440x6,
1829 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
1830 .mmu_features = MMU_FTR_TYPE_44x,
1833 .cpu_setup = __setup_cpu_460gt,
1834 .machine_check = machine_check_440A,
1835 .platform = "ppc440",
1838 .pvr_mask = 0xffff0007,
1839 .pvr_value = 0x13020005,
1840 .cpu_name = "460GT Rev. B",
1841 .cpu_features = CPU_FTRS_440x6,
1842 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
1843 .mmu_features = MMU_FTR_TYPE_44x,
1846 .cpu_setup = __setup_cpu_460gt,
1847 .machine_check = machine_check_440A,
1848 .platform = "ppc440",
1851 .pvr_mask = 0xffffff00,
1852 .pvr_value = 0x13541800,
1853 .cpu_name = "460SX",
1854 .cpu_features = CPU_FTRS_44X,
1855 .cpu_user_features = COMMON_USER_BOOKE,
1856 .mmu_features = MMU_FTR_TYPE_44x,
1859 .cpu_setup = __setup_cpu_460sx,
1860 .machine_check = machine_check_440A,
1861 .platform = "ppc440",
1863 { /* 464 in APM821xx */
1864 .pvr_mask = 0xfffffff0,
1865 .pvr_value = 0x12C41C80,
1866 .cpu_name = "APM821XX",
1867 .cpu_features = CPU_FTRS_44X,
1868 .cpu_user_features = COMMON_USER_BOOKE |
1869 PPC_FEATURE_HAS_FPU,
1870 .mmu_features = MMU_FTR_TYPE_44x,
1873 .cpu_setup = __setup_cpu_apm821xx,
1874 .machine_check = machine_check_440A,
1875 .platform = "ppc440",
1877 { /* 476 DD2 core */
1878 .pvr_mask = 0xffffffff,
1879 .pvr_value = 0x11a52080,
1881 .cpu_features = CPU_FTRS_47X | CPU_FTR_476_DD2,
1882 .cpu_user_features = COMMON_USER_BOOKE |
1883 PPC_FEATURE_HAS_FPU,
1884 .mmu_features = MMU_FTR_TYPE_47x |
1885 MMU_FTR_USE_TLBIVAX_BCAST | MMU_FTR_LOCK_BCAST_INVAL,
1887 .dcache_bsize = 128,
1888 .machine_check = machine_check_47x,
1889 .platform = "ppc470",
1892 .pvr_mask = 0xffff0000,
1893 .pvr_value = 0x7ff50000,
1894 .cpu_name = "476fpe",
1895 .cpu_features = CPU_FTRS_47X | CPU_FTR_476_DD2,
1896 .cpu_user_features = COMMON_USER_BOOKE |
1897 PPC_FEATURE_HAS_FPU,
1898 .mmu_features = MMU_FTR_TYPE_47x |
1899 MMU_FTR_USE_TLBIVAX_BCAST | MMU_FTR_LOCK_BCAST_INVAL,
1901 .dcache_bsize = 128,
1902 .machine_check = machine_check_47x,
1903 .platform = "ppc470",
1906 .pvr_mask = 0xffff0000,
1907 .pvr_value = 0x00050000,
1909 .cpu_features = CPU_FTRS_47X,
1910 .cpu_user_features = COMMON_USER_BOOKE |
1911 PPC_FEATURE_HAS_FPU,
1912 .mmu_features = MMU_FTR_TYPE_47x |
1913 MMU_FTR_USE_TLBIVAX_BCAST | MMU_FTR_LOCK_BCAST_INVAL,
1915 .dcache_bsize = 128,
1916 .machine_check = machine_check_47x,
1917 .platform = "ppc470",
1920 .pvr_mask = 0xffff0000,
1921 .pvr_value = 0x11a50000,
1923 .cpu_features = CPU_FTRS_47X,
1924 .cpu_user_features = COMMON_USER_BOOKE |
1925 PPC_FEATURE_HAS_FPU,
1926 .mmu_features = MMU_FTR_TYPE_47x |
1927 MMU_FTR_USE_TLBIVAX_BCAST | MMU_FTR_LOCK_BCAST_INVAL,
1929 .dcache_bsize = 128,
1930 .machine_check = machine_check_47x,
1931 .platform = "ppc470",
1933 { /* default match */
1934 .pvr_mask = 0x00000000,
1935 .pvr_value = 0x00000000,
1936 .cpu_name = "(generic 44x PPC)",
1937 .cpu_features = CPU_FTRS_44X,
1938 .cpu_user_features = COMMON_USER_BOOKE,
1939 .mmu_features = MMU_FTR_TYPE_44x,
1942 .machine_check = machine_check_4xx,
1943 .platform = "ppc440",
1945 #endif /* CONFIG_44x */
1948 .pvr_mask = 0xfff00000,
1949 .pvr_value = 0x81000000,
1950 .cpu_name = "e200z5",
1951 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1952 .cpu_features = CPU_FTRS_E200,
1953 .cpu_user_features = COMMON_USER_BOOKE |
1954 PPC_FEATURE_HAS_EFP_SINGLE |
1955 PPC_FEATURE_UNIFIED_CACHE,
1956 .mmu_features = MMU_FTR_TYPE_FSL_E,
1958 .machine_check = machine_check_e200,
1959 .platform = "ppc5554",
1962 .pvr_mask = 0xfff00000,
1963 .pvr_value = 0x81100000,
1964 .cpu_name = "e200z6",
1965 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1966 .cpu_features = CPU_FTRS_E200,
1967 .cpu_user_features = COMMON_USER_BOOKE |
1968 PPC_FEATURE_HAS_SPE_COMP |
1969 PPC_FEATURE_HAS_EFP_SINGLE_COMP |
1970 PPC_FEATURE_UNIFIED_CACHE,
1971 .mmu_features = MMU_FTR_TYPE_FSL_E,
1973 .machine_check = machine_check_e200,
1974 .platform = "ppc5554",
1976 { /* default match */
1977 .pvr_mask = 0x00000000,
1978 .pvr_value = 0x00000000,
1979 .cpu_name = "(generic E200 PPC)",
1980 .cpu_features = CPU_FTRS_E200,
1981 .cpu_user_features = COMMON_USER_BOOKE |
1982 PPC_FEATURE_HAS_EFP_SINGLE |
1983 PPC_FEATURE_UNIFIED_CACHE,
1984 .mmu_features = MMU_FTR_TYPE_FSL_E,
1986 .cpu_setup = __setup_cpu_e200,
1987 .machine_check = machine_check_e200,
1988 .platform = "ppc5554",
1990 #endif /* CONFIG_E200 */
1991 #endif /* CONFIG_PPC32 */
1995 .pvr_mask = 0xffff0000,
1996 .pvr_value = 0x80200000,
1998 .cpu_features = CPU_FTRS_E500,
1999 .cpu_user_features = COMMON_USER_BOOKE |
2000 PPC_FEATURE_HAS_SPE_COMP |
2001 PPC_FEATURE_HAS_EFP_SINGLE_COMP,
2002 .mmu_features = MMU_FTR_TYPE_FSL_E,
2006 .oprofile_cpu_type = "ppc/e500",
2007 .oprofile_type = PPC_OPROFILE_FSL_EMB,
2008 .cpu_setup = __setup_cpu_e500v1,
2009 .machine_check = machine_check_e500,
2010 .platform = "ppc8540",
2013 .pvr_mask = 0xffff0000,
2014 .pvr_value = 0x80210000,
2015 .cpu_name = "e500v2",
2016 .cpu_features = CPU_FTRS_E500_2,
2017 .cpu_user_features = COMMON_USER_BOOKE |
2018 PPC_FEATURE_HAS_SPE_COMP |
2019 PPC_FEATURE_HAS_EFP_SINGLE_COMP |
2020 PPC_FEATURE_HAS_EFP_DOUBLE_COMP,
2021 .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS,
2025 .oprofile_cpu_type = "ppc/e500",
2026 .oprofile_type = PPC_OPROFILE_FSL_EMB,
2027 .cpu_setup = __setup_cpu_e500v2,
2028 .machine_check = machine_check_e500,
2029 .platform = "ppc8548",
2032 .pvr_mask = 0xffff0000,
2033 .pvr_value = 0x80230000,
2034 .cpu_name = "e500mc",
2035 .cpu_features = CPU_FTRS_E500MC,
2036 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
2037 .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS |
2042 .oprofile_cpu_type = "ppc/e500mc",
2043 .oprofile_type = PPC_OPROFILE_FSL_EMB,
2044 .cpu_setup = __setup_cpu_e500mc,
2045 .machine_check = machine_check_e500mc,
2046 .platform = "ppce500mc",
2048 #endif /* CONFIG_PPC32 */
2050 .pvr_mask = 0xffff0000,
2051 .pvr_value = 0x80240000,
2052 .cpu_name = "e5500",
2053 .cpu_features = CPU_FTRS_E5500,
2054 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
2055 .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS |
2060 .oprofile_cpu_type = "ppc/e500mc",
2061 .oprofile_type = PPC_OPROFILE_FSL_EMB,
2062 .cpu_setup = __setup_cpu_e5500,
2063 #ifndef CONFIG_PPC32
2064 .cpu_restore = __restore_cpu_e5500,
2066 .machine_check = machine_check_e500mc,
2067 .platform = "ppce5500",
2070 .pvr_mask = 0xffff0000,
2071 .pvr_value = 0x80400000,
2072 .cpu_name = "e6500",
2073 .cpu_features = CPU_FTRS_E6500,
2074 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU |
2075 PPC_FEATURE_HAS_ALTIVEC_COMP,
2076 .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS |
2081 .oprofile_cpu_type = "ppc/e6500",
2082 .oprofile_type = PPC_OPROFILE_FSL_EMB,
2083 .cpu_setup = __setup_cpu_e6500,
2084 #ifndef CONFIG_PPC32
2085 .cpu_restore = __restore_cpu_e6500,
2087 .machine_check = machine_check_e500mc,
2088 .platform = "ppce6500",
2091 { /* default match */
2092 .pvr_mask = 0x00000000,
2093 .pvr_value = 0x00000000,
2094 .cpu_name = "(generic E500 PPC)",
2095 .cpu_features = CPU_FTRS_E500,
2096 .cpu_user_features = COMMON_USER_BOOKE |
2097 PPC_FEATURE_HAS_SPE_COMP |
2098 PPC_FEATURE_HAS_EFP_SINGLE_COMP,
2099 .mmu_features = MMU_FTR_TYPE_FSL_E,
2102 .machine_check = machine_check_e500,
2103 .platform = "powerpc",
2105 #endif /* CONFIG_PPC32 */
2106 #endif /* CONFIG_E500 */
2108 #ifdef CONFIG_PPC_A2
2109 { /* Standard A2 (>= DD2) + FPU core */
2110 .pvr_mask = 0xffff0000,
2111 .pvr_value = 0x00480000,
2112 .cpu_name = "A2 (>= DD2)",
2113 .cpu_features = CPU_FTRS_A2,
2114 .cpu_user_features = COMMON_USER_PPC64,
2115 .mmu_features = MMU_FTRS_A2,
2119 .cpu_setup = __setup_cpu_a2,
2120 .cpu_restore = __restore_cpu_a2,
2121 .machine_check = machine_check_generic,
2122 .platform = "ppca2",
2124 { /* This is a default entry to get going, to be replaced by
2125 * a real one at some stage
2127 #define CPU_FTRS_BASE_BOOK3E (CPU_FTR_USE_TB | \
2128 CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_SMT | \
2129 CPU_FTR_NODSISRALIGN | CPU_FTR_NOEXECUTE)
2130 .pvr_mask = 0x00000000,
2131 .pvr_value = 0x00000000,
2132 .cpu_name = "Book3E",
2133 .cpu_features = CPU_FTRS_BASE_BOOK3E,
2134 .cpu_user_features = COMMON_USER_PPC64,
2135 .mmu_features = MMU_FTR_TYPE_3E | MMU_FTR_USE_TLBILX |
2136 MMU_FTR_USE_TLBIVAX_BCAST |
2137 MMU_FTR_LOCK_BCAST_INVAL,
2141 .machine_check = machine_check_generic,
2142 .platform = "power6",
2144 #endif /* CONFIG_PPC_A2 */
2147 static struct cpu_spec the_cpu_spec;
2149 static struct cpu_spec * __init setup_cpu_spec(unsigned long offset,
2152 struct cpu_spec *t = &the_cpu_spec;
2153 struct cpu_spec old;
2158 /* Copy everything, then do fixups */
2162 * If we are overriding a previous value derived from the real
2163 * PVR with a new value obtained using a logical PVR value,
2164 * don't modify the performance monitor fields.
2166 if (old.num_pmcs && !s->num_pmcs) {
2167 t->num_pmcs = old.num_pmcs;
2168 t->pmc_type = old.pmc_type;
2169 t->oprofile_type = old.oprofile_type;
2170 t->oprofile_mmcra_sihv = old.oprofile_mmcra_sihv;
2171 t->oprofile_mmcra_sipr = old.oprofile_mmcra_sipr;
2172 t->oprofile_mmcra_clear = old.oprofile_mmcra_clear;
2175 * If we have passed through this logic once before and
2176 * have pulled the default case because the real PVR was
2177 * not found inside cpu_specs[], then we are possibly
2178 * running in compatibility mode. In that case, let the
2179 * oprofiler know which set of compatibility counters to
2180 * pull from by making sure the oprofile_cpu_type string
2181 * is set to that of compatibility mode. If the
2182 * oprofile_cpu_type already has a value, then we are
2183 * possibly overriding a real PVR with a logical one,
2184 * and, in that case, keep the current value for
2185 * oprofile_cpu_type.
2187 if (old.oprofile_cpu_type != NULL) {
2188 t->oprofile_cpu_type = old.oprofile_cpu_type;
2189 t->oprofile_type = old.oprofile_type;
2193 *PTRRELOC(&cur_cpu_spec) = &the_cpu_spec;
2196 * Set the base platform string once; assumes
2197 * we're called with real pvr first.
2199 if (*PTRRELOC(&powerpc_base_platform) == NULL)
2200 *PTRRELOC(&powerpc_base_platform) = t->platform;
2202 #if defined(CONFIG_PPC64) || defined(CONFIG_BOOKE)
2203 /* ppc64 and booke expect identify_cpu to also call setup_cpu for
2204 * that processor. I will consolidate that at a later time, for now,
2205 * just use #ifdef. We also don't need to PTRRELOC the function
2206 * pointer on ppc64 and booke as we are running at 0 in real mode
2207 * on ppc64 and reloc_offset is always 0 on booke.
2210 t->cpu_setup(offset, t);
2212 #endif /* CONFIG_PPC64 || CONFIG_BOOKE */
2217 struct cpu_spec * __init identify_cpu(unsigned long offset, unsigned int pvr)
2219 struct cpu_spec *s = cpu_specs;
2224 for (i = 0; i < ARRAY_SIZE(cpu_specs); i++,s++) {
2225 if ((pvr & s->pvr_mask) == s->pvr_value)
2226 return setup_cpu_spec(offset, s);