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 __restore_cpu_e5500(void);
78 #endif /* CONFIG_E500 */
80 /* This table only contains "desktop" CPUs, it need to be filled with embedded
83 #define COMMON_USER (PPC_FEATURE_32 | PPC_FEATURE_HAS_FPU | \
85 #define COMMON_USER_PPC64 (COMMON_USER | PPC_FEATURE_64)
86 #define COMMON_USER_POWER4 (COMMON_USER_PPC64 | PPC_FEATURE_POWER4)
87 #define COMMON_USER_POWER5 (COMMON_USER_PPC64 | PPC_FEATURE_POWER5 |\
88 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
89 #define COMMON_USER_POWER5_PLUS (COMMON_USER_PPC64 | PPC_FEATURE_POWER5_PLUS|\
90 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
91 #define COMMON_USER_POWER6 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_05 |\
92 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \
93 PPC_FEATURE_TRUE_LE | \
94 PPC_FEATURE_PSERIES_PERFMON_COMPAT)
95 #define COMMON_USER_POWER7 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_06 |\
96 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \
97 PPC_FEATURE_TRUE_LE | \
98 PPC_FEATURE_PSERIES_PERFMON_COMPAT)
99 #define COMMON_USER_POWER8 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_06 |\
100 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \
101 PPC_FEATURE_TRUE_LE | \
102 PPC_FEATURE_PSERIES_PERFMON_COMPAT)
103 #define COMMON_USER_PA6T (COMMON_USER_PPC64 | PPC_FEATURE_PA6T |\
104 PPC_FEATURE_TRUE_LE | \
105 PPC_FEATURE_HAS_ALTIVEC_COMP)
106 #ifdef CONFIG_PPC_BOOK3E_64
107 #define COMMON_USER_BOOKE (COMMON_USER_PPC64 | PPC_FEATURE_BOOKE)
109 #define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \
113 static struct cpu_spec __initdata cpu_specs[] = {
114 #ifdef CONFIG_PPC_BOOK3S_64
116 .pvr_mask = 0xffff0000,
117 .pvr_value = 0x00400000,
118 .cpu_name = "POWER3 (630)",
119 .cpu_features = CPU_FTRS_POWER3,
120 .cpu_user_features = COMMON_USER_PPC64|PPC_FEATURE_PPC_LE,
121 .mmu_features = MMU_FTR_HPTE_TABLE,
125 .pmc_type = PPC_PMC_IBM,
126 .oprofile_cpu_type = "ppc64/power3",
127 .oprofile_type = PPC_OPROFILE_RS64,
128 .platform = "power3",
131 .pvr_mask = 0xffff0000,
132 .pvr_value = 0x00410000,
133 .cpu_name = "POWER3 (630+)",
134 .cpu_features = CPU_FTRS_POWER3,
135 .cpu_user_features = COMMON_USER_PPC64|PPC_FEATURE_PPC_LE,
136 .mmu_features = MMU_FTR_HPTE_TABLE,
140 .pmc_type = PPC_PMC_IBM,
141 .oprofile_cpu_type = "ppc64/power3",
142 .oprofile_type = PPC_OPROFILE_RS64,
143 .platform = "power3",
146 .pvr_mask = 0xffff0000,
147 .pvr_value = 0x00330000,
148 .cpu_name = "RS64-II (northstar)",
149 .cpu_features = CPU_FTRS_RS64,
150 .cpu_user_features = COMMON_USER_PPC64,
151 .mmu_features = MMU_FTR_HPTE_TABLE,
155 .pmc_type = PPC_PMC_IBM,
156 .oprofile_cpu_type = "ppc64/rs64",
157 .oprofile_type = PPC_OPROFILE_RS64,
161 .pvr_mask = 0xffff0000,
162 .pvr_value = 0x00340000,
163 .cpu_name = "RS64-III (pulsar)",
164 .cpu_features = CPU_FTRS_RS64,
165 .cpu_user_features = COMMON_USER_PPC64,
166 .mmu_features = MMU_FTR_HPTE_TABLE,
170 .pmc_type = PPC_PMC_IBM,
171 .oprofile_cpu_type = "ppc64/rs64",
172 .oprofile_type = PPC_OPROFILE_RS64,
176 .pvr_mask = 0xffff0000,
177 .pvr_value = 0x00360000,
178 .cpu_name = "RS64-III (icestar)",
179 .cpu_features = CPU_FTRS_RS64,
180 .cpu_user_features = COMMON_USER_PPC64,
181 .mmu_features = MMU_FTR_HPTE_TABLE,
185 .pmc_type = PPC_PMC_IBM,
186 .oprofile_cpu_type = "ppc64/rs64",
187 .oprofile_type = PPC_OPROFILE_RS64,
191 .pvr_mask = 0xffff0000,
192 .pvr_value = 0x00370000,
193 .cpu_name = "RS64-IV (sstar)",
194 .cpu_features = CPU_FTRS_RS64,
195 .cpu_user_features = COMMON_USER_PPC64,
196 .mmu_features = MMU_FTR_HPTE_TABLE,
200 .pmc_type = PPC_PMC_IBM,
201 .oprofile_cpu_type = "ppc64/rs64",
202 .oprofile_type = PPC_OPROFILE_RS64,
206 .pvr_mask = 0xffff0000,
207 .pvr_value = 0x00350000,
208 .cpu_name = "POWER4 (gp)",
209 .cpu_features = CPU_FTRS_POWER4,
210 .cpu_user_features = COMMON_USER_POWER4,
211 .mmu_features = MMU_FTRS_POWER4,
215 .pmc_type = PPC_PMC_IBM,
216 .oprofile_cpu_type = "ppc64/power4",
217 .oprofile_type = PPC_OPROFILE_POWER4,
218 .platform = "power4",
221 .pvr_mask = 0xffff0000,
222 .pvr_value = 0x00380000,
223 .cpu_name = "POWER4+ (gq)",
224 .cpu_features = CPU_FTRS_POWER4,
225 .cpu_user_features = COMMON_USER_POWER4,
226 .mmu_features = MMU_FTRS_POWER4,
230 .pmc_type = PPC_PMC_IBM,
231 .oprofile_cpu_type = "ppc64/power4",
232 .oprofile_type = PPC_OPROFILE_POWER4,
233 .platform = "power4",
236 .pvr_mask = 0xffff0000,
237 .pvr_value = 0x00390000,
238 .cpu_name = "PPC970",
239 .cpu_features = CPU_FTRS_PPC970,
240 .cpu_user_features = COMMON_USER_POWER4 |
241 PPC_FEATURE_HAS_ALTIVEC_COMP,
242 .mmu_features = MMU_FTRS_PPC970,
246 .pmc_type = PPC_PMC_IBM,
247 .cpu_setup = __setup_cpu_ppc970,
248 .cpu_restore = __restore_cpu_ppc970,
249 .oprofile_cpu_type = "ppc64/970",
250 .oprofile_type = PPC_OPROFILE_POWER4,
251 .platform = "ppc970",
254 .pvr_mask = 0xffff0000,
255 .pvr_value = 0x003c0000,
256 .cpu_name = "PPC970FX",
257 .cpu_features = CPU_FTRS_PPC970,
258 .cpu_user_features = COMMON_USER_POWER4 |
259 PPC_FEATURE_HAS_ALTIVEC_COMP,
260 .mmu_features = MMU_FTRS_PPC970,
264 .pmc_type = PPC_PMC_IBM,
265 .cpu_setup = __setup_cpu_ppc970,
266 .cpu_restore = __restore_cpu_ppc970,
267 .oprofile_cpu_type = "ppc64/970",
268 .oprofile_type = PPC_OPROFILE_POWER4,
269 .platform = "ppc970",
271 { /* PPC970MP DD1.0 - no DEEPNAP, use regular 970 init */
272 .pvr_mask = 0xffffffff,
273 .pvr_value = 0x00440100,
274 .cpu_name = "PPC970MP",
275 .cpu_features = CPU_FTRS_PPC970,
276 .cpu_user_features = COMMON_USER_POWER4 |
277 PPC_FEATURE_HAS_ALTIVEC_COMP,
278 .mmu_features = MMU_FTR_HPTE_TABLE,
282 .pmc_type = PPC_PMC_IBM,
283 .cpu_setup = __setup_cpu_ppc970,
284 .cpu_restore = __restore_cpu_ppc970,
285 .oprofile_cpu_type = "ppc64/970MP",
286 .oprofile_type = PPC_OPROFILE_POWER4,
287 .platform = "ppc970",
290 .pvr_mask = 0xffff0000,
291 .pvr_value = 0x00440000,
292 .cpu_name = "PPC970MP",
293 .cpu_features = CPU_FTRS_PPC970,
294 .cpu_user_features = COMMON_USER_POWER4 |
295 PPC_FEATURE_HAS_ALTIVEC_COMP,
296 .mmu_features = MMU_FTRS_PPC970,
300 .pmc_type = PPC_PMC_IBM,
301 .cpu_setup = __setup_cpu_ppc970MP,
302 .cpu_restore = __restore_cpu_ppc970,
303 .oprofile_cpu_type = "ppc64/970MP",
304 .oprofile_type = PPC_OPROFILE_POWER4,
305 .platform = "ppc970",
308 .pvr_mask = 0xffff0000,
309 .pvr_value = 0x00450000,
310 .cpu_name = "PPC970GX",
311 .cpu_features = CPU_FTRS_PPC970,
312 .cpu_user_features = COMMON_USER_POWER4 |
313 PPC_FEATURE_HAS_ALTIVEC_COMP,
314 .mmu_features = MMU_FTRS_PPC970,
318 .pmc_type = PPC_PMC_IBM,
319 .cpu_setup = __setup_cpu_ppc970,
320 .oprofile_cpu_type = "ppc64/970",
321 .oprofile_type = PPC_OPROFILE_POWER4,
322 .platform = "ppc970",
325 .pvr_mask = 0xffff0000,
326 .pvr_value = 0x003a0000,
327 .cpu_name = "POWER5 (gr)",
328 .cpu_features = CPU_FTRS_POWER5,
329 .cpu_user_features = COMMON_USER_POWER5,
330 .mmu_features = MMU_FTRS_POWER5,
334 .pmc_type = PPC_PMC_IBM,
335 .oprofile_cpu_type = "ppc64/power5",
336 .oprofile_type = PPC_OPROFILE_POWER4,
337 /* SIHV / SIPR bits are implemented on POWER4+ (GQ)
338 * and above but only works on POWER5 and above
340 .oprofile_mmcra_sihv = MMCRA_SIHV,
341 .oprofile_mmcra_sipr = MMCRA_SIPR,
342 .platform = "power5",
345 .pvr_mask = 0xffffff00,
346 .pvr_value = 0x003b0300,
347 .cpu_name = "POWER5+ (gs)",
348 .cpu_features = CPU_FTRS_POWER5,
349 .cpu_user_features = COMMON_USER_POWER5_PLUS,
350 .mmu_features = MMU_FTRS_POWER5,
354 .oprofile_cpu_type = "ppc64/power5++",
355 .oprofile_type = PPC_OPROFILE_POWER4,
356 .oprofile_mmcra_sihv = MMCRA_SIHV,
357 .oprofile_mmcra_sipr = MMCRA_SIPR,
358 .platform = "power5+",
361 .pvr_mask = 0xffff0000,
362 .pvr_value = 0x003b0000,
363 .cpu_name = "POWER5+ (gs)",
364 .cpu_features = CPU_FTRS_POWER5,
365 .cpu_user_features = COMMON_USER_POWER5_PLUS,
366 .mmu_features = MMU_FTRS_POWER5,
370 .pmc_type = PPC_PMC_IBM,
371 .oprofile_cpu_type = "ppc64/power5+",
372 .oprofile_type = PPC_OPROFILE_POWER4,
373 .oprofile_mmcra_sihv = MMCRA_SIHV,
374 .oprofile_mmcra_sipr = MMCRA_SIPR,
375 .platform = "power5+",
377 { /* POWER6 in P5+ mode; 2.04-compliant processor */
378 .pvr_mask = 0xffffffff,
379 .pvr_value = 0x0f000001,
380 .cpu_name = "POWER5+",
381 .cpu_features = CPU_FTRS_POWER5,
382 .cpu_user_features = COMMON_USER_POWER5_PLUS,
383 .mmu_features = MMU_FTRS_POWER5,
386 .oprofile_cpu_type = "ppc64/ibm-compat-v1",
387 .oprofile_type = PPC_OPROFILE_POWER4,
388 .platform = "power5+",
391 .pvr_mask = 0xffff0000,
392 .pvr_value = 0x003e0000,
393 .cpu_name = "POWER6 (raw)",
394 .cpu_features = CPU_FTRS_POWER6,
395 .cpu_user_features = COMMON_USER_POWER6 |
396 PPC_FEATURE_POWER6_EXT,
397 .mmu_features = MMU_FTRS_POWER6,
401 .pmc_type = PPC_PMC_IBM,
402 .oprofile_cpu_type = "ppc64/power6",
403 .oprofile_type = PPC_OPROFILE_POWER4,
404 .oprofile_mmcra_sihv = POWER6_MMCRA_SIHV,
405 .oprofile_mmcra_sipr = POWER6_MMCRA_SIPR,
406 .oprofile_mmcra_clear = POWER6_MMCRA_THRM |
408 .platform = "power6x",
410 { /* 2.05-compliant processor, i.e. Power6 "architected" mode */
411 .pvr_mask = 0xffffffff,
412 .pvr_value = 0x0f000002,
413 .cpu_name = "POWER6 (architected)",
414 .cpu_features = CPU_FTRS_POWER6,
415 .cpu_user_features = COMMON_USER_POWER6,
416 .mmu_features = MMU_FTRS_POWER6,
419 .oprofile_cpu_type = "ppc64/ibm-compat-v1",
420 .oprofile_type = PPC_OPROFILE_POWER4,
421 .platform = "power6",
423 { /* 2.06-compliant processor, i.e. Power7 "architected" mode */
424 .pvr_mask = 0xffffffff,
425 .pvr_value = 0x0f000003,
426 .cpu_name = "POWER7 (architected)",
427 .cpu_features = CPU_FTRS_POWER7,
428 .cpu_user_features = COMMON_USER_POWER7,
429 .mmu_features = MMU_FTRS_POWER7,
432 .oprofile_type = PPC_OPROFILE_POWER4,
433 .oprofile_cpu_type = "ppc64/ibm-compat-v1",
434 .cpu_setup = __setup_cpu_power7,
435 .cpu_restore = __restore_cpu_power7,
436 .platform = "power7",
439 .pvr_mask = 0xffff0000,
440 .pvr_value = 0x003f0000,
441 .cpu_name = "POWER7 (raw)",
442 .cpu_features = CPU_FTRS_POWER7,
443 .cpu_user_features = COMMON_USER_POWER7,
444 .mmu_features = MMU_FTRS_POWER7,
448 .pmc_type = PPC_PMC_IBM,
449 .oprofile_cpu_type = "ppc64/power7",
450 .oprofile_type = PPC_OPROFILE_POWER4,
451 .cpu_setup = __setup_cpu_power7,
452 .cpu_restore = __restore_cpu_power7,
453 .platform = "power7",
456 .pvr_mask = 0xffff0000,
457 .pvr_value = 0x004A0000,
458 .cpu_name = "POWER7+ (raw)",
459 .cpu_features = CPU_FTRS_POWER7,
460 .cpu_user_features = COMMON_USER_POWER7,
461 .mmu_features = MMU_FTRS_POWER7,
465 .pmc_type = PPC_PMC_IBM,
466 .oprofile_cpu_type = "ppc64/power7",
467 .oprofile_type = PPC_OPROFILE_POWER4,
468 .cpu_setup = __setup_cpu_power7,
469 .cpu_restore = __restore_cpu_power7,
470 .platform = "power7+",
473 .pvr_mask = 0xffff0000,
474 .pvr_value = 0x004b0000,
475 .cpu_name = "POWER8 (raw)",
476 .cpu_features = CPU_FTRS_POWER8,
477 .cpu_user_features = COMMON_USER_POWER8,
478 .mmu_features = MMU_FTRS_POWER8,
482 .pmc_type = PPC_PMC_IBM,
483 .oprofile_cpu_type = "ppc64/power8",
484 .oprofile_type = PPC_OPROFILE_POWER4,
485 .cpu_setup = __setup_cpu_power8,
486 .cpu_restore = __restore_cpu_power8,
487 .platform = "power8",
489 { /* Cell Broadband Engine */
490 .pvr_mask = 0xffff0000,
491 .pvr_value = 0x00700000,
492 .cpu_name = "Cell Broadband Engine",
493 .cpu_features = CPU_FTRS_CELL,
494 .cpu_user_features = COMMON_USER_PPC64 |
495 PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP |
497 .mmu_features = MMU_FTRS_CELL,
501 .pmc_type = PPC_PMC_IBM,
502 .oprofile_cpu_type = "ppc64/cell-be",
503 .oprofile_type = PPC_OPROFILE_CELL,
504 .platform = "ppc-cell-be",
507 .pvr_mask = 0x7fff0000,
508 .pvr_value = 0x00900000,
510 .cpu_features = CPU_FTRS_PA6T,
511 .cpu_user_features = COMMON_USER_PA6T,
512 .mmu_features = MMU_FTRS_PA6T,
516 .pmc_type = PPC_PMC_PA6T,
517 .cpu_setup = __setup_cpu_pa6t,
518 .cpu_restore = __restore_cpu_pa6t,
519 .oprofile_cpu_type = "ppc64/pa6t",
520 .oprofile_type = PPC_OPROFILE_PA6T,
523 { /* default match */
524 .pvr_mask = 0x00000000,
525 .pvr_value = 0x00000000,
526 .cpu_name = "POWER4 (compatible)",
527 .cpu_features = CPU_FTRS_COMPATIBLE,
528 .cpu_user_features = COMMON_USER_PPC64,
529 .mmu_features = MMU_FTRS_DEFAULT_HPTE_ARCH_V2,
533 .pmc_type = PPC_PMC_IBM,
534 .platform = "power4",
536 #endif /* CONFIG_PPC_BOOK3S_64 */
541 .pvr_mask = 0xffff0000,
542 .pvr_value = 0x00010000,
544 .cpu_features = CPU_FTRS_PPC601,
545 .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR |
546 PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB,
547 .mmu_features = MMU_FTR_HPTE_TABLE,
550 .machine_check = machine_check_generic,
551 .platform = "ppc601",
554 .pvr_mask = 0xffff0000,
555 .pvr_value = 0x00030000,
557 .cpu_features = CPU_FTRS_603,
558 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
562 .cpu_setup = __setup_cpu_603,
563 .machine_check = machine_check_generic,
564 .platform = "ppc603",
567 .pvr_mask = 0xffff0000,
568 .pvr_value = 0x00060000,
570 .cpu_features = CPU_FTRS_603,
571 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
575 .cpu_setup = __setup_cpu_603,
576 .machine_check = machine_check_generic,
577 .platform = "ppc603",
580 .pvr_mask = 0xffff0000,
581 .pvr_value = 0x00070000,
583 .cpu_features = CPU_FTRS_603,
584 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
588 .cpu_setup = __setup_cpu_603,
589 .machine_check = machine_check_generic,
590 .platform = "ppc603",
593 .pvr_mask = 0xffff0000,
594 .pvr_value = 0x00040000,
596 .cpu_features = CPU_FTRS_604,
597 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
598 .mmu_features = MMU_FTR_HPTE_TABLE,
602 .cpu_setup = __setup_cpu_604,
603 .machine_check = machine_check_generic,
604 .platform = "ppc604",
607 .pvr_mask = 0xfffff000,
608 .pvr_value = 0x00090000,
610 .cpu_features = CPU_FTRS_604,
611 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
612 .mmu_features = MMU_FTR_HPTE_TABLE,
616 .cpu_setup = __setup_cpu_604,
617 .machine_check = machine_check_generic,
618 .platform = "ppc604",
621 .pvr_mask = 0xffff0000,
622 .pvr_value = 0x00090000,
624 .cpu_features = CPU_FTRS_604,
625 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
626 .mmu_features = MMU_FTR_HPTE_TABLE,
630 .cpu_setup = __setup_cpu_604,
631 .machine_check = machine_check_generic,
632 .platform = "ppc604",
635 .pvr_mask = 0xffff0000,
636 .pvr_value = 0x000a0000,
638 .cpu_features = CPU_FTRS_604,
639 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
640 .mmu_features = MMU_FTR_HPTE_TABLE,
644 .cpu_setup = __setup_cpu_604,
645 .machine_check = machine_check_generic,
646 .platform = "ppc604",
648 { /* 740/750 (0x4202, don't support TAU ?) */
649 .pvr_mask = 0xffffffff,
650 .pvr_value = 0x00084202,
651 .cpu_name = "740/750",
652 .cpu_features = CPU_FTRS_740_NOTAU,
653 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
654 .mmu_features = MMU_FTR_HPTE_TABLE,
658 .cpu_setup = __setup_cpu_750,
659 .machine_check = machine_check_generic,
660 .platform = "ppc750",
662 { /* 750CX (80100 and 8010x?) */
663 .pvr_mask = 0xfffffff0,
664 .pvr_value = 0x00080100,
666 .cpu_features = CPU_FTRS_750,
667 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
668 .mmu_features = MMU_FTR_HPTE_TABLE,
672 .cpu_setup = __setup_cpu_750cx,
673 .machine_check = machine_check_generic,
674 .platform = "ppc750",
676 { /* 750CX (82201 and 82202) */
677 .pvr_mask = 0xfffffff0,
678 .pvr_value = 0x00082200,
680 .cpu_features = CPU_FTRS_750,
681 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
682 .mmu_features = MMU_FTR_HPTE_TABLE,
686 .pmc_type = PPC_PMC_IBM,
687 .cpu_setup = __setup_cpu_750cx,
688 .machine_check = machine_check_generic,
689 .platform = "ppc750",
691 { /* 750CXe (82214) */
692 .pvr_mask = 0xfffffff0,
693 .pvr_value = 0x00082210,
694 .cpu_name = "750CXe",
695 .cpu_features = CPU_FTRS_750,
696 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
697 .mmu_features = MMU_FTR_HPTE_TABLE,
701 .pmc_type = PPC_PMC_IBM,
702 .cpu_setup = __setup_cpu_750cx,
703 .machine_check = machine_check_generic,
704 .platform = "ppc750",
706 { /* 750CXe "Gekko" (83214) */
707 .pvr_mask = 0xffffffff,
708 .pvr_value = 0x00083214,
709 .cpu_name = "750CXe",
710 .cpu_features = CPU_FTRS_750,
711 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
712 .mmu_features = MMU_FTR_HPTE_TABLE,
716 .pmc_type = PPC_PMC_IBM,
717 .cpu_setup = __setup_cpu_750cx,
718 .machine_check = machine_check_generic,
719 .platform = "ppc750",
721 { /* 750CL (and "Broadway") */
722 .pvr_mask = 0xfffff0e0,
723 .pvr_value = 0x00087000,
725 .cpu_features = CPU_FTRS_750CL,
726 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
727 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
731 .pmc_type = PPC_PMC_IBM,
732 .cpu_setup = __setup_cpu_750,
733 .machine_check = machine_check_generic,
734 .platform = "ppc750",
735 .oprofile_cpu_type = "ppc/750",
736 .oprofile_type = PPC_OPROFILE_G4,
739 .pvr_mask = 0xfffff000,
740 .pvr_value = 0x00083000,
741 .cpu_name = "745/755",
742 .cpu_features = CPU_FTRS_750,
743 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
744 .mmu_features = MMU_FTR_HPTE_TABLE,
748 .pmc_type = PPC_PMC_IBM,
749 .cpu_setup = __setup_cpu_750,
750 .machine_check = machine_check_generic,
751 .platform = "ppc750",
753 { /* 750FX rev 1.x */
754 .pvr_mask = 0xffffff00,
755 .pvr_value = 0x70000100,
757 .cpu_features = CPU_FTRS_750FX1,
758 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
759 .mmu_features = MMU_FTR_HPTE_TABLE,
763 .pmc_type = PPC_PMC_IBM,
764 .cpu_setup = __setup_cpu_750,
765 .machine_check = machine_check_generic,
766 .platform = "ppc750",
767 .oprofile_cpu_type = "ppc/750",
768 .oprofile_type = PPC_OPROFILE_G4,
770 { /* 750FX rev 2.0 must disable HID0[DPM] */
771 .pvr_mask = 0xffffffff,
772 .pvr_value = 0x70000200,
774 .cpu_features = CPU_FTRS_750FX2,
775 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
776 .mmu_features = MMU_FTR_HPTE_TABLE,
780 .pmc_type = PPC_PMC_IBM,
781 .cpu_setup = __setup_cpu_750,
782 .machine_check = machine_check_generic,
783 .platform = "ppc750",
784 .oprofile_cpu_type = "ppc/750",
785 .oprofile_type = PPC_OPROFILE_G4,
787 { /* 750FX (All revs except 2.0) */
788 .pvr_mask = 0xffff0000,
789 .pvr_value = 0x70000000,
791 .cpu_features = CPU_FTRS_750FX,
792 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
793 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
797 .pmc_type = PPC_PMC_IBM,
798 .cpu_setup = __setup_cpu_750fx,
799 .machine_check = machine_check_generic,
800 .platform = "ppc750",
801 .oprofile_cpu_type = "ppc/750",
802 .oprofile_type = PPC_OPROFILE_G4,
805 .pvr_mask = 0xffff0000,
806 .pvr_value = 0x70020000,
808 .cpu_features = CPU_FTRS_750GX,
809 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
810 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
814 .pmc_type = PPC_PMC_IBM,
815 .cpu_setup = __setup_cpu_750fx,
816 .machine_check = machine_check_generic,
817 .platform = "ppc750",
818 .oprofile_cpu_type = "ppc/750",
819 .oprofile_type = PPC_OPROFILE_G4,
821 { /* 740/750 (L2CR bit need fixup for 740) */
822 .pvr_mask = 0xffff0000,
823 .pvr_value = 0x00080000,
824 .cpu_name = "740/750",
825 .cpu_features = CPU_FTRS_740,
826 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
827 .mmu_features = MMU_FTR_HPTE_TABLE,
831 .pmc_type = PPC_PMC_IBM,
832 .cpu_setup = __setup_cpu_750,
833 .machine_check = machine_check_generic,
834 .platform = "ppc750",
836 { /* 7400 rev 1.1 ? (no TAU) */
837 .pvr_mask = 0xffffffff,
838 .pvr_value = 0x000c1101,
839 .cpu_name = "7400 (1.1)",
840 .cpu_features = CPU_FTRS_7400_NOTAU,
841 .cpu_user_features = COMMON_USER |
842 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
843 .mmu_features = MMU_FTR_HPTE_TABLE,
847 .pmc_type = PPC_PMC_G4,
848 .cpu_setup = __setup_cpu_7400,
849 .machine_check = machine_check_generic,
850 .platform = "ppc7400",
853 .pvr_mask = 0xffff0000,
854 .pvr_value = 0x000c0000,
856 .cpu_features = CPU_FTRS_7400,
857 .cpu_user_features = COMMON_USER |
858 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
859 .mmu_features = MMU_FTR_HPTE_TABLE,
863 .pmc_type = PPC_PMC_G4,
864 .cpu_setup = __setup_cpu_7400,
865 .machine_check = machine_check_generic,
866 .platform = "ppc7400",
869 .pvr_mask = 0xffff0000,
870 .pvr_value = 0x800c0000,
872 .cpu_features = CPU_FTRS_7400,
873 .cpu_user_features = COMMON_USER |
874 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
875 .mmu_features = MMU_FTR_HPTE_TABLE,
879 .pmc_type = PPC_PMC_G4,
880 .cpu_setup = __setup_cpu_7410,
881 .machine_check = machine_check_generic,
882 .platform = "ppc7400",
884 { /* 7450 2.0 - no doze/nap */
885 .pvr_mask = 0xffffffff,
886 .pvr_value = 0x80000200,
888 .cpu_features = CPU_FTRS_7450_20,
889 .cpu_user_features = COMMON_USER |
890 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
891 .mmu_features = MMU_FTR_HPTE_TABLE,
895 .pmc_type = PPC_PMC_G4,
896 .cpu_setup = __setup_cpu_745x,
897 .oprofile_cpu_type = "ppc/7450",
898 .oprofile_type = PPC_OPROFILE_G4,
899 .machine_check = machine_check_generic,
900 .platform = "ppc7450",
903 .pvr_mask = 0xffffffff,
904 .pvr_value = 0x80000201,
906 .cpu_features = CPU_FTRS_7450_21,
907 .cpu_user_features = COMMON_USER |
908 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
909 .mmu_features = MMU_FTR_HPTE_TABLE,
913 .pmc_type = PPC_PMC_G4,
914 .cpu_setup = __setup_cpu_745x,
915 .oprofile_cpu_type = "ppc/7450",
916 .oprofile_type = PPC_OPROFILE_G4,
917 .machine_check = machine_check_generic,
918 .platform = "ppc7450",
920 { /* 7450 2.3 and newer */
921 .pvr_mask = 0xffff0000,
922 .pvr_value = 0x80000000,
924 .cpu_features = CPU_FTRS_7450_23,
925 .cpu_user_features = COMMON_USER |
926 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
927 .mmu_features = MMU_FTR_HPTE_TABLE,
931 .pmc_type = PPC_PMC_G4,
932 .cpu_setup = __setup_cpu_745x,
933 .oprofile_cpu_type = "ppc/7450",
934 .oprofile_type = PPC_OPROFILE_G4,
935 .machine_check = machine_check_generic,
936 .platform = "ppc7450",
939 .pvr_mask = 0xffffff00,
940 .pvr_value = 0x80010100,
942 .cpu_features = CPU_FTRS_7455_1,
943 .cpu_user_features = COMMON_USER |
944 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
945 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
949 .pmc_type = PPC_PMC_G4,
950 .cpu_setup = __setup_cpu_745x,
951 .oprofile_cpu_type = "ppc/7450",
952 .oprofile_type = PPC_OPROFILE_G4,
953 .machine_check = machine_check_generic,
954 .platform = "ppc7450",
957 .pvr_mask = 0xffffffff,
958 .pvr_value = 0x80010200,
960 .cpu_features = CPU_FTRS_7455_20,
961 .cpu_user_features = COMMON_USER |
962 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
963 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
967 .pmc_type = PPC_PMC_G4,
968 .cpu_setup = __setup_cpu_745x,
969 .oprofile_cpu_type = "ppc/7450",
970 .oprofile_type = PPC_OPROFILE_G4,
971 .machine_check = machine_check_generic,
972 .platform = "ppc7450",
975 .pvr_mask = 0xffff0000,
976 .pvr_value = 0x80010000,
978 .cpu_features = CPU_FTRS_7455,
979 .cpu_user_features = COMMON_USER |
980 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
981 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
985 .pmc_type = PPC_PMC_G4,
986 .cpu_setup = __setup_cpu_745x,
987 .oprofile_cpu_type = "ppc/7450",
988 .oprofile_type = PPC_OPROFILE_G4,
989 .machine_check = machine_check_generic,
990 .platform = "ppc7450",
992 { /* 7447/7457 Rev 1.0 */
993 .pvr_mask = 0xffffffff,
994 .pvr_value = 0x80020100,
995 .cpu_name = "7447/7457",
996 .cpu_features = CPU_FTRS_7447_10,
997 .cpu_user_features = COMMON_USER |
998 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
999 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
1003 .pmc_type = PPC_PMC_G4,
1004 .cpu_setup = __setup_cpu_745x,
1005 .oprofile_cpu_type = "ppc/7450",
1006 .oprofile_type = PPC_OPROFILE_G4,
1007 .machine_check = machine_check_generic,
1008 .platform = "ppc7450",
1010 { /* 7447/7457 Rev 1.1 */
1011 .pvr_mask = 0xffffffff,
1012 .pvr_value = 0x80020101,
1013 .cpu_name = "7447/7457",
1014 .cpu_features = CPU_FTRS_7447_10,
1015 .cpu_user_features = COMMON_USER |
1016 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
1017 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
1021 .pmc_type = PPC_PMC_G4,
1022 .cpu_setup = __setup_cpu_745x,
1023 .oprofile_cpu_type = "ppc/7450",
1024 .oprofile_type = PPC_OPROFILE_G4,
1025 .machine_check = machine_check_generic,
1026 .platform = "ppc7450",
1028 { /* 7447/7457 Rev 1.2 and later */
1029 .pvr_mask = 0xffff0000,
1030 .pvr_value = 0x80020000,
1031 .cpu_name = "7447/7457",
1032 .cpu_features = CPU_FTRS_7447,
1033 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
1034 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
1038 .pmc_type = PPC_PMC_G4,
1039 .cpu_setup = __setup_cpu_745x,
1040 .oprofile_cpu_type = "ppc/7450",
1041 .oprofile_type = PPC_OPROFILE_G4,
1042 .machine_check = machine_check_generic,
1043 .platform = "ppc7450",
1046 .pvr_mask = 0xffff0000,
1047 .pvr_value = 0x80030000,
1048 .cpu_name = "7447A",
1049 .cpu_features = CPU_FTRS_7447A,
1050 .cpu_user_features = COMMON_USER |
1051 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
1052 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
1056 .pmc_type = PPC_PMC_G4,
1057 .cpu_setup = __setup_cpu_745x,
1058 .oprofile_cpu_type = "ppc/7450",
1059 .oprofile_type = PPC_OPROFILE_G4,
1060 .machine_check = machine_check_generic,
1061 .platform = "ppc7450",
1064 .pvr_mask = 0xffff0000,
1065 .pvr_value = 0x80040000,
1067 .cpu_features = CPU_FTRS_7448,
1068 .cpu_user_features = COMMON_USER |
1069 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
1070 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
1074 .pmc_type = PPC_PMC_G4,
1075 .cpu_setup = __setup_cpu_745x,
1076 .oprofile_cpu_type = "ppc/7450",
1077 .oprofile_type = PPC_OPROFILE_G4,
1078 .machine_check = machine_check_generic,
1079 .platform = "ppc7450",
1081 { /* 82xx (8240, 8245, 8260 are all 603e cores) */
1082 .pvr_mask = 0x7fff0000,
1083 .pvr_value = 0x00810000,
1085 .cpu_features = CPU_FTRS_82XX,
1086 .cpu_user_features = COMMON_USER,
1090 .cpu_setup = __setup_cpu_603,
1091 .machine_check = machine_check_generic,
1092 .platform = "ppc603",
1094 { /* All G2_LE (603e core, plus some) have the same pvr */
1095 .pvr_mask = 0x7fff0000,
1096 .pvr_value = 0x00820000,
1097 .cpu_name = "G2_LE",
1098 .cpu_features = CPU_FTRS_G2_LE,
1099 .cpu_user_features = COMMON_USER,
1100 .mmu_features = MMU_FTR_USE_HIGH_BATS,
1103 .cpu_setup = __setup_cpu_603,
1104 .machine_check = machine_check_generic,
1105 .platform = "ppc603",
1107 { /* e300c1 (a 603e core, plus some) on 83xx */
1108 .pvr_mask = 0x7fff0000,
1109 .pvr_value = 0x00830000,
1110 .cpu_name = "e300c1",
1111 .cpu_features = CPU_FTRS_E300,
1112 .cpu_user_features = COMMON_USER,
1113 .mmu_features = MMU_FTR_USE_HIGH_BATS,
1116 .cpu_setup = __setup_cpu_603,
1117 .machine_check = machine_check_generic,
1118 .platform = "ppc603",
1120 { /* e300c2 (an e300c1 core, plus some, minus FPU) on 83xx */
1121 .pvr_mask = 0x7fff0000,
1122 .pvr_value = 0x00840000,
1123 .cpu_name = "e300c2",
1124 .cpu_features = CPU_FTRS_E300C2,
1125 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
1126 .mmu_features = MMU_FTR_USE_HIGH_BATS |
1127 MMU_FTR_NEED_DTLB_SW_LRU,
1130 .cpu_setup = __setup_cpu_603,
1131 .machine_check = machine_check_generic,
1132 .platform = "ppc603",
1134 { /* e300c3 (e300c1, plus one IU, half cache size) on 83xx */
1135 .pvr_mask = 0x7fff0000,
1136 .pvr_value = 0x00850000,
1137 .cpu_name = "e300c3",
1138 .cpu_features = CPU_FTRS_E300,
1139 .cpu_user_features = COMMON_USER,
1140 .mmu_features = MMU_FTR_USE_HIGH_BATS |
1141 MMU_FTR_NEED_DTLB_SW_LRU,
1144 .cpu_setup = __setup_cpu_603,
1146 .oprofile_cpu_type = "ppc/e300",
1147 .oprofile_type = PPC_OPROFILE_FSL_EMB,
1148 .platform = "ppc603",
1150 { /* e300c4 (e300c1, plus one IU) */
1151 .pvr_mask = 0x7fff0000,
1152 .pvr_value = 0x00860000,
1153 .cpu_name = "e300c4",
1154 .cpu_features = CPU_FTRS_E300,
1155 .cpu_user_features = COMMON_USER,
1156 .mmu_features = MMU_FTR_USE_HIGH_BATS |
1157 MMU_FTR_NEED_DTLB_SW_LRU,
1160 .cpu_setup = __setup_cpu_603,
1161 .machine_check = machine_check_generic,
1163 .oprofile_cpu_type = "ppc/e300",
1164 .oprofile_type = PPC_OPROFILE_FSL_EMB,
1165 .platform = "ppc603",
1167 { /* default match, we assume split I/D cache & TB (non-601)... */
1168 .pvr_mask = 0x00000000,
1169 .pvr_value = 0x00000000,
1170 .cpu_name = "(generic PPC)",
1171 .cpu_features = CPU_FTRS_CLASSIC32,
1172 .cpu_user_features = COMMON_USER,
1173 .mmu_features = MMU_FTR_HPTE_TABLE,
1176 .machine_check = machine_check_generic,
1177 .platform = "ppc603",
1179 #endif /* CLASSIC_PPC */
1182 .pvr_mask = 0xffff0000,
1183 .pvr_value = 0x00500000,
1185 /* CPU_FTR_MAYBE_CAN_DOZE is possible,
1186 * if the 8xx code is there.... */
1187 .cpu_features = CPU_FTRS_8XX,
1188 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
1189 .mmu_features = MMU_FTR_TYPE_8xx,
1192 .platform = "ppc823",
1194 #endif /* CONFIG_8xx */
1197 .pvr_mask = 0xffffff00,
1198 .pvr_value = 0x00200200,
1199 .cpu_name = "403GC",
1200 .cpu_features = CPU_FTRS_40X,
1201 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
1202 .mmu_features = MMU_FTR_TYPE_40x,
1205 .machine_check = machine_check_4xx,
1206 .platform = "ppc403",
1209 .pvr_mask = 0xffffff00,
1210 .pvr_value = 0x00201400,
1211 .cpu_name = "403GCX",
1212 .cpu_features = CPU_FTRS_40X,
1213 .cpu_user_features = PPC_FEATURE_32 |
1214 PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB,
1215 .mmu_features = MMU_FTR_TYPE_40x,
1218 .machine_check = machine_check_4xx,
1219 .platform = "ppc403",
1222 .pvr_mask = 0xffff0000,
1223 .pvr_value = 0x00200000,
1224 .cpu_name = "403G ??",
1225 .cpu_features = CPU_FTRS_40X,
1226 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
1227 .mmu_features = MMU_FTR_TYPE_40x,
1230 .machine_check = machine_check_4xx,
1231 .platform = "ppc403",
1234 .pvr_mask = 0xffff0000,
1235 .pvr_value = 0x40110000,
1236 .cpu_name = "405GP",
1237 .cpu_features = CPU_FTRS_40X,
1238 .cpu_user_features = PPC_FEATURE_32 |
1239 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1240 .mmu_features = MMU_FTR_TYPE_40x,
1243 .machine_check = machine_check_4xx,
1244 .platform = "ppc405",
1247 .pvr_mask = 0xffff0000,
1248 .pvr_value = 0x40130000,
1249 .cpu_name = "STB03xxx",
1250 .cpu_features = CPU_FTRS_40X,
1251 .cpu_user_features = PPC_FEATURE_32 |
1252 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1253 .mmu_features = MMU_FTR_TYPE_40x,
1256 .machine_check = machine_check_4xx,
1257 .platform = "ppc405",
1260 .pvr_mask = 0xffff0000,
1261 .pvr_value = 0x41810000,
1262 .cpu_name = "STB04xxx",
1263 .cpu_features = CPU_FTRS_40X,
1264 .cpu_user_features = PPC_FEATURE_32 |
1265 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1266 .mmu_features = MMU_FTR_TYPE_40x,
1269 .machine_check = machine_check_4xx,
1270 .platform = "ppc405",
1273 .pvr_mask = 0xffff0000,
1274 .pvr_value = 0x41610000,
1275 .cpu_name = "NP405L",
1276 .cpu_features = CPU_FTRS_40X,
1277 .cpu_user_features = PPC_FEATURE_32 |
1278 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1279 .mmu_features = MMU_FTR_TYPE_40x,
1282 .machine_check = machine_check_4xx,
1283 .platform = "ppc405",
1286 .pvr_mask = 0xffff0000,
1287 .pvr_value = 0x40B10000,
1288 .cpu_name = "NP4GS3",
1289 .cpu_features = CPU_FTRS_40X,
1290 .cpu_user_features = PPC_FEATURE_32 |
1291 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1292 .mmu_features = MMU_FTR_TYPE_40x,
1295 .machine_check = machine_check_4xx,
1296 .platform = "ppc405",
1299 .pvr_mask = 0xffff0000,
1300 .pvr_value = 0x41410000,
1301 .cpu_name = "NP405H",
1302 .cpu_features = CPU_FTRS_40X,
1303 .cpu_user_features = PPC_FEATURE_32 |
1304 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1305 .mmu_features = MMU_FTR_TYPE_40x,
1308 .machine_check = machine_check_4xx,
1309 .platform = "ppc405",
1312 .pvr_mask = 0xffff0000,
1313 .pvr_value = 0x50910000,
1314 .cpu_name = "405GPr",
1315 .cpu_features = CPU_FTRS_40X,
1316 .cpu_user_features = PPC_FEATURE_32 |
1317 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1318 .mmu_features = MMU_FTR_TYPE_40x,
1321 .machine_check = machine_check_4xx,
1322 .platform = "ppc405",
1325 .pvr_mask = 0xffff0000,
1326 .pvr_value = 0x51510000,
1327 .cpu_name = "STBx25xx",
1328 .cpu_features = CPU_FTRS_40X,
1329 .cpu_user_features = PPC_FEATURE_32 |
1330 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1331 .mmu_features = MMU_FTR_TYPE_40x,
1334 .machine_check = machine_check_4xx,
1335 .platform = "ppc405",
1338 .pvr_mask = 0xffff0000,
1339 .pvr_value = 0x41F10000,
1340 .cpu_name = "405LP",
1341 .cpu_features = CPU_FTRS_40X,
1342 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
1343 .mmu_features = MMU_FTR_TYPE_40x,
1346 .machine_check = machine_check_4xx,
1347 .platform = "ppc405",
1349 { /* Xilinx Virtex-II Pro */
1350 .pvr_mask = 0xfffff000,
1351 .pvr_value = 0x20010000,
1352 .cpu_name = "Virtex-II Pro",
1353 .cpu_features = CPU_FTRS_40X,
1354 .cpu_user_features = PPC_FEATURE_32 |
1355 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1356 .mmu_features = MMU_FTR_TYPE_40x,
1359 .machine_check = machine_check_4xx,
1360 .platform = "ppc405",
1362 { /* Xilinx Virtex-4 FX */
1363 .pvr_mask = 0xfffff000,
1364 .pvr_value = 0x20011000,
1365 .cpu_name = "Virtex-4 FX",
1366 .cpu_features = CPU_FTRS_40X,
1367 .cpu_user_features = PPC_FEATURE_32 |
1368 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1369 .mmu_features = MMU_FTR_TYPE_40x,
1372 .machine_check = machine_check_4xx,
1373 .platform = "ppc405",
1376 .pvr_mask = 0xffff0000,
1377 .pvr_value = 0x51210000,
1378 .cpu_name = "405EP",
1379 .cpu_features = CPU_FTRS_40X,
1380 .cpu_user_features = PPC_FEATURE_32 |
1381 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1382 .mmu_features = MMU_FTR_TYPE_40x,
1385 .machine_check = machine_check_4xx,
1386 .platform = "ppc405",
1388 { /* 405EX Rev. A/B with Security */
1389 .pvr_mask = 0xffff000f,
1390 .pvr_value = 0x12910007,
1391 .cpu_name = "405EX Rev. A/B",
1392 .cpu_features = CPU_FTRS_40X,
1393 .cpu_user_features = PPC_FEATURE_32 |
1394 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1395 .mmu_features = MMU_FTR_TYPE_40x,
1398 .machine_check = machine_check_4xx,
1399 .platform = "ppc405",
1401 { /* 405EX Rev. C without Security */
1402 .pvr_mask = 0xffff000f,
1403 .pvr_value = 0x1291000d,
1404 .cpu_name = "405EX Rev. C",
1405 .cpu_features = CPU_FTRS_40X,
1406 .cpu_user_features = PPC_FEATURE_32 |
1407 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1408 .mmu_features = MMU_FTR_TYPE_40x,
1411 .machine_check = machine_check_4xx,
1412 .platform = "ppc405",
1414 { /* 405EX Rev. C with Security */
1415 .pvr_mask = 0xffff000f,
1416 .pvr_value = 0x1291000f,
1417 .cpu_name = "405EX Rev. C",
1418 .cpu_features = CPU_FTRS_40X,
1419 .cpu_user_features = PPC_FEATURE_32 |
1420 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1421 .mmu_features = MMU_FTR_TYPE_40x,
1424 .machine_check = machine_check_4xx,
1425 .platform = "ppc405",
1427 { /* 405EX Rev. D without Security */
1428 .pvr_mask = 0xffff000f,
1429 .pvr_value = 0x12910003,
1430 .cpu_name = "405EX Rev. D",
1431 .cpu_features = CPU_FTRS_40X,
1432 .cpu_user_features = PPC_FEATURE_32 |
1433 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1434 .mmu_features = MMU_FTR_TYPE_40x,
1437 .machine_check = machine_check_4xx,
1438 .platform = "ppc405",
1440 { /* 405EX Rev. D with Security */
1441 .pvr_mask = 0xffff000f,
1442 .pvr_value = 0x12910005,
1443 .cpu_name = "405EX Rev. D",
1444 .cpu_features = CPU_FTRS_40X,
1445 .cpu_user_features = PPC_FEATURE_32 |
1446 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1447 .mmu_features = MMU_FTR_TYPE_40x,
1450 .machine_check = machine_check_4xx,
1451 .platform = "ppc405",
1453 { /* 405EXr Rev. A/B without Security */
1454 .pvr_mask = 0xffff000f,
1455 .pvr_value = 0x12910001,
1456 .cpu_name = "405EXr Rev. A/B",
1457 .cpu_features = CPU_FTRS_40X,
1458 .cpu_user_features = PPC_FEATURE_32 |
1459 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1460 .mmu_features = MMU_FTR_TYPE_40x,
1463 .machine_check = machine_check_4xx,
1464 .platform = "ppc405",
1466 { /* 405EXr Rev. C without Security */
1467 .pvr_mask = 0xffff000f,
1468 .pvr_value = 0x12910009,
1469 .cpu_name = "405EXr Rev. C",
1470 .cpu_features = CPU_FTRS_40X,
1471 .cpu_user_features = PPC_FEATURE_32 |
1472 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1473 .mmu_features = MMU_FTR_TYPE_40x,
1476 .machine_check = machine_check_4xx,
1477 .platform = "ppc405",
1479 { /* 405EXr Rev. C with Security */
1480 .pvr_mask = 0xffff000f,
1481 .pvr_value = 0x1291000b,
1482 .cpu_name = "405EXr Rev. C",
1483 .cpu_features = CPU_FTRS_40X,
1484 .cpu_user_features = PPC_FEATURE_32 |
1485 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1486 .mmu_features = MMU_FTR_TYPE_40x,
1489 .machine_check = machine_check_4xx,
1490 .platform = "ppc405",
1492 { /* 405EXr Rev. D without Security */
1493 .pvr_mask = 0xffff000f,
1494 .pvr_value = 0x12910000,
1495 .cpu_name = "405EXr Rev. D",
1496 .cpu_features = CPU_FTRS_40X,
1497 .cpu_user_features = PPC_FEATURE_32 |
1498 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1499 .mmu_features = MMU_FTR_TYPE_40x,
1502 .machine_check = machine_check_4xx,
1503 .platform = "ppc405",
1505 { /* 405EXr Rev. D with Security */
1506 .pvr_mask = 0xffff000f,
1507 .pvr_value = 0x12910002,
1508 .cpu_name = "405EXr Rev. D",
1509 .cpu_features = CPU_FTRS_40X,
1510 .cpu_user_features = PPC_FEATURE_32 |
1511 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1512 .mmu_features = MMU_FTR_TYPE_40x,
1515 .machine_check = machine_check_4xx,
1516 .platform = "ppc405",
1520 .pvr_mask = 0xffff0000,
1521 .pvr_value = 0x41510000,
1522 .cpu_name = "405EZ",
1523 .cpu_features = CPU_FTRS_40X,
1524 .cpu_user_features = PPC_FEATURE_32 |
1525 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1526 .mmu_features = MMU_FTR_TYPE_40x,
1529 .machine_check = machine_check_4xx,
1530 .platform = "ppc405",
1533 .pvr_mask = 0xffff0000,
1534 .pvr_value = 0x7ff11432,
1535 .cpu_name = "APM8018X",
1536 .cpu_features = CPU_FTRS_40X,
1537 .cpu_user_features = PPC_FEATURE_32 |
1538 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1539 .mmu_features = MMU_FTR_TYPE_40x,
1542 .machine_check = machine_check_4xx,
1543 .platform = "ppc405",
1545 { /* default match */
1546 .pvr_mask = 0x00000000,
1547 .pvr_value = 0x00000000,
1548 .cpu_name = "(generic 40x PPC)",
1549 .cpu_features = CPU_FTRS_40X,
1550 .cpu_user_features = PPC_FEATURE_32 |
1551 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1552 .mmu_features = MMU_FTR_TYPE_40x,
1555 .machine_check = machine_check_4xx,
1556 .platform = "ppc405",
1559 #endif /* CONFIG_40x */
1562 .pvr_mask = 0xf0000fff,
1563 .pvr_value = 0x40000850,
1564 .cpu_name = "440GR Rev. A",
1565 .cpu_features = CPU_FTRS_44X,
1566 .cpu_user_features = COMMON_USER_BOOKE,
1567 .mmu_features = MMU_FTR_TYPE_44x,
1570 .machine_check = machine_check_4xx,
1571 .platform = "ppc440",
1573 { /* Use logical PVR for 440EP (logical pvr = pvr | 0x8) */
1574 .pvr_mask = 0xf0000fff,
1575 .pvr_value = 0x40000858,
1576 .cpu_name = "440EP Rev. A",
1577 .cpu_features = CPU_FTRS_44X,
1578 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
1579 .mmu_features = MMU_FTR_TYPE_44x,
1582 .cpu_setup = __setup_cpu_440ep,
1583 .machine_check = machine_check_4xx,
1584 .platform = "ppc440",
1587 .pvr_mask = 0xf0000fff,
1588 .pvr_value = 0x400008d3,
1589 .cpu_name = "440GR Rev. B",
1590 .cpu_features = CPU_FTRS_44X,
1591 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
1592 .mmu_features = MMU_FTR_TYPE_44x,
1595 .machine_check = machine_check_4xx,
1596 .platform = "ppc440",
1598 { /* Matches both physical and logical PVR for 440EP (logical pvr = pvr | 0x8) */
1599 .pvr_mask = 0xf0000ff7,
1600 .pvr_value = 0x400008d4,
1601 .cpu_name = "440EP Rev. C",
1602 .cpu_features = CPU_FTRS_44X,
1603 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
1604 .mmu_features = MMU_FTR_TYPE_44x,
1607 .cpu_setup = __setup_cpu_440ep,
1608 .machine_check = machine_check_4xx,
1609 .platform = "ppc440",
1611 { /* Use logical PVR for 440EP (logical pvr = pvr | 0x8) */
1612 .pvr_mask = 0xf0000fff,
1613 .pvr_value = 0x400008db,
1614 .cpu_name = "440EP Rev. B",
1615 .cpu_features = CPU_FTRS_44X,
1616 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
1617 .mmu_features = MMU_FTR_TYPE_44x,
1620 .cpu_setup = __setup_cpu_440ep,
1621 .machine_check = machine_check_4xx,
1622 .platform = "ppc440",
1625 .pvr_mask = 0xf0000ffb,
1626 .pvr_value = 0x200008D0,
1627 .cpu_name = "440GRX",
1628 .cpu_features = CPU_FTRS_44X,
1629 .cpu_user_features = COMMON_USER_BOOKE,
1630 .mmu_features = MMU_FTR_TYPE_44x,
1633 .cpu_setup = __setup_cpu_440grx,
1634 .machine_check = machine_check_440A,
1635 .platform = "ppc440",
1637 { /* Use logical PVR for 440EPx (logical pvr = pvr | 0x8) */
1638 .pvr_mask = 0xf0000ffb,
1639 .pvr_value = 0x200008D8,
1640 .cpu_name = "440EPX",
1641 .cpu_features = CPU_FTRS_44X,
1642 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
1643 .mmu_features = MMU_FTR_TYPE_44x,
1646 .cpu_setup = __setup_cpu_440epx,
1647 .machine_check = machine_check_440A,
1648 .platform = "ppc440",
1650 { /* 440GP Rev. B */
1651 .pvr_mask = 0xf0000fff,
1652 .pvr_value = 0x40000440,
1653 .cpu_name = "440GP Rev. B",
1654 .cpu_features = CPU_FTRS_44X,
1655 .cpu_user_features = COMMON_USER_BOOKE,
1656 .mmu_features = MMU_FTR_TYPE_44x,
1659 .machine_check = machine_check_4xx,
1660 .platform = "ppc440gp",
1662 { /* 440GP Rev. C */
1663 .pvr_mask = 0xf0000fff,
1664 .pvr_value = 0x40000481,
1665 .cpu_name = "440GP Rev. C",
1666 .cpu_features = CPU_FTRS_44X,
1667 .cpu_user_features = COMMON_USER_BOOKE,
1668 .mmu_features = MMU_FTR_TYPE_44x,
1671 .machine_check = machine_check_4xx,
1672 .platform = "ppc440gp",
1674 { /* 440GX Rev. A */
1675 .pvr_mask = 0xf0000fff,
1676 .pvr_value = 0x50000850,
1677 .cpu_name = "440GX Rev. A",
1678 .cpu_features = CPU_FTRS_44X,
1679 .cpu_user_features = COMMON_USER_BOOKE,
1680 .mmu_features = MMU_FTR_TYPE_44x,
1683 .cpu_setup = __setup_cpu_440gx,
1684 .machine_check = machine_check_440A,
1685 .platform = "ppc440",
1687 { /* 440GX Rev. B */
1688 .pvr_mask = 0xf0000fff,
1689 .pvr_value = 0x50000851,
1690 .cpu_name = "440GX Rev. B",
1691 .cpu_features = CPU_FTRS_44X,
1692 .cpu_user_features = COMMON_USER_BOOKE,
1693 .mmu_features = MMU_FTR_TYPE_44x,
1696 .cpu_setup = __setup_cpu_440gx,
1697 .machine_check = machine_check_440A,
1698 .platform = "ppc440",
1700 { /* 440GX Rev. C */
1701 .pvr_mask = 0xf0000fff,
1702 .pvr_value = 0x50000892,
1703 .cpu_name = "440GX Rev. C",
1704 .cpu_features = CPU_FTRS_44X,
1705 .cpu_user_features = COMMON_USER_BOOKE,
1706 .mmu_features = MMU_FTR_TYPE_44x,
1709 .cpu_setup = __setup_cpu_440gx,
1710 .machine_check = machine_check_440A,
1711 .platform = "ppc440",
1713 { /* 440GX Rev. F */
1714 .pvr_mask = 0xf0000fff,
1715 .pvr_value = 0x50000894,
1716 .cpu_name = "440GX Rev. F",
1717 .cpu_features = CPU_FTRS_44X,
1718 .cpu_user_features = COMMON_USER_BOOKE,
1719 .mmu_features = MMU_FTR_TYPE_44x,
1722 .cpu_setup = __setup_cpu_440gx,
1723 .machine_check = machine_check_440A,
1724 .platform = "ppc440",
1726 { /* 440SP Rev. A */
1727 .pvr_mask = 0xfff00fff,
1728 .pvr_value = 0x53200891,
1729 .cpu_name = "440SP Rev. A",
1730 .cpu_features = CPU_FTRS_44X,
1731 .cpu_user_features = COMMON_USER_BOOKE,
1732 .mmu_features = MMU_FTR_TYPE_44x,
1735 .machine_check = machine_check_4xx,
1736 .platform = "ppc440",
1738 { /* 440SPe Rev. A */
1739 .pvr_mask = 0xfff00fff,
1740 .pvr_value = 0x53400890,
1741 .cpu_name = "440SPe Rev. A",
1742 .cpu_features = CPU_FTRS_44X,
1743 .cpu_user_features = COMMON_USER_BOOKE,
1744 .mmu_features = MMU_FTR_TYPE_44x,
1747 .cpu_setup = __setup_cpu_440spe,
1748 .machine_check = machine_check_440A,
1749 .platform = "ppc440",
1751 { /* 440SPe Rev. B */
1752 .pvr_mask = 0xfff00fff,
1753 .pvr_value = 0x53400891,
1754 .cpu_name = "440SPe Rev. B",
1755 .cpu_features = CPU_FTRS_44X,
1756 .cpu_user_features = COMMON_USER_BOOKE,
1757 .mmu_features = MMU_FTR_TYPE_44x,
1760 .cpu_setup = __setup_cpu_440spe,
1761 .machine_check = machine_check_440A,
1762 .platform = "ppc440",
1764 { /* 440 in Xilinx Virtex-5 FXT */
1765 .pvr_mask = 0xfffffff0,
1766 .pvr_value = 0x7ff21910,
1767 .cpu_name = "440 in Virtex-5 FXT",
1768 .cpu_features = CPU_FTRS_44X,
1769 .cpu_user_features = COMMON_USER_BOOKE,
1770 .mmu_features = MMU_FTR_TYPE_44x,
1773 .cpu_setup = __setup_cpu_440x5,
1774 .machine_check = machine_check_440A,
1775 .platform = "ppc440",
1778 .pvr_mask = 0xffff0006,
1779 .pvr_value = 0x13020002,
1780 .cpu_name = "460EX",
1781 .cpu_features = CPU_FTRS_440x6,
1782 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
1783 .mmu_features = MMU_FTR_TYPE_44x,
1786 .cpu_setup = __setup_cpu_460ex,
1787 .machine_check = machine_check_440A,
1788 .platform = "ppc440",
1791 .pvr_mask = 0xffff0007,
1792 .pvr_value = 0x13020004,
1793 .cpu_name = "460EX Rev. B",
1794 .cpu_features = CPU_FTRS_440x6,
1795 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
1796 .mmu_features = MMU_FTR_TYPE_44x,
1799 .cpu_setup = __setup_cpu_460ex,
1800 .machine_check = machine_check_440A,
1801 .platform = "ppc440",
1804 .pvr_mask = 0xffff0006,
1805 .pvr_value = 0x13020000,
1806 .cpu_name = "460GT",
1807 .cpu_features = CPU_FTRS_440x6,
1808 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
1809 .mmu_features = MMU_FTR_TYPE_44x,
1812 .cpu_setup = __setup_cpu_460gt,
1813 .machine_check = machine_check_440A,
1814 .platform = "ppc440",
1817 .pvr_mask = 0xffff0007,
1818 .pvr_value = 0x13020005,
1819 .cpu_name = "460GT Rev. B",
1820 .cpu_features = CPU_FTRS_440x6,
1821 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
1822 .mmu_features = MMU_FTR_TYPE_44x,
1825 .cpu_setup = __setup_cpu_460gt,
1826 .machine_check = machine_check_440A,
1827 .platform = "ppc440",
1830 .pvr_mask = 0xffffff00,
1831 .pvr_value = 0x13541800,
1832 .cpu_name = "460SX",
1833 .cpu_features = CPU_FTRS_44X,
1834 .cpu_user_features = COMMON_USER_BOOKE,
1835 .mmu_features = MMU_FTR_TYPE_44x,
1838 .cpu_setup = __setup_cpu_460sx,
1839 .machine_check = machine_check_440A,
1840 .platform = "ppc440",
1842 { /* 464 in APM821xx */
1843 .pvr_mask = 0xfffffff0,
1844 .pvr_value = 0x12C41C80,
1845 .cpu_name = "APM821XX",
1846 .cpu_features = CPU_FTRS_44X,
1847 .cpu_user_features = COMMON_USER_BOOKE |
1848 PPC_FEATURE_HAS_FPU,
1849 .mmu_features = MMU_FTR_TYPE_44x,
1852 .cpu_setup = __setup_cpu_apm821xx,
1853 .machine_check = machine_check_440A,
1854 .platform = "ppc440",
1856 { /* 476 DD2 core */
1857 .pvr_mask = 0xffffffff,
1858 .pvr_value = 0x11a52080,
1860 .cpu_features = CPU_FTRS_47X | CPU_FTR_476_DD2,
1861 .cpu_user_features = COMMON_USER_BOOKE |
1862 PPC_FEATURE_HAS_FPU,
1863 .mmu_features = MMU_FTR_TYPE_47x |
1864 MMU_FTR_USE_TLBIVAX_BCAST | MMU_FTR_LOCK_BCAST_INVAL,
1866 .dcache_bsize = 128,
1867 .machine_check = machine_check_47x,
1868 .platform = "ppc470",
1871 .pvr_mask = 0xffff0000,
1872 .pvr_value = 0x7ff50000,
1873 .cpu_name = "476fpe",
1874 .cpu_features = CPU_FTRS_47X | CPU_FTR_476_DD2,
1875 .cpu_user_features = COMMON_USER_BOOKE |
1876 PPC_FEATURE_HAS_FPU,
1877 .mmu_features = MMU_FTR_TYPE_47x |
1878 MMU_FTR_USE_TLBIVAX_BCAST | MMU_FTR_LOCK_BCAST_INVAL,
1880 .dcache_bsize = 128,
1881 .machine_check = machine_check_47x,
1882 .platform = "ppc470",
1885 .pvr_mask = 0xffff0000,
1886 .pvr_value = 0x00050000,
1888 .cpu_features = CPU_FTRS_47X,
1889 .cpu_user_features = COMMON_USER_BOOKE |
1890 PPC_FEATURE_HAS_FPU,
1891 .mmu_features = MMU_FTR_TYPE_47x |
1892 MMU_FTR_USE_TLBIVAX_BCAST | MMU_FTR_LOCK_BCAST_INVAL,
1894 .dcache_bsize = 128,
1895 .machine_check = machine_check_47x,
1896 .platform = "ppc470",
1899 .pvr_mask = 0xffff0000,
1900 .pvr_value = 0x11a50000,
1902 .cpu_features = CPU_FTRS_47X,
1903 .cpu_user_features = COMMON_USER_BOOKE |
1904 PPC_FEATURE_HAS_FPU,
1905 .mmu_features = MMU_FTR_TYPE_47x |
1906 MMU_FTR_USE_TLBIVAX_BCAST | MMU_FTR_LOCK_BCAST_INVAL,
1908 .dcache_bsize = 128,
1909 .machine_check = machine_check_47x,
1910 .platform = "ppc470",
1912 { /* default match */
1913 .pvr_mask = 0x00000000,
1914 .pvr_value = 0x00000000,
1915 .cpu_name = "(generic 44x PPC)",
1916 .cpu_features = CPU_FTRS_44X,
1917 .cpu_user_features = COMMON_USER_BOOKE,
1918 .mmu_features = MMU_FTR_TYPE_44x,
1921 .machine_check = machine_check_4xx,
1922 .platform = "ppc440",
1924 #endif /* CONFIG_44x */
1927 .pvr_mask = 0xfff00000,
1928 .pvr_value = 0x81000000,
1929 .cpu_name = "e200z5",
1930 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1931 .cpu_features = CPU_FTRS_E200,
1932 .cpu_user_features = COMMON_USER_BOOKE |
1933 PPC_FEATURE_HAS_EFP_SINGLE |
1934 PPC_FEATURE_UNIFIED_CACHE,
1935 .mmu_features = MMU_FTR_TYPE_FSL_E,
1937 .machine_check = machine_check_e200,
1938 .platform = "ppc5554",
1941 .pvr_mask = 0xfff00000,
1942 .pvr_value = 0x81100000,
1943 .cpu_name = "e200z6",
1944 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1945 .cpu_features = CPU_FTRS_E200,
1946 .cpu_user_features = COMMON_USER_BOOKE |
1947 PPC_FEATURE_HAS_SPE_COMP |
1948 PPC_FEATURE_HAS_EFP_SINGLE_COMP |
1949 PPC_FEATURE_UNIFIED_CACHE,
1950 .mmu_features = MMU_FTR_TYPE_FSL_E,
1952 .machine_check = machine_check_e200,
1953 .platform = "ppc5554",
1955 { /* default match */
1956 .pvr_mask = 0x00000000,
1957 .pvr_value = 0x00000000,
1958 .cpu_name = "(generic E200 PPC)",
1959 .cpu_features = CPU_FTRS_E200,
1960 .cpu_user_features = COMMON_USER_BOOKE |
1961 PPC_FEATURE_HAS_EFP_SINGLE |
1962 PPC_FEATURE_UNIFIED_CACHE,
1963 .mmu_features = MMU_FTR_TYPE_FSL_E,
1965 .cpu_setup = __setup_cpu_e200,
1966 .machine_check = machine_check_e200,
1967 .platform = "ppc5554",
1969 #endif /* CONFIG_E200 */
1970 #endif /* CONFIG_PPC32 */
1974 .pvr_mask = 0xffff0000,
1975 .pvr_value = 0x80200000,
1977 .cpu_features = CPU_FTRS_E500,
1978 .cpu_user_features = COMMON_USER_BOOKE |
1979 PPC_FEATURE_HAS_SPE_COMP |
1980 PPC_FEATURE_HAS_EFP_SINGLE_COMP,
1981 .mmu_features = MMU_FTR_TYPE_FSL_E,
1985 .oprofile_cpu_type = "ppc/e500",
1986 .oprofile_type = PPC_OPROFILE_FSL_EMB,
1987 .cpu_setup = __setup_cpu_e500v1,
1988 .machine_check = machine_check_e500,
1989 .platform = "ppc8540",
1992 .pvr_mask = 0xffff0000,
1993 .pvr_value = 0x80210000,
1994 .cpu_name = "e500v2",
1995 .cpu_features = CPU_FTRS_E500_2,
1996 .cpu_user_features = COMMON_USER_BOOKE |
1997 PPC_FEATURE_HAS_SPE_COMP |
1998 PPC_FEATURE_HAS_EFP_SINGLE_COMP |
1999 PPC_FEATURE_HAS_EFP_DOUBLE_COMP,
2000 .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS,
2004 .oprofile_cpu_type = "ppc/e500",
2005 .oprofile_type = PPC_OPROFILE_FSL_EMB,
2006 .cpu_setup = __setup_cpu_e500v2,
2007 .machine_check = machine_check_e500,
2008 .platform = "ppc8548",
2011 .pvr_mask = 0xffff0000,
2012 .pvr_value = 0x80230000,
2013 .cpu_name = "e500mc",
2014 .cpu_features = CPU_FTRS_E500MC,
2015 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
2016 .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS |
2021 .oprofile_cpu_type = "ppc/e500mc",
2022 .oprofile_type = PPC_OPROFILE_FSL_EMB,
2023 .cpu_setup = __setup_cpu_e500mc,
2024 .machine_check = machine_check_e500mc,
2025 .platform = "ppce500mc",
2027 #endif /* CONFIG_PPC32 */
2029 .pvr_mask = 0xffff0000,
2030 .pvr_value = 0x80240000,
2031 .cpu_name = "e5500",
2032 .cpu_features = CPU_FTRS_E5500,
2033 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
2034 .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS |
2039 .oprofile_cpu_type = "ppc/e500mc",
2040 .oprofile_type = PPC_OPROFILE_FSL_EMB,
2041 .cpu_setup = __setup_cpu_e5500,
2042 #ifndef CONFIG_PPC32
2043 .cpu_restore = __restore_cpu_e5500,
2045 .machine_check = machine_check_e500mc,
2046 .platform = "ppce5500",
2049 .pvr_mask = 0xffff0000,
2050 .pvr_value = 0x80400000,
2051 .cpu_name = "e6500",
2052 .cpu_features = CPU_FTRS_E6500,
2053 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
2054 .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS |
2059 .oprofile_cpu_type = "ppc/e6500",
2060 .oprofile_type = PPC_OPROFILE_FSL_EMB,
2061 .cpu_setup = __setup_cpu_e5500,
2062 #ifndef CONFIG_PPC32
2063 .cpu_restore = __restore_cpu_e5500,
2065 .machine_check = machine_check_e500mc,
2066 .platform = "ppce6500",
2069 { /* default match */
2070 .pvr_mask = 0x00000000,
2071 .pvr_value = 0x00000000,
2072 .cpu_name = "(generic E500 PPC)",
2073 .cpu_features = CPU_FTRS_E500,
2074 .cpu_user_features = COMMON_USER_BOOKE |
2075 PPC_FEATURE_HAS_SPE_COMP |
2076 PPC_FEATURE_HAS_EFP_SINGLE_COMP,
2077 .mmu_features = MMU_FTR_TYPE_FSL_E,
2080 .machine_check = machine_check_e500,
2081 .platform = "powerpc",
2083 #endif /* CONFIG_PPC32 */
2084 #endif /* CONFIG_E500 */
2086 #ifdef CONFIG_PPC_A2
2087 { /* Standard A2 (>= DD2) + FPU core */
2088 .pvr_mask = 0xffff0000,
2089 .pvr_value = 0x00480000,
2090 .cpu_name = "A2 (>= DD2)",
2091 .cpu_features = CPU_FTRS_A2,
2092 .cpu_user_features = COMMON_USER_PPC64,
2093 .mmu_features = MMU_FTRS_A2,
2097 .cpu_setup = __setup_cpu_a2,
2098 .cpu_restore = __restore_cpu_a2,
2099 .machine_check = machine_check_generic,
2100 .platform = "ppca2",
2102 { /* This is a default entry to get going, to be replaced by
2103 * a real one at some stage
2105 #define CPU_FTRS_BASE_BOOK3E (CPU_FTR_USE_TB | \
2106 CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_SMT | \
2107 CPU_FTR_NODSISRALIGN | CPU_FTR_NOEXECUTE)
2108 .pvr_mask = 0x00000000,
2109 .pvr_value = 0x00000000,
2110 .cpu_name = "Book3E",
2111 .cpu_features = CPU_FTRS_BASE_BOOK3E,
2112 .cpu_user_features = COMMON_USER_PPC64,
2113 .mmu_features = MMU_FTR_TYPE_3E | MMU_FTR_USE_TLBILX |
2114 MMU_FTR_USE_TLBIVAX_BCAST |
2115 MMU_FTR_LOCK_BCAST_INVAL,
2119 .machine_check = machine_check_generic,
2120 .platform = "power6",
2122 #endif /* CONFIG_PPC_A2 */
2125 static struct cpu_spec the_cpu_spec;
2127 static struct cpu_spec * __init setup_cpu_spec(unsigned long offset,
2130 struct cpu_spec *t = &the_cpu_spec;
2131 struct cpu_spec old;
2136 /* Copy everything, then do fixups */
2140 * If we are overriding a previous value derived from the real
2141 * PVR with a new value obtained using a logical PVR value,
2142 * don't modify the performance monitor fields.
2144 if (old.num_pmcs && !s->num_pmcs) {
2145 t->num_pmcs = old.num_pmcs;
2146 t->pmc_type = old.pmc_type;
2147 t->oprofile_type = old.oprofile_type;
2148 t->oprofile_mmcra_sihv = old.oprofile_mmcra_sihv;
2149 t->oprofile_mmcra_sipr = old.oprofile_mmcra_sipr;
2150 t->oprofile_mmcra_clear = old.oprofile_mmcra_clear;
2153 * If we have passed through this logic once before and
2154 * have pulled the default case because the real PVR was
2155 * not found inside cpu_specs[], then we are possibly
2156 * running in compatibility mode. In that case, let the
2157 * oprofiler know which set of compatibility counters to
2158 * pull from by making sure the oprofile_cpu_type string
2159 * is set to that of compatibility mode. If the
2160 * oprofile_cpu_type already has a value, then we are
2161 * possibly overriding a real PVR with a logical one,
2162 * and, in that case, keep the current value for
2163 * oprofile_cpu_type.
2165 if (old.oprofile_cpu_type != NULL) {
2166 t->oprofile_cpu_type = old.oprofile_cpu_type;
2167 t->oprofile_type = old.oprofile_type;
2171 *PTRRELOC(&cur_cpu_spec) = &the_cpu_spec;
2174 * Set the base platform string once; assumes
2175 * we're called with real pvr first.
2177 if (*PTRRELOC(&powerpc_base_platform) == NULL)
2178 *PTRRELOC(&powerpc_base_platform) = t->platform;
2180 #if defined(CONFIG_PPC64) || defined(CONFIG_BOOKE)
2181 /* ppc64 and booke expect identify_cpu to also call setup_cpu for
2182 * that processor. I will consolidate that at a later time, for now,
2183 * just use #ifdef. We also don't need to PTRRELOC the function
2184 * pointer on ppc64 and booke as we are running at 0 in real mode
2185 * on ppc64 and reloc_offset is always 0 on booke.
2188 t->cpu_setup(offset, t);
2190 #endif /* CONFIG_PPC64 || CONFIG_BOOKE */
2195 struct cpu_spec * __init identify_cpu(unsigned long offset, unsigned int pvr)
2197 struct cpu_spec *s = cpu_specs;
2202 for (i = 0; i < ARRAY_SIZE(cpu_specs); i++,s++) {
2203 if ((pvr & s->pvr_mask) == s->pvr_value)
2204 return setup_cpu_spec(offset, s);