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/module.h>
19 #include <asm/oprofile_impl.h>
20 #include <asm/cputable.h>
21 #include <asm/prom.h> /* for PTRRELOC on ARCH=ppc */
24 struct cpu_spec
* cur_cpu_spec
= NULL
;
25 EXPORT_SYMBOL(cur_cpu_spec
);
27 /* The platform string corresponding to the real PVR */
28 const char *powerpc_base_platform
;
31 * Unlike ppc32, ppc64 will only call this once for the boot CPU, it's
32 * the responsibility of the appropriate CPU save/restore functions to
33 * eventually copy these settings over. Those save/restore aren't yet
34 * part of the cputable though. That has to be fixed for both ppc32
38 extern void __setup_cpu_e200(unsigned long offset
, struct cpu_spec
* spec
);
39 extern void __setup_cpu_e500v1(unsigned long offset
, struct cpu_spec
* spec
);
40 extern void __setup_cpu_e500v2(unsigned long offset
, struct cpu_spec
* spec
);
41 extern void __setup_cpu_e500mc(unsigned long offset
, struct cpu_spec
* spec
);
42 extern void __setup_cpu_440ep(unsigned long offset
, struct cpu_spec
* spec
);
43 extern void __setup_cpu_440epx(unsigned long offset
, struct cpu_spec
* spec
);
44 extern void __setup_cpu_440gx(unsigned long offset
, struct cpu_spec
* spec
);
45 extern void __setup_cpu_440grx(unsigned long offset
, struct cpu_spec
* spec
);
46 extern void __setup_cpu_440spe(unsigned long offset
, struct cpu_spec
* spec
);
47 extern void __setup_cpu_440x5(unsigned long offset
, struct cpu_spec
* spec
);
48 extern void __setup_cpu_460ex(unsigned long offset
, struct cpu_spec
* spec
);
49 extern void __setup_cpu_460gt(unsigned long offset
, struct cpu_spec
* spec
);
50 extern void __setup_cpu_460sx(unsigned long offset
, struct cpu_spec
*spec
);
51 extern void __setup_cpu_apm821xx(unsigned long offset
, struct cpu_spec
*spec
);
52 extern void __setup_cpu_603(unsigned long offset
, struct cpu_spec
* spec
);
53 extern void __setup_cpu_604(unsigned long offset
, struct cpu_spec
* spec
);
54 extern void __setup_cpu_750(unsigned long offset
, struct cpu_spec
* spec
);
55 extern void __setup_cpu_750cx(unsigned long offset
, struct cpu_spec
* spec
);
56 extern void __setup_cpu_750fx(unsigned long offset
, struct cpu_spec
* spec
);
57 extern void __setup_cpu_7400(unsigned long offset
, struct cpu_spec
* spec
);
58 extern void __setup_cpu_7410(unsigned long offset
, struct cpu_spec
* spec
);
59 extern void __setup_cpu_745x(unsigned long offset
, struct cpu_spec
* spec
);
60 #endif /* CONFIG_PPC32 */
62 extern void __setup_cpu_ppc970(unsigned long offset
, struct cpu_spec
* spec
);
63 extern void __setup_cpu_ppc970MP(unsigned long offset
, struct cpu_spec
* spec
);
64 extern void __setup_cpu_pa6t(unsigned long offset
, struct cpu_spec
* spec
);
65 extern void __setup_cpu_a2(unsigned long offset
, struct cpu_spec
* spec
);
66 extern void __restore_cpu_pa6t(void);
67 extern void __restore_cpu_ppc970(void);
68 extern void __setup_cpu_power7(unsigned long offset
, struct cpu_spec
* spec
);
69 extern void __restore_cpu_power7(void);
70 extern void __restore_cpu_a2(void);
71 #endif /* CONFIG_PPC64 */
72 #if defined(CONFIG_E500)
73 extern void __setup_cpu_e5500(unsigned long offset
, struct cpu_spec
* spec
);
74 extern void __restore_cpu_e5500(void);
75 #endif /* CONFIG_E500 */
77 /* This table only contains "desktop" CPUs, it need to be filled with embedded
80 #define COMMON_USER (PPC_FEATURE_32 | PPC_FEATURE_HAS_FPU | \
82 #define COMMON_USER_PPC64 (COMMON_USER | PPC_FEATURE_64)
83 #define COMMON_USER_POWER4 (COMMON_USER_PPC64 | PPC_FEATURE_POWER4)
84 #define COMMON_USER_POWER5 (COMMON_USER_PPC64 | PPC_FEATURE_POWER5 |\
85 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
86 #define COMMON_USER_POWER5_PLUS (COMMON_USER_PPC64 | PPC_FEATURE_POWER5_PLUS|\
87 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
88 #define COMMON_USER_POWER6 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_05 |\
89 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \
90 PPC_FEATURE_TRUE_LE | \
91 PPC_FEATURE_PSERIES_PERFMON_COMPAT)
92 #define COMMON_USER_POWER7 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_06 |\
93 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \
94 PPC_FEATURE_TRUE_LE | \
95 PPC_FEATURE_PSERIES_PERFMON_COMPAT)
96 #define COMMON_USER_PA6T (COMMON_USER_PPC64 | PPC_FEATURE_PA6T |\
97 PPC_FEATURE_TRUE_LE | \
98 PPC_FEATURE_HAS_ALTIVEC_COMP)
99 #ifdef CONFIG_PPC_BOOK3E_64
100 #define COMMON_USER_BOOKE (COMMON_USER_PPC64 | PPC_FEATURE_BOOKE)
102 #define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \
106 static struct cpu_spec __initdata cpu_specs
[] = {
107 #ifdef CONFIG_PPC_BOOK3S_64
109 .pvr_mask
= 0xffff0000,
110 .pvr_value
= 0x00400000,
111 .cpu_name
= "POWER3 (630)",
112 .cpu_features
= CPU_FTRS_POWER3
,
113 .cpu_user_features
= COMMON_USER_PPC64
|PPC_FEATURE_PPC_LE
,
114 .mmu_features
= MMU_FTR_HPTE_TABLE
,
118 .pmc_type
= PPC_PMC_IBM
,
119 .oprofile_cpu_type
= "ppc64/power3",
120 .oprofile_type
= PPC_OPROFILE_RS64
,
121 .platform
= "power3",
124 .pvr_mask
= 0xffff0000,
125 .pvr_value
= 0x00410000,
126 .cpu_name
= "POWER3 (630+)",
127 .cpu_features
= CPU_FTRS_POWER3
,
128 .cpu_user_features
= COMMON_USER_PPC64
|PPC_FEATURE_PPC_LE
,
129 .mmu_features
= MMU_FTR_HPTE_TABLE
,
133 .pmc_type
= PPC_PMC_IBM
,
134 .oprofile_cpu_type
= "ppc64/power3",
135 .oprofile_type
= PPC_OPROFILE_RS64
,
136 .platform
= "power3",
139 .pvr_mask
= 0xffff0000,
140 .pvr_value
= 0x00330000,
141 .cpu_name
= "RS64-II (northstar)",
142 .cpu_features
= CPU_FTRS_RS64
,
143 .cpu_user_features
= COMMON_USER_PPC64
,
144 .mmu_features
= MMU_FTR_HPTE_TABLE
,
148 .pmc_type
= PPC_PMC_IBM
,
149 .oprofile_cpu_type
= "ppc64/rs64",
150 .oprofile_type
= PPC_OPROFILE_RS64
,
154 .pvr_mask
= 0xffff0000,
155 .pvr_value
= 0x00340000,
156 .cpu_name
= "RS64-III (pulsar)",
157 .cpu_features
= CPU_FTRS_RS64
,
158 .cpu_user_features
= COMMON_USER_PPC64
,
159 .mmu_features
= MMU_FTR_HPTE_TABLE
,
163 .pmc_type
= PPC_PMC_IBM
,
164 .oprofile_cpu_type
= "ppc64/rs64",
165 .oprofile_type
= PPC_OPROFILE_RS64
,
169 .pvr_mask
= 0xffff0000,
170 .pvr_value
= 0x00360000,
171 .cpu_name
= "RS64-III (icestar)",
172 .cpu_features
= CPU_FTRS_RS64
,
173 .cpu_user_features
= COMMON_USER_PPC64
,
174 .mmu_features
= MMU_FTR_HPTE_TABLE
,
178 .pmc_type
= PPC_PMC_IBM
,
179 .oprofile_cpu_type
= "ppc64/rs64",
180 .oprofile_type
= PPC_OPROFILE_RS64
,
184 .pvr_mask
= 0xffff0000,
185 .pvr_value
= 0x00370000,
186 .cpu_name
= "RS64-IV (sstar)",
187 .cpu_features
= CPU_FTRS_RS64
,
188 .cpu_user_features
= COMMON_USER_PPC64
,
189 .mmu_features
= MMU_FTR_HPTE_TABLE
,
193 .pmc_type
= PPC_PMC_IBM
,
194 .oprofile_cpu_type
= "ppc64/rs64",
195 .oprofile_type
= PPC_OPROFILE_RS64
,
199 .pvr_mask
= 0xffff0000,
200 .pvr_value
= 0x00350000,
201 .cpu_name
= "POWER4 (gp)",
202 .cpu_features
= CPU_FTRS_POWER4
,
203 .cpu_user_features
= COMMON_USER_POWER4
,
204 .mmu_features
= MMU_FTRS_POWER4
,
208 .pmc_type
= PPC_PMC_IBM
,
209 .oprofile_cpu_type
= "ppc64/power4",
210 .oprofile_type
= PPC_OPROFILE_POWER4
,
211 .platform
= "power4",
214 .pvr_mask
= 0xffff0000,
215 .pvr_value
= 0x00380000,
216 .cpu_name
= "POWER4+ (gq)",
217 .cpu_features
= CPU_FTRS_POWER4
,
218 .cpu_user_features
= COMMON_USER_POWER4
,
219 .mmu_features
= MMU_FTRS_POWER4
,
223 .pmc_type
= PPC_PMC_IBM
,
224 .oprofile_cpu_type
= "ppc64/power4",
225 .oprofile_type
= PPC_OPROFILE_POWER4
,
226 .platform
= "power4",
229 .pvr_mask
= 0xffff0000,
230 .pvr_value
= 0x00390000,
231 .cpu_name
= "PPC970",
232 .cpu_features
= CPU_FTRS_PPC970
,
233 .cpu_user_features
= COMMON_USER_POWER4
|
234 PPC_FEATURE_HAS_ALTIVEC_COMP
,
235 .mmu_features
= MMU_FTRS_PPC970
,
239 .pmc_type
= PPC_PMC_IBM
,
240 .cpu_setup
= __setup_cpu_ppc970
,
241 .cpu_restore
= __restore_cpu_ppc970
,
242 .oprofile_cpu_type
= "ppc64/970",
243 .oprofile_type
= PPC_OPROFILE_POWER4
,
244 .platform
= "ppc970",
247 .pvr_mask
= 0xffff0000,
248 .pvr_value
= 0x003c0000,
249 .cpu_name
= "PPC970FX",
250 .cpu_features
= CPU_FTRS_PPC970
,
251 .cpu_user_features
= COMMON_USER_POWER4
|
252 PPC_FEATURE_HAS_ALTIVEC_COMP
,
253 .mmu_features
= MMU_FTRS_PPC970
,
257 .pmc_type
= PPC_PMC_IBM
,
258 .cpu_setup
= __setup_cpu_ppc970
,
259 .cpu_restore
= __restore_cpu_ppc970
,
260 .oprofile_cpu_type
= "ppc64/970",
261 .oprofile_type
= PPC_OPROFILE_POWER4
,
262 .platform
= "ppc970",
264 { /* PPC970MP DD1.0 - no DEEPNAP, use regular 970 init */
265 .pvr_mask
= 0xffffffff,
266 .pvr_value
= 0x00440100,
267 .cpu_name
= "PPC970MP",
268 .cpu_features
= CPU_FTRS_PPC970
,
269 .cpu_user_features
= COMMON_USER_POWER4
|
270 PPC_FEATURE_HAS_ALTIVEC_COMP
,
271 .mmu_features
= MMU_FTR_HPTE_TABLE
,
275 .pmc_type
= PPC_PMC_IBM
,
276 .cpu_setup
= __setup_cpu_ppc970
,
277 .cpu_restore
= __restore_cpu_ppc970
,
278 .oprofile_cpu_type
= "ppc64/970MP",
279 .oprofile_type
= PPC_OPROFILE_POWER4
,
280 .platform
= "ppc970",
283 .pvr_mask
= 0xffff0000,
284 .pvr_value
= 0x00440000,
285 .cpu_name
= "PPC970MP",
286 .cpu_features
= CPU_FTRS_PPC970
,
287 .cpu_user_features
= COMMON_USER_POWER4
|
288 PPC_FEATURE_HAS_ALTIVEC_COMP
,
289 .mmu_features
= MMU_FTRS_PPC970
,
293 .pmc_type
= PPC_PMC_IBM
,
294 .cpu_setup
= __setup_cpu_ppc970MP
,
295 .cpu_restore
= __restore_cpu_ppc970
,
296 .oprofile_cpu_type
= "ppc64/970MP",
297 .oprofile_type
= PPC_OPROFILE_POWER4
,
298 .platform
= "ppc970",
301 .pvr_mask
= 0xffff0000,
302 .pvr_value
= 0x00450000,
303 .cpu_name
= "PPC970GX",
304 .cpu_features
= CPU_FTRS_PPC970
,
305 .cpu_user_features
= COMMON_USER_POWER4
|
306 PPC_FEATURE_HAS_ALTIVEC_COMP
,
307 .mmu_features
= MMU_FTRS_PPC970
,
311 .pmc_type
= PPC_PMC_IBM
,
312 .cpu_setup
= __setup_cpu_ppc970
,
313 .oprofile_cpu_type
= "ppc64/970",
314 .oprofile_type
= PPC_OPROFILE_POWER4
,
315 .platform
= "ppc970",
318 .pvr_mask
= 0xffff0000,
319 .pvr_value
= 0x003a0000,
320 .cpu_name
= "POWER5 (gr)",
321 .cpu_features
= CPU_FTRS_POWER5
,
322 .cpu_user_features
= COMMON_USER_POWER5
,
323 .mmu_features
= MMU_FTRS_POWER5
,
327 .pmc_type
= PPC_PMC_IBM
,
328 .oprofile_cpu_type
= "ppc64/power5",
329 .oprofile_type
= PPC_OPROFILE_POWER4
,
330 /* SIHV / SIPR bits are implemented on POWER4+ (GQ)
331 * and above but only works on POWER5 and above
333 .oprofile_mmcra_sihv
= MMCRA_SIHV
,
334 .oprofile_mmcra_sipr
= MMCRA_SIPR
,
335 .platform
= "power5",
338 .pvr_mask
= 0xffffff00,
339 .pvr_value
= 0x003b0300,
340 .cpu_name
= "POWER5+ (gs)",
341 .cpu_features
= CPU_FTRS_POWER5
,
342 .cpu_user_features
= COMMON_USER_POWER5_PLUS
,
343 .mmu_features
= MMU_FTRS_POWER5
,
347 .oprofile_cpu_type
= "ppc64/power5++",
348 .oprofile_type
= PPC_OPROFILE_POWER4
,
349 .oprofile_mmcra_sihv
= MMCRA_SIHV
,
350 .oprofile_mmcra_sipr
= MMCRA_SIPR
,
351 .platform
= "power5+",
354 .pvr_mask
= 0xffff0000,
355 .pvr_value
= 0x003b0000,
356 .cpu_name
= "POWER5+ (gs)",
357 .cpu_features
= CPU_FTRS_POWER5
,
358 .cpu_user_features
= COMMON_USER_POWER5_PLUS
,
359 .mmu_features
= MMU_FTRS_POWER5
,
363 .pmc_type
= PPC_PMC_IBM
,
364 .oprofile_cpu_type
= "ppc64/power5+",
365 .oprofile_type
= PPC_OPROFILE_POWER4
,
366 .oprofile_mmcra_sihv
= MMCRA_SIHV
,
367 .oprofile_mmcra_sipr
= MMCRA_SIPR
,
368 .platform
= "power5+",
370 { /* POWER6 in P5+ mode; 2.04-compliant processor */
371 .pvr_mask
= 0xffffffff,
372 .pvr_value
= 0x0f000001,
373 .cpu_name
= "POWER5+",
374 .cpu_features
= CPU_FTRS_POWER5
,
375 .cpu_user_features
= COMMON_USER_POWER5_PLUS
,
376 .mmu_features
= MMU_FTRS_POWER5
,
379 .oprofile_cpu_type
= "ppc64/ibm-compat-v1",
380 .oprofile_type
= PPC_OPROFILE_POWER4
,
381 .platform
= "power5+",
384 .pvr_mask
= 0xffff0000,
385 .pvr_value
= 0x003e0000,
386 .cpu_name
= "POWER6 (raw)",
387 .cpu_features
= CPU_FTRS_POWER6
,
388 .cpu_user_features
= COMMON_USER_POWER6
|
389 PPC_FEATURE_POWER6_EXT
,
390 .mmu_features
= MMU_FTRS_POWER6
,
394 .pmc_type
= PPC_PMC_IBM
,
395 .oprofile_cpu_type
= "ppc64/power6",
396 .oprofile_type
= PPC_OPROFILE_POWER4
,
397 .oprofile_mmcra_sihv
= POWER6_MMCRA_SIHV
,
398 .oprofile_mmcra_sipr
= POWER6_MMCRA_SIPR
,
399 .oprofile_mmcra_clear
= POWER6_MMCRA_THRM
|
401 .platform
= "power6x",
403 { /* 2.05-compliant processor, i.e. Power6 "architected" mode */
404 .pvr_mask
= 0xffffffff,
405 .pvr_value
= 0x0f000002,
406 .cpu_name
= "POWER6 (architected)",
407 .cpu_features
= CPU_FTRS_POWER6
,
408 .cpu_user_features
= COMMON_USER_POWER6
,
409 .mmu_features
= MMU_FTRS_POWER6
,
412 .oprofile_cpu_type
= "ppc64/ibm-compat-v1",
413 .oprofile_type
= PPC_OPROFILE_POWER4
,
414 .platform
= "power6",
416 { /* 2.06-compliant processor, i.e. Power7 "architected" mode */
417 .pvr_mask
= 0xffffffff,
418 .pvr_value
= 0x0f000003,
419 .cpu_name
= "POWER7 (architected)",
420 .cpu_features
= CPU_FTRS_POWER7
,
421 .cpu_user_features
= COMMON_USER_POWER7
,
422 .mmu_features
= MMU_FTRS_POWER7
,
425 .oprofile_type
= PPC_OPROFILE_POWER4
,
426 .oprofile_cpu_type
= "ppc64/ibm-compat-v1",
427 .cpu_setup
= __setup_cpu_power7
,
428 .cpu_restore
= __restore_cpu_power7
,
429 .platform
= "power7",
432 .pvr_mask
= 0xffff0000,
433 .pvr_value
= 0x003f0000,
434 .cpu_name
= "POWER7 (raw)",
435 .cpu_features
= CPU_FTRS_POWER7
,
436 .cpu_user_features
= COMMON_USER_POWER7
,
437 .mmu_features
= MMU_FTRS_POWER7
,
441 .pmc_type
= PPC_PMC_IBM
,
442 .oprofile_cpu_type
= "ppc64/power7",
443 .oprofile_type
= PPC_OPROFILE_POWER4
,
444 .cpu_setup
= __setup_cpu_power7
,
445 .cpu_restore
= __restore_cpu_power7
,
446 .platform
= "power7",
449 .pvr_mask
= 0xffff0000,
450 .pvr_value
= 0x004A0000,
451 .cpu_name
= "POWER7+ (raw)",
452 .cpu_features
= CPU_FTRS_POWER7
,
453 .cpu_user_features
= COMMON_USER_POWER7
,
454 .mmu_features
= MMU_FTRS_POWER7
,
458 .pmc_type
= PPC_PMC_IBM
,
459 .oprofile_cpu_type
= "ppc64/power7",
460 .oprofile_type
= PPC_OPROFILE_POWER4
,
461 .cpu_setup
= __setup_cpu_power7
,
462 .cpu_restore
= __restore_cpu_power7
,
463 .platform
= "power7+",
465 { /* Cell Broadband Engine */
466 .pvr_mask
= 0xffff0000,
467 .pvr_value
= 0x00700000,
468 .cpu_name
= "Cell Broadband Engine",
469 .cpu_features
= CPU_FTRS_CELL
,
470 .cpu_user_features
= COMMON_USER_PPC64
|
471 PPC_FEATURE_CELL
| PPC_FEATURE_HAS_ALTIVEC_COMP
|
473 .mmu_features
= MMU_FTRS_CELL
,
477 .pmc_type
= PPC_PMC_IBM
,
478 .oprofile_cpu_type
= "ppc64/cell-be",
479 .oprofile_type
= PPC_OPROFILE_CELL
,
480 .platform
= "ppc-cell-be",
483 .pvr_mask
= 0x7fff0000,
484 .pvr_value
= 0x00900000,
486 .cpu_features
= CPU_FTRS_PA6T
,
487 .cpu_user_features
= COMMON_USER_PA6T
,
488 .mmu_features
= MMU_FTRS_PA6T
,
492 .pmc_type
= PPC_PMC_PA6T
,
493 .cpu_setup
= __setup_cpu_pa6t
,
494 .cpu_restore
= __restore_cpu_pa6t
,
495 .oprofile_cpu_type
= "ppc64/pa6t",
496 .oprofile_type
= PPC_OPROFILE_PA6T
,
499 { /* default match */
500 .pvr_mask
= 0x00000000,
501 .pvr_value
= 0x00000000,
502 .cpu_name
= "POWER4 (compatible)",
503 .cpu_features
= CPU_FTRS_COMPATIBLE
,
504 .cpu_user_features
= COMMON_USER_PPC64
,
505 .mmu_features
= MMU_FTRS_DEFAULT_HPTE_ARCH_V2
,
509 .pmc_type
= PPC_PMC_IBM
,
510 .platform
= "power4",
512 #endif /* CONFIG_PPC_BOOK3S_64 */
517 .pvr_mask
= 0xffff0000,
518 .pvr_value
= 0x00010000,
520 .cpu_features
= CPU_FTRS_PPC601
,
521 .cpu_user_features
= COMMON_USER
| PPC_FEATURE_601_INSTR
|
522 PPC_FEATURE_UNIFIED_CACHE
| PPC_FEATURE_NO_TB
,
523 .mmu_features
= MMU_FTR_HPTE_TABLE
,
526 .machine_check
= machine_check_generic
,
527 .platform
= "ppc601",
530 .pvr_mask
= 0xffff0000,
531 .pvr_value
= 0x00030000,
533 .cpu_features
= CPU_FTRS_603
,
534 .cpu_user_features
= COMMON_USER
| PPC_FEATURE_PPC_LE
,
538 .cpu_setup
= __setup_cpu_603
,
539 .machine_check
= machine_check_generic
,
540 .platform
= "ppc603",
543 .pvr_mask
= 0xffff0000,
544 .pvr_value
= 0x00060000,
546 .cpu_features
= CPU_FTRS_603
,
547 .cpu_user_features
= COMMON_USER
| PPC_FEATURE_PPC_LE
,
551 .cpu_setup
= __setup_cpu_603
,
552 .machine_check
= machine_check_generic
,
553 .platform
= "ppc603",
556 .pvr_mask
= 0xffff0000,
557 .pvr_value
= 0x00070000,
559 .cpu_features
= CPU_FTRS_603
,
560 .cpu_user_features
= COMMON_USER
| PPC_FEATURE_PPC_LE
,
564 .cpu_setup
= __setup_cpu_603
,
565 .machine_check
= machine_check_generic
,
566 .platform
= "ppc603",
569 .pvr_mask
= 0xffff0000,
570 .pvr_value
= 0x00040000,
572 .cpu_features
= CPU_FTRS_604
,
573 .cpu_user_features
= COMMON_USER
| PPC_FEATURE_PPC_LE
,
574 .mmu_features
= MMU_FTR_HPTE_TABLE
,
578 .cpu_setup
= __setup_cpu_604
,
579 .machine_check
= machine_check_generic
,
580 .platform
= "ppc604",
583 .pvr_mask
= 0xfffff000,
584 .pvr_value
= 0x00090000,
586 .cpu_features
= CPU_FTRS_604
,
587 .cpu_user_features
= COMMON_USER
| PPC_FEATURE_PPC_LE
,
588 .mmu_features
= MMU_FTR_HPTE_TABLE
,
592 .cpu_setup
= __setup_cpu_604
,
593 .machine_check
= machine_check_generic
,
594 .platform
= "ppc604",
597 .pvr_mask
= 0xffff0000,
598 .pvr_value
= 0x00090000,
600 .cpu_features
= CPU_FTRS_604
,
601 .cpu_user_features
= COMMON_USER
| PPC_FEATURE_PPC_LE
,
602 .mmu_features
= MMU_FTR_HPTE_TABLE
,
606 .cpu_setup
= __setup_cpu_604
,
607 .machine_check
= machine_check_generic
,
608 .platform
= "ppc604",
611 .pvr_mask
= 0xffff0000,
612 .pvr_value
= 0x000a0000,
614 .cpu_features
= CPU_FTRS_604
,
615 .cpu_user_features
= COMMON_USER
| PPC_FEATURE_PPC_LE
,
616 .mmu_features
= MMU_FTR_HPTE_TABLE
,
620 .cpu_setup
= __setup_cpu_604
,
621 .machine_check
= machine_check_generic
,
622 .platform
= "ppc604",
624 { /* 740/750 (0x4202, don't support TAU ?) */
625 .pvr_mask
= 0xffffffff,
626 .pvr_value
= 0x00084202,
627 .cpu_name
= "740/750",
628 .cpu_features
= CPU_FTRS_740_NOTAU
,
629 .cpu_user_features
= COMMON_USER
| PPC_FEATURE_PPC_LE
,
630 .mmu_features
= MMU_FTR_HPTE_TABLE
,
634 .cpu_setup
= __setup_cpu_750
,
635 .machine_check
= machine_check_generic
,
636 .platform
= "ppc750",
638 { /* 750CX (80100 and 8010x?) */
639 .pvr_mask
= 0xfffffff0,
640 .pvr_value
= 0x00080100,
642 .cpu_features
= CPU_FTRS_750
,
643 .cpu_user_features
= COMMON_USER
| PPC_FEATURE_PPC_LE
,
644 .mmu_features
= MMU_FTR_HPTE_TABLE
,
648 .cpu_setup
= __setup_cpu_750cx
,
649 .machine_check
= machine_check_generic
,
650 .platform
= "ppc750",
652 { /* 750CX (82201 and 82202) */
653 .pvr_mask
= 0xfffffff0,
654 .pvr_value
= 0x00082200,
656 .cpu_features
= CPU_FTRS_750
,
657 .cpu_user_features
= COMMON_USER
| PPC_FEATURE_PPC_LE
,
658 .mmu_features
= MMU_FTR_HPTE_TABLE
,
662 .pmc_type
= PPC_PMC_IBM
,
663 .cpu_setup
= __setup_cpu_750cx
,
664 .machine_check
= machine_check_generic
,
665 .platform
= "ppc750",
667 { /* 750CXe (82214) */
668 .pvr_mask
= 0xfffffff0,
669 .pvr_value
= 0x00082210,
670 .cpu_name
= "750CXe",
671 .cpu_features
= CPU_FTRS_750
,
672 .cpu_user_features
= COMMON_USER
| PPC_FEATURE_PPC_LE
,
673 .mmu_features
= MMU_FTR_HPTE_TABLE
,
677 .pmc_type
= PPC_PMC_IBM
,
678 .cpu_setup
= __setup_cpu_750cx
,
679 .machine_check
= machine_check_generic
,
680 .platform
= "ppc750",
682 { /* 750CXe "Gekko" (83214) */
683 .pvr_mask
= 0xffffffff,
684 .pvr_value
= 0x00083214,
685 .cpu_name
= "750CXe",
686 .cpu_features
= CPU_FTRS_750
,
687 .cpu_user_features
= COMMON_USER
| PPC_FEATURE_PPC_LE
,
688 .mmu_features
= MMU_FTR_HPTE_TABLE
,
692 .pmc_type
= PPC_PMC_IBM
,
693 .cpu_setup
= __setup_cpu_750cx
,
694 .machine_check
= machine_check_generic
,
695 .platform
= "ppc750",
697 { /* 750CL (and "Broadway") */
698 .pvr_mask
= 0xfffff0e0,
699 .pvr_value
= 0x00087000,
701 .cpu_features
= CPU_FTRS_750CL
,
702 .cpu_user_features
= COMMON_USER
| PPC_FEATURE_PPC_LE
,
703 .mmu_features
= MMU_FTR_HPTE_TABLE
| MMU_FTR_USE_HIGH_BATS
,
707 .pmc_type
= PPC_PMC_IBM
,
708 .cpu_setup
= __setup_cpu_750
,
709 .machine_check
= machine_check_generic
,
710 .platform
= "ppc750",
711 .oprofile_cpu_type
= "ppc/750",
712 .oprofile_type
= PPC_OPROFILE_G4
,
715 .pvr_mask
= 0xfffff000,
716 .pvr_value
= 0x00083000,
717 .cpu_name
= "745/755",
718 .cpu_features
= CPU_FTRS_750
,
719 .cpu_user_features
= COMMON_USER
| PPC_FEATURE_PPC_LE
,
720 .mmu_features
= MMU_FTR_HPTE_TABLE
,
724 .pmc_type
= PPC_PMC_IBM
,
725 .cpu_setup
= __setup_cpu_750
,
726 .machine_check
= machine_check_generic
,
727 .platform
= "ppc750",
729 { /* 750FX rev 1.x */
730 .pvr_mask
= 0xffffff00,
731 .pvr_value
= 0x70000100,
733 .cpu_features
= CPU_FTRS_750FX1
,
734 .cpu_user_features
= COMMON_USER
| PPC_FEATURE_PPC_LE
,
735 .mmu_features
= MMU_FTR_HPTE_TABLE
,
739 .pmc_type
= PPC_PMC_IBM
,
740 .cpu_setup
= __setup_cpu_750
,
741 .machine_check
= machine_check_generic
,
742 .platform
= "ppc750",
743 .oprofile_cpu_type
= "ppc/750",
744 .oprofile_type
= PPC_OPROFILE_G4
,
746 { /* 750FX rev 2.0 must disable HID0[DPM] */
747 .pvr_mask
= 0xffffffff,
748 .pvr_value
= 0x70000200,
750 .cpu_features
= CPU_FTRS_750FX2
,
751 .cpu_user_features
= COMMON_USER
| PPC_FEATURE_PPC_LE
,
752 .mmu_features
= MMU_FTR_HPTE_TABLE
,
756 .pmc_type
= PPC_PMC_IBM
,
757 .cpu_setup
= __setup_cpu_750
,
758 .machine_check
= machine_check_generic
,
759 .platform
= "ppc750",
760 .oprofile_cpu_type
= "ppc/750",
761 .oprofile_type
= PPC_OPROFILE_G4
,
763 { /* 750FX (All revs except 2.0) */
764 .pvr_mask
= 0xffff0000,
765 .pvr_value
= 0x70000000,
767 .cpu_features
= CPU_FTRS_750FX
,
768 .cpu_user_features
= COMMON_USER
| PPC_FEATURE_PPC_LE
,
769 .mmu_features
= MMU_FTR_HPTE_TABLE
| MMU_FTR_USE_HIGH_BATS
,
773 .pmc_type
= PPC_PMC_IBM
,
774 .cpu_setup
= __setup_cpu_750fx
,
775 .machine_check
= machine_check_generic
,
776 .platform
= "ppc750",
777 .oprofile_cpu_type
= "ppc/750",
778 .oprofile_type
= PPC_OPROFILE_G4
,
781 .pvr_mask
= 0xffff0000,
782 .pvr_value
= 0x70020000,
784 .cpu_features
= CPU_FTRS_750GX
,
785 .cpu_user_features
= COMMON_USER
| PPC_FEATURE_PPC_LE
,
786 .mmu_features
= MMU_FTR_HPTE_TABLE
| MMU_FTR_USE_HIGH_BATS
,
790 .pmc_type
= PPC_PMC_IBM
,
791 .cpu_setup
= __setup_cpu_750fx
,
792 .machine_check
= machine_check_generic
,
793 .platform
= "ppc750",
794 .oprofile_cpu_type
= "ppc/750",
795 .oprofile_type
= PPC_OPROFILE_G4
,
797 { /* 740/750 (L2CR bit need fixup for 740) */
798 .pvr_mask
= 0xffff0000,
799 .pvr_value
= 0x00080000,
800 .cpu_name
= "740/750",
801 .cpu_features
= CPU_FTRS_740
,
802 .cpu_user_features
= COMMON_USER
| PPC_FEATURE_PPC_LE
,
803 .mmu_features
= MMU_FTR_HPTE_TABLE
,
807 .pmc_type
= PPC_PMC_IBM
,
808 .cpu_setup
= __setup_cpu_750
,
809 .machine_check
= machine_check_generic
,
810 .platform
= "ppc750",
812 { /* 7400 rev 1.1 ? (no TAU) */
813 .pvr_mask
= 0xffffffff,
814 .pvr_value
= 0x000c1101,
815 .cpu_name
= "7400 (1.1)",
816 .cpu_features
= CPU_FTRS_7400_NOTAU
,
817 .cpu_user_features
= COMMON_USER
|
818 PPC_FEATURE_HAS_ALTIVEC_COMP
| PPC_FEATURE_PPC_LE
,
819 .mmu_features
= MMU_FTR_HPTE_TABLE
,
823 .pmc_type
= PPC_PMC_G4
,
824 .cpu_setup
= __setup_cpu_7400
,
825 .machine_check
= machine_check_generic
,
826 .platform
= "ppc7400",
829 .pvr_mask
= 0xffff0000,
830 .pvr_value
= 0x000c0000,
832 .cpu_features
= CPU_FTRS_7400
,
833 .cpu_user_features
= COMMON_USER
|
834 PPC_FEATURE_HAS_ALTIVEC_COMP
| PPC_FEATURE_PPC_LE
,
835 .mmu_features
= MMU_FTR_HPTE_TABLE
,
839 .pmc_type
= PPC_PMC_G4
,
840 .cpu_setup
= __setup_cpu_7400
,
841 .machine_check
= machine_check_generic
,
842 .platform
= "ppc7400",
845 .pvr_mask
= 0xffff0000,
846 .pvr_value
= 0x800c0000,
848 .cpu_features
= CPU_FTRS_7400
,
849 .cpu_user_features
= COMMON_USER
|
850 PPC_FEATURE_HAS_ALTIVEC_COMP
| PPC_FEATURE_PPC_LE
,
851 .mmu_features
= MMU_FTR_HPTE_TABLE
,
855 .pmc_type
= PPC_PMC_G4
,
856 .cpu_setup
= __setup_cpu_7410
,
857 .machine_check
= machine_check_generic
,
858 .platform
= "ppc7400",
860 { /* 7450 2.0 - no doze/nap */
861 .pvr_mask
= 0xffffffff,
862 .pvr_value
= 0x80000200,
864 .cpu_features
= CPU_FTRS_7450_20
,
865 .cpu_user_features
= COMMON_USER
|
866 PPC_FEATURE_HAS_ALTIVEC_COMP
| PPC_FEATURE_PPC_LE
,
867 .mmu_features
= MMU_FTR_HPTE_TABLE
,
871 .pmc_type
= PPC_PMC_G4
,
872 .cpu_setup
= __setup_cpu_745x
,
873 .oprofile_cpu_type
= "ppc/7450",
874 .oprofile_type
= PPC_OPROFILE_G4
,
875 .machine_check
= machine_check_generic
,
876 .platform
= "ppc7450",
879 .pvr_mask
= 0xffffffff,
880 .pvr_value
= 0x80000201,
882 .cpu_features
= CPU_FTRS_7450_21
,
883 .cpu_user_features
= COMMON_USER
|
884 PPC_FEATURE_HAS_ALTIVEC_COMP
| PPC_FEATURE_PPC_LE
,
885 .mmu_features
= MMU_FTR_HPTE_TABLE
,
889 .pmc_type
= PPC_PMC_G4
,
890 .cpu_setup
= __setup_cpu_745x
,
891 .oprofile_cpu_type
= "ppc/7450",
892 .oprofile_type
= PPC_OPROFILE_G4
,
893 .machine_check
= machine_check_generic
,
894 .platform
= "ppc7450",
896 { /* 7450 2.3 and newer */
897 .pvr_mask
= 0xffff0000,
898 .pvr_value
= 0x80000000,
900 .cpu_features
= CPU_FTRS_7450_23
,
901 .cpu_user_features
= COMMON_USER
|
902 PPC_FEATURE_HAS_ALTIVEC_COMP
| PPC_FEATURE_PPC_LE
,
903 .mmu_features
= MMU_FTR_HPTE_TABLE
,
907 .pmc_type
= PPC_PMC_G4
,
908 .cpu_setup
= __setup_cpu_745x
,
909 .oprofile_cpu_type
= "ppc/7450",
910 .oprofile_type
= PPC_OPROFILE_G4
,
911 .machine_check
= machine_check_generic
,
912 .platform
= "ppc7450",
915 .pvr_mask
= 0xffffff00,
916 .pvr_value
= 0x80010100,
918 .cpu_features
= CPU_FTRS_7455_1
,
919 .cpu_user_features
= COMMON_USER
|
920 PPC_FEATURE_HAS_ALTIVEC_COMP
| PPC_FEATURE_PPC_LE
,
921 .mmu_features
= MMU_FTR_HPTE_TABLE
| MMU_FTR_USE_HIGH_BATS
,
925 .pmc_type
= PPC_PMC_G4
,
926 .cpu_setup
= __setup_cpu_745x
,
927 .oprofile_cpu_type
= "ppc/7450",
928 .oprofile_type
= PPC_OPROFILE_G4
,
929 .machine_check
= machine_check_generic
,
930 .platform
= "ppc7450",
933 .pvr_mask
= 0xffffffff,
934 .pvr_value
= 0x80010200,
936 .cpu_features
= CPU_FTRS_7455_20
,
937 .cpu_user_features
= COMMON_USER
|
938 PPC_FEATURE_HAS_ALTIVEC_COMP
| PPC_FEATURE_PPC_LE
,
939 .mmu_features
= MMU_FTR_HPTE_TABLE
| MMU_FTR_USE_HIGH_BATS
,
943 .pmc_type
= PPC_PMC_G4
,
944 .cpu_setup
= __setup_cpu_745x
,
945 .oprofile_cpu_type
= "ppc/7450",
946 .oprofile_type
= PPC_OPROFILE_G4
,
947 .machine_check
= machine_check_generic
,
948 .platform
= "ppc7450",
951 .pvr_mask
= 0xffff0000,
952 .pvr_value
= 0x80010000,
954 .cpu_features
= CPU_FTRS_7455
,
955 .cpu_user_features
= COMMON_USER
|
956 PPC_FEATURE_HAS_ALTIVEC_COMP
| PPC_FEATURE_PPC_LE
,
957 .mmu_features
= MMU_FTR_HPTE_TABLE
| MMU_FTR_USE_HIGH_BATS
,
961 .pmc_type
= PPC_PMC_G4
,
962 .cpu_setup
= __setup_cpu_745x
,
963 .oprofile_cpu_type
= "ppc/7450",
964 .oprofile_type
= PPC_OPROFILE_G4
,
965 .machine_check
= machine_check_generic
,
966 .platform
= "ppc7450",
968 { /* 7447/7457 Rev 1.0 */
969 .pvr_mask
= 0xffffffff,
970 .pvr_value
= 0x80020100,
971 .cpu_name
= "7447/7457",
972 .cpu_features
= CPU_FTRS_7447_10
,
973 .cpu_user_features
= COMMON_USER
|
974 PPC_FEATURE_HAS_ALTIVEC_COMP
| PPC_FEATURE_PPC_LE
,
975 .mmu_features
= MMU_FTR_HPTE_TABLE
| MMU_FTR_USE_HIGH_BATS
,
979 .pmc_type
= PPC_PMC_G4
,
980 .cpu_setup
= __setup_cpu_745x
,
981 .oprofile_cpu_type
= "ppc/7450",
982 .oprofile_type
= PPC_OPROFILE_G4
,
983 .machine_check
= machine_check_generic
,
984 .platform
= "ppc7450",
986 { /* 7447/7457 Rev 1.1 */
987 .pvr_mask
= 0xffffffff,
988 .pvr_value
= 0x80020101,
989 .cpu_name
= "7447/7457",
990 .cpu_features
= CPU_FTRS_7447_10
,
991 .cpu_user_features
= COMMON_USER
|
992 PPC_FEATURE_HAS_ALTIVEC_COMP
| PPC_FEATURE_PPC_LE
,
993 .mmu_features
= MMU_FTR_HPTE_TABLE
| MMU_FTR_USE_HIGH_BATS
,
997 .pmc_type
= PPC_PMC_G4
,
998 .cpu_setup
= __setup_cpu_745x
,
999 .oprofile_cpu_type
= "ppc/7450",
1000 .oprofile_type
= PPC_OPROFILE_G4
,
1001 .machine_check
= machine_check_generic
,
1002 .platform
= "ppc7450",
1004 { /* 7447/7457 Rev 1.2 and later */
1005 .pvr_mask
= 0xffff0000,
1006 .pvr_value
= 0x80020000,
1007 .cpu_name
= "7447/7457",
1008 .cpu_features
= CPU_FTRS_7447
,
1009 .cpu_user_features
= COMMON_USER
| PPC_FEATURE_HAS_ALTIVEC_COMP
| PPC_FEATURE_PPC_LE
,
1010 .mmu_features
= MMU_FTR_HPTE_TABLE
| MMU_FTR_USE_HIGH_BATS
,
1014 .pmc_type
= PPC_PMC_G4
,
1015 .cpu_setup
= __setup_cpu_745x
,
1016 .oprofile_cpu_type
= "ppc/7450",
1017 .oprofile_type
= PPC_OPROFILE_G4
,
1018 .machine_check
= machine_check_generic
,
1019 .platform
= "ppc7450",
1022 .pvr_mask
= 0xffff0000,
1023 .pvr_value
= 0x80030000,
1024 .cpu_name
= "7447A",
1025 .cpu_features
= CPU_FTRS_7447A
,
1026 .cpu_user_features
= COMMON_USER
|
1027 PPC_FEATURE_HAS_ALTIVEC_COMP
| PPC_FEATURE_PPC_LE
,
1028 .mmu_features
= MMU_FTR_HPTE_TABLE
| MMU_FTR_USE_HIGH_BATS
,
1032 .pmc_type
= PPC_PMC_G4
,
1033 .cpu_setup
= __setup_cpu_745x
,
1034 .oprofile_cpu_type
= "ppc/7450",
1035 .oprofile_type
= PPC_OPROFILE_G4
,
1036 .machine_check
= machine_check_generic
,
1037 .platform
= "ppc7450",
1040 .pvr_mask
= 0xffff0000,
1041 .pvr_value
= 0x80040000,
1043 .cpu_features
= CPU_FTRS_7448
,
1044 .cpu_user_features
= COMMON_USER
|
1045 PPC_FEATURE_HAS_ALTIVEC_COMP
| PPC_FEATURE_PPC_LE
,
1046 .mmu_features
= MMU_FTR_HPTE_TABLE
| MMU_FTR_USE_HIGH_BATS
,
1050 .pmc_type
= PPC_PMC_G4
,
1051 .cpu_setup
= __setup_cpu_745x
,
1052 .oprofile_cpu_type
= "ppc/7450",
1053 .oprofile_type
= PPC_OPROFILE_G4
,
1054 .machine_check
= machine_check_generic
,
1055 .platform
= "ppc7450",
1057 { /* 82xx (8240, 8245, 8260 are all 603e cores) */
1058 .pvr_mask
= 0x7fff0000,
1059 .pvr_value
= 0x00810000,
1061 .cpu_features
= CPU_FTRS_82XX
,
1062 .cpu_user_features
= COMMON_USER
,
1066 .cpu_setup
= __setup_cpu_603
,
1067 .machine_check
= machine_check_generic
,
1068 .platform
= "ppc603",
1070 { /* All G2_LE (603e core, plus some) have the same pvr */
1071 .pvr_mask
= 0x7fff0000,
1072 .pvr_value
= 0x00820000,
1073 .cpu_name
= "G2_LE",
1074 .cpu_features
= CPU_FTRS_G2_LE
,
1075 .cpu_user_features
= COMMON_USER
,
1076 .mmu_features
= MMU_FTR_USE_HIGH_BATS
,
1079 .cpu_setup
= __setup_cpu_603
,
1080 .machine_check
= machine_check_generic
,
1081 .platform
= "ppc603",
1083 { /* e300c1 (a 603e core, plus some) on 83xx */
1084 .pvr_mask
= 0x7fff0000,
1085 .pvr_value
= 0x00830000,
1086 .cpu_name
= "e300c1",
1087 .cpu_features
= CPU_FTRS_E300
,
1088 .cpu_user_features
= COMMON_USER
,
1089 .mmu_features
= MMU_FTR_USE_HIGH_BATS
,
1092 .cpu_setup
= __setup_cpu_603
,
1093 .machine_check
= machine_check_generic
,
1094 .platform
= "ppc603",
1096 { /* e300c2 (an e300c1 core, plus some, minus FPU) on 83xx */
1097 .pvr_mask
= 0x7fff0000,
1098 .pvr_value
= 0x00840000,
1099 .cpu_name
= "e300c2",
1100 .cpu_features
= CPU_FTRS_E300C2
,
1101 .cpu_user_features
= PPC_FEATURE_32
| PPC_FEATURE_HAS_MMU
,
1102 .mmu_features
= MMU_FTR_USE_HIGH_BATS
|
1103 MMU_FTR_NEED_DTLB_SW_LRU
,
1106 .cpu_setup
= __setup_cpu_603
,
1107 .machine_check
= machine_check_generic
,
1108 .platform
= "ppc603",
1110 { /* e300c3 (e300c1, plus one IU, half cache size) on 83xx */
1111 .pvr_mask
= 0x7fff0000,
1112 .pvr_value
= 0x00850000,
1113 .cpu_name
= "e300c3",
1114 .cpu_features
= CPU_FTRS_E300
,
1115 .cpu_user_features
= COMMON_USER
,
1116 .mmu_features
= MMU_FTR_USE_HIGH_BATS
|
1117 MMU_FTR_NEED_DTLB_SW_LRU
,
1120 .cpu_setup
= __setup_cpu_603
,
1122 .oprofile_cpu_type
= "ppc/e300",
1123 .oprofile_type
= PPC_OPROFILE_FSL_EMB
,
1124 .platform
= "ppc603",
1126 { /* e300c4 (e300c1, plus one IU) */
1127 .pvr_mask
= 0x7fff0000,
1128 .pvr_value
= 0x00860000,
1129 .cpu_name
= "e300c4",
1130 .cpu_features
= CPU_FTRS_E300
,
1131 .cpu_user_features
= COMMON_USER
,
1132 .mmu_features
= MMU_FTR_USE_HIGH_BATS
|
1133 MMU_FTR_NEED_DTLB_SW_LRU
,
1136 .cpu_setup
= __setup_cpu_603
,
1137 .machine_check
= machine_check_generic
,
1139 .oprofile_cpu_type
= "ppc/e300",
1140 .oprofile_type
= PPC_OPROFILE_FSL_EMB
,
1141 .platform
= "ppc603",
1143 { /* default match, we assume split I/D cache & TB (non-601)... */
1144 .pvr_mask
= 0x00000000,
1145 .pvr_value
= 0x00000000,
1146 .cpu_name
= "(generic PPC)",
1147 .cpu_features
= CPU_FTRS_CLASSIC32
,
1148 .cpu_user_features
= COMMON_USER
,
1149 .mmu_features
= MMU_FTR_HPTE_TABLE
,
1152 .machine_check
= machine_check_generic
,
1153 .platform
= "ppc603",
1155 #endif /* CLASSIC_PPC */
1158 .pvr_mask
= 0xffff0000,
1159 .pvr_value
= 0x00500000,
1161 /* CPU_FTR_MAYBE_CAN_DOZE is possible,
1162 * if the 8xx code is there.... */
1163 .cpu_features
= CPU_FTRS_8XX
,
1164 .cpu_user_features
= PPC_FEATURE_32
| PPC_FEATURE_HAS_MMU
,
1165 .mmu_features
= MMU_FTR_TYPE_8xx
,
1168 .platform
= "ppc823",
1170 #endif /* CONFIG_8xx */
1173 .pvr_mask
= 0xffffff00,
1174 .pvr_value
= 0x00200200,
1175 .cpu_name
= "403GC",
1176 .cpu_features
= CPU_FTRS_40X
,
1177 .cpu_user_features
= PPC_FEATURE_32
| PPC_FEATURE_HAS_MMU
,
1178 .mmu_features
= MMU_FTR_TYPE_40x
,
1181 .machine_check
= machine_check_4xx
,
1182 .platform
= "ppc403",
1185 .pvr_mask
= 0xffffff00,
1186 .pvr_value
= 0x00201400,
1187 .cpu_name
= "403GCX",
1188 .cpu_features
= CPU_FTRS_40X
,
1189 .cpu_user_features
= PPC_FEATURE_32
|
1190 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_NO_TB
,
1191 .mmu_features
= MMU_FTR_TYPE_40x
,
1194 .machine_check
= machine_check_4xx
,
1195 .platform
= "ppc403",
1198 .pvr_mask
= 0xffff0000,
1199 .pvr_value
= 0x00200000,
1200 .cpu_name
= "403G ??",
1201 .cpu_features
= CPU_FTRS_40X
,
1202 .cpu_user_features
= PPC_FEATURE_32
| PPC_FEATURE_HAS_MMU
,
1203 .mmu_features
= MMU_FTR_TYPE_40x
,
1206 .machine_check
= machine_check_4xx
,
1207 .platform
= "ppc403",
1210 .pvr_mask
= 0xffff0000,
1211 .pvr_value
= 0x40110000,
1212 .cpu_name
= "405GP",
1213 .cpu_features
= CPU_FTRS_40X
,
1214 .cpu_user_features
= PPC_FEATURE_32
|
1215 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
1216 .mmu_features
= MMU_FTR_TYPE_40x
,
1219 .machine_check
= machine_check_4xx
,
1220 .platform
= "ppc405",
1223 .pvr_mask
= 0xffff0000,
1224 .pvr_value
= 0x40130000,
1225 .cpu_name
= "STB03xxx",
1226 .cpu_features
= CPU_FTRS_40X
,
1227 .cpu_user_features
= PPC_FEATURE_32
|
1228 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
1229 .mmu_features
= MMU_FTR_TYPE_40x
,
1232 .machine_check
= machine_check_4xx
,
1233 .platform
= "ppc405",
1236 .pvr_mask
= 0xffff0000,
1237 .pvr_value
= 0x41810000,
1238 .cpu_name
= "STB04xxx",
1239 .cpu_features
= CPU_FTRS_40X
,
1240 .cpu_user_features
= PPC_FEATURE_32
|
1241 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
1242 .mmu_features
= MMU_FTR_TYPE_40x
,
1245 .machine_check
= machine_check_4xx
,
1246 .platform
= "ppc405",
1249 .pvr_mask
= 0xffff0000,
1250 .pvr_value
= 0x41610000,
1251 .cpu_name
= "NP405L",
1252 .cpu_features
= CPU_FTRS_40X
,
1253 .cpu_user_features
= PPC_FEATURE_32
|
1254 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
1255 .mmu_features
= MMU_FTR_TYPE_40x
,
1258 .machine_check
= machine_check_4xx
,
1259 .platform
= "ppc405",
1262 .pvr_mask
= 0xffff0000,
1263 .pvr_value
= 0x40B10000,
1264 .cpu_name
= "NP4GS3",
1265 .cpu_features
= CPU_FTRS_40X
,
1266 .cpu_user_features
= PPC_FEATURE_32
|
1267 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
1268 .mmu_features
= MMU_FTR_TYPE_40x
,
1271 .machine_check
= machine_check_4xx
,
1272 .platform
= "ppc405",
1275 .pvr_mask
= 0xffff0000,
1276 .pvr_value
= 0x41410000,
1277 .cpu_name
= "NP405H",
1278 .cpu_features
= CPU_FTRS_40X
,
1279 .cpu_user_features
= PPC_FEATURE_32
|
1280 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
1281 .mmu_features
= MMU_FTR_TYPE_40x
,
1284 .machine_check
= machine_check_4xx
,
1285 .platform
= "ppc405",
1288 .pvr_mask
= 0xffff0000,
1289 .pvr_value
= 0x50910000,
1290 .cpu_name
= "405GPr",
1291 .cpu_features
= CPU_FTRS_40X
,
1292 .cpu_user_features
= PPC_FEATURE_32
|
1293 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
1294 .mmu_features
= MMU_FTR_TYPE_40x
,
1297 .machine_check
= machine_check_4xx
,
1298 .platform
= "ppc405",
1301 .pvr_mask
= 0xffff0000,
1302 .pvr_value
= 0x51510000,
1303 .cpu_name
= "STBx25xx",
1304 .cpu_features
= CPU_FTRS_40X
,
1305 .cpu_user_features
= PPC_FEATURE_32
|
1306 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
1307 .mmu_features
= MMU_FTR_TYPE_40x
,
1310 .machine_check
= machine_check_4xx
,
1311 .platform
= "ppc405",
1314 .pvr_mask
= 0xffff0000,
1315 .pvr_value
= 0x41F10000,
1316 .cpu_name
= "405LP",
1317 .cpu_features
= CPU_FTRS_40X
,
1318 .cpu_user_features
= PPC_FEATURE_32
| PPC_FEATURE_HAS_MMU
,
1319 .mmu_features
= MMU_FTR_TYPE_40x
,
1322 .machine_check
= machine_check_4xx
,
1323 .platform
= "ppc405",
1325 { /* Xilinx Virtex-II Pro */
1326 .pvr_mask
= 0xfffff000,
1327 .pvr_value
= 0x20010000,
1328 .cpu_name
= "Virtex-II Pro",
1329 .cpu_features
= CPU_FTRS_40X
,
1330 .cpu_user_features
= PPC_FEATURE_32
|
1331 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
1332 .mmu_features
= MMU_FTR_TYPE_40x
,
1335 .machine_check
= machine_check_4xx
,
1336 .platform
= "ppc405",
1338 { /* Xilinx Virtex-4 FX */
1339 .pvr_mask
= 0xfffff000,
1340 .pvr_value
= 0x20011000,
1341 .cpu_name
= "Virtex-4 FX",
1342 .cpu_features
= CPU_FTRS_40X
,
1343 .cpu_user_features
= PPC_FEATURE_32
|
1344 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
1345 .mmu_features
= MMU_FTR_TYPE_40x
,
1348 .machine_check
= machine_check_4xx
,
1349 .platform
= "ppc405",
1352 .pvr_mask
= 0xffff0000,
1353 .pvr_value
= 0x51210000,
1354 .cpu_name
= "405EP",
1355 .cpu_features
= CPU_FTRS_40X
,
1356 .cpu_user_features
= PPC_FEATURE_32
|
1357 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
1358 .mmu_features
= MMU_FTR_TYPE_40x
,
1361 .machine_check
= machine_check_4xx
,
1362 .platform
= "ppc405",
1364 { /* 405EX Rev. A/B with Security */
1365 .pvr_mask
= 0xffff000f,
1366 .pvr_value
= 0x12910007,
1367 .cpu_name
= "405EX Rev. A/B",
1368 .cpu_features
= CPU_FTRS_40X
,
1369 .cpu_user_features
= PPC_FEATURE_32
|
1370 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
1371 .mmu_features
= MMU_FTR_TYPE_40x
,
1374 .machine_check
= machine_check_4xx
,
1375 .platform
= "ppc405",
1377 { /* 405EX Rev. C without Security */
1378 .pvr_mask
= 0xffff000f,
1379 .pvr_value
= 0x1291000d,
1380 .cpu_name
= "405EX Rev. C",
1381 .cpu_features
= CPU_FTRS_40X
,
1382 .cpu_user_features
= PPC_FEATURE_32
|
1383 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
1384 .mmu_features
= MMU_FTR_TYPE_40x
,
1387 .machine_check
= machine_check_4xx
,
1388 .platform
= "ppc405",
1390 { /* 405EX Rev. C with Security */
1391 .pvr_mask
= 0xffff000f,
1392 .pvr_value
= 0x1291000f,
1393 .cpu_name
= "405EX Rev. C",
1394 .cpu_features
= CPU_FTRS_40X
,
1395 .cpu_user_features
= PPC_FEATURE_32
|
1396 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
1397 .mmu_features
= MMU_FTR_TYPE_40x
,
1400 .machine_check
= machine_check_4xx
,
1401 .platform
= "ppc405",
1403 { /* 405EX Rev. D without Security */
1404 .pvr_mask
= 0xffff000f,
1405 .pvr_value
= 0x12910003,
1406 .cpu_name
= "405EX Rev. D",
1407 .cpu_features
= CPU_FTRS_40X
,
1408 .cpu_user_features
= PPC_FEATURE_32
|
1409 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
1410 .mmu_features
= MMU_FTR_TYPE_40x
,
1413 .machine_check
= machine_check_4xx
,
1414 .platform
= "ppc405",
1416 { /* 405EX Rev. D with Security */
1417 .pvr_mask
= 0xffff000f,
1418 .pvr_value
= 0x12910005,
1419 .cpu_name
= "405EX Rev. D",
1420 .cpu_features
= CPU_FTRS_40X
,
1421 .cpu_user_features
= PPC_FEATURE_32
|
1422 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
1423 .mmu_features
= MMU_FTR_TYPE_40x
,
1426 .machine_check
= machine_check_4xx
,
1427 .platform
= "ppc405",
1429 { /* 405EXr Rev. A/B without Security */
1430 .pvr_mask
= 0xffff000f,
1431 .pvr_value
= 0x12910001,
1432 .cpu_name
= "405EXr Rev. A/B",
1433 .cpu_features
= CPU_FTRS_40X
,
1434 .cpu_user_features
= PPC_FEATURE_32
|
1435 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
1436 .mmu_features
= MMU_FTR_TYPE_40x
,
1439 .machine_check
= machine_check_4xx
,
1440 .platform
= "ppc405",
1442 { /* 405EXr Rev. C without Security */
1443 .pvr_mask
= 0xffff000f,
1444 .pvr_value
= 0x12910009,
1445 .cpu_name
= "405EXr Rev. C",
1446 .cpu_features
= CPU_FTRS_40X
,
1447 .cpu_user_features
= PPC_FEATURE_32
|
1448 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
1449 .mmu_features
= MMU_FTR_TYPE_40x
,
1452 .machine_check
= machine_check_4xx
,
1453 .platform
= "ppc405",
1455 { /* 405EXr Rev. C with Security */
1456 .pvr_mask
= 0xffff000f,
1457 .pvr_value
= 0x1291000b,
1458 .cpu_name
= "405EXr Rev. C",
1459 .cpu_features
= CPU_FTRS_40X
,
1460 .cpu_user_features
= PPC_FEATURE_32
|
1461 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
1462 .mmu_features
= MMU_FTR_TYPE_40x
,
1465 .machine_check
= machine_check_4xx
,
1466 .platform
= "ppc405",
1468 { /* 405EXr Rev. D without Security */
1469 .pvr_mask
= 0xffff000f,
1470 .pvr_value
= 0x12910000,
1471 .cpu_name
= "405EXr Rev. D",
1472 .cpu_features
= CPU_FTRS_40X
,
1473 .cpu_user_features
= PPC_FEATURE_32
|
1474 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
1475 .mmu_features
= MMU_FTR_TYPE_40x
,
1478 .machine_check
= machine_check_4xx
,
1479 .platform
= "ppc405",
1481 { /* 405EXr Rev. D with Security */
1482 .pvr_mask
= 0xffff000f,
1483 .pvr_value
= 0x12910002,
1484 .cpu_name
= "405EXr Rev. D",
1485 .cpu_features
= CPU_FTRS_40X
,
1486 .cpu_user_features
= PPC_FEATURE_32
|
1487 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
1488 .mmu_features
= MMU_FTR_TYPE_40x
,
1491 .machine_check
= machine_check_4xx
,
1492 .platform
= "ppc405",
1496 .pvr_mask
= 0xffff0000,
1497 .pvr_value
= 0x41510000,
1498 .cpu_name
= "405EZ",
1499 .cpu_features
= CPU_FTRS_40X
,
1500 .cpu_user_features
= PPC_FEATURE_32
|
1501 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
1502 .mmu_features
= MMU_FTR_TYPE_40x
,
1505 .machine_check
= machine_check_4xx
,
1506 .platform
= "ppc405",
1508 { /* default match */
1509 .pvr_mask
= 0x00000000,
1510 .pvr_value
= 0x00000000,
1511 .cpu_name
= "(generic 40x PPC)",
1512 .cpu_features
= CPU_FTRS_40X
,
1513 .cpu_user_features
= PPC_FEATURE_32
|
1514 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
1515 .mmu_features
= MMU_FTR_TYPE_40x
,
1518 .machine_check
= machine_check_4xx
,
1519 .platform
= "ppc405",
1522 #endif /* CONFIG_40x */
1525 .pvr_mask
= 0xf0000fff,
1526 .pvr_value
= 0x40000850,
1527 .cpu_name
= "440GR Rev. A",
1528 .cpu_features
= CPU_FTRS_44X
,
1529 .cpu_user_features
= COMMON_USER_BOOKE
,
1530 .mmu_features
= MMU_FTR_TYPE_44x
,
1533 .machine_check
= machine_check_4xx
,
1534 .platform
= "ppc440",
1536 { /* Use logical PVR for 440EP (logical pvr = pvr | 0x8) */
1537 .pvr_mask
= 0xf0000fff,
1538 .pvr_value
= 0x40000858,
1539 .cpu_name
= "440EP Rev. A",
1540 .cpu_features
= CPU_FTRS_44X
,
1541 .cpu_user_features
= COMMON_USER_BOOKE
| PPC_FEATURE_HAS_FPU
,
1542 .mmu_features
= MMU_FTR_TYPE_44x
,
1545 .cpu_setup
= __setup_cpu_440ep
,
1546 .machine_check
= machine_check_4xx
,
1547 .platform
= "ppc440",
1550 .pvr_mask
= 0xf0000fff,
1551 .pvr_value
= 0x400008d3,
1552 .cpu_name
= "440GR Rev. B",
1553 .cpu_features
= CPU_FTRS_44X
,
1554 .cpu_user_features
= COMMON_USER_BOOKE
| PPC_FEATURE_HAS_FPU
,
1555 .mmu_features
= MMU_FTR_TYPE_44x
,
1558 .machine_check
= machine_check_4xx
,
1559 .platform
= "ppc440",
1561 { /* Matches both physical and logical PVR for 440EP (logical pvr = pvr | 0x8) */
1562 .pvr_mask
= 0xf0000ff7,
1563 .pvr_value
= 0x400008d4,
1564 .cpu_name
= "440EP Rev. C",
1565 .cpu_features
= CPU_FTRS_44X
,
1566 .cpu_user_features
= COMMON_USER_BOOKE
| PPC_FEATURE_HAS_FPU
,
1567 .mmu_features
= MMU_FTR_TYPE_44x
,
1570 .cpu_setup
= __setup_cpu_440ep
,
1571 .machine_check
= machine_check_4xx
,
1572 .platform
= "ppc440",
1574 { /* Use logical PVR for 440EP (logical pvr = pvr | 0x8) */
1575 .pvr_mask
= 0xf0000fff,
1576 .pvr_value
= 0x400008db,
1577 .cpu_name
= "440EP Rev. B",
1578 .cpu_features
= CPU_FTRS_44X
,
1579 .cpu_user_features
= COMMON_USER_BOOKE
| PPC_FEATURE_HAS_FPU
,
1580 .mmu_features
= MMU_FTR_TYPE_44x
,
1583 .cpu_setup
= __setup_cpu_440ep
,
1584 .machine_check
= machine_check_4xx
,
1585 .platform
= "ppc440",
1588 .pvr_mask
= 0xf0000ffb,
1589 .pvr_value
= 0x200008D0,
1590 .cpu_name
= "440GRX",
1591 .cpu_features
= CPU_FTRS_44X
,
1592 .cpu_user_features
= COMMON_USER_BOOKE
,
1593 .mmu_features
= MMU_FTR_TYPE_44x
,
1596 .cpu_setup
= __setup_cpu_440grx
,
1597 .machine_check
= machine_check_440A
,
1598 .platform
= "ppc440",
1600 { /* Use logical PVR for 440EPx (logical pvr = pvr | 0x8) */
1601 .pvr_mask
= 0xf0000ffb,
1602 .pvr_value
= 0x200008D8,
1603 .cpu_name
= "440EPX",
1604 .cpu_features
= CPU_FTRS_44X
,
1605 .cpu_user_features
= COMMON_USER_BOOKE
| PPC_FEATURE_HAS_FPU
,
1606 .mmu_features
= MMU_FTR_TYPE_44x
,
1609 .cpu_setup
= __setup_cpu_440epx
,
1610 .machine_check
= machine_check_440A
,
1611 .platform
= "ppc440",
1613 { /* 440GP Rev. B */
1614 .pvr_mask
= 0xf0000fff,
1615 .pvr_value
= 0x40000440,
1616 .cpu_name
= "440GP Rev. B",
1617 .cpu_features
= CPU_FTRS_44X
,
1618 .cpu_user_features
= COMMON_USER_BOOKE
,
1619 .mmu_features
= MMU_FTR_TYPE_44x
,
1622 .machine_check
= machine_check_4xx
,
1623 .platform
= "ppc440gp",
1625 { /* 440GP Rev. C */
1626 .pvr_mask
= 0xf0000fff,
1627 .pvr_value
= 0x40000481,
1628 .cpu_name
= "440GP Rev. C",
1629 .cpu_features
= CPU_FTRS_44X
,
1630 .cpu_user_features
= COMMON_USER_BOOKE
,
1631 .mmu_features
= MMU_FTR_TYPE_44x
,
1634 .machine_check
= machine_check_4xx
,
1635 .platform
= "ppc440gp",
1637 { /* 440GX Rev. A */
1638 .pvr_mask
= 0xf0000fff,
1639 .pvr_value
= 0x50000850,
1640 .cpu_name
= "440GX Rev. A",
1641 .cpu_features
= CPU_FTRS_44X
,
1642 .cpu_user_features
= COMMON_USER_BOOKE
,
1643 .mmu_features
= MMU_FTR_TYPE_44x
,
1646 .cpu_setup
= __setup_cpu_440gx
,
1647 .machine_check
= machine_check_440A
,
1648 .platform
= "ppc440",
1650 { /* 440GX Rev. B */
1651 .pvr_mask
= 0xf0000fff,
1652 .pvr_value
= 0x50000851,
1653 .cpu_name
= "440GX Rev. B",
1654 .cpu_features
= CPU_FTRS_44X
,
1655 .cpu_user_features
= COMMON_USER_BOOKE
,
1656 .mmu_features
= MMU_FTR_TYPE_44x
,
1659 .cpu_setup
= __setup_cpu_440gx
,
1660 .machine_check
= machine_check_440A
,
1661 .platform
= "ppc440",
1663 { /* 440GX Rev. C */
1664 .pvr_mask
= 0xf0000fff,
1665 .pvr_value
= 0x50000892,
1666 .cpu_name
= "440GX Rev. C",
1667 .cpu_features
= CPU_FTRS_44X
,
1668 .cpu_user_features
= COMMON_USER_BOOKE
,
1669 .mmu_features
= MMU_FTR_TYPE_44x
,
1672 .cpu_setup
= __setup_cpu_440gx
,
1673 .machine_check
= machine_check_440A
,
1674 .platform
= "ppc440",
1676 { /* 440GX Rev. F */
1677 .pvr_mask
= 0xf0000fff,
1678 .pvr_value
= 0x50000894,
1679 .cpu_name
= "440GX Rev. F",
1680 .cpu_features
= CPU_FTRS_44X
,
1681 .cpu_user_features
= COMMON_USER_BOOKE
,
1682 .mmu_features
= MMU_FTR_TYPE_44x
,
1685 .cpu_setup
= __setup_cpu_440gx
,
1686 .machine_check
= machine_check_440A
,
1687 .platform
= "ppc440",
1689 { /* 440SP Rev. A */
1690 .pvr_mask
= 0xfff00fff,
1691 .pvr_value
= 0x53200891,
1692 .cpu_name
= "440SP Rev. A",
1693 .cpu_features
= CPU_FTRS_44X
,
1694 .cpu_user_features
= COMMON_USER_BOOKE
,
1695 .mmu_features
= MMU_FTR_TYPE_44x
,
1698 .machine_check
= machine_check_4xx
,
1699 .platform
= "ppc440",
1701 { /* 440SPe Rev. A */
1702 .pvr_mask
= 0xfff00fff,
1703 .pvr_value
= 0x53400890,
1704 .cpu_name
= "440SPe Rev. A",
1705 .cpu_features
= CPU_FTRS_44X
,
1706 .cpu_user_features
= COMMON_USER_BOOKE
,
1707 .mmu_features
= MMU_FTR_TYPE_44x
,
1710 .cpu_setup
= __setup_cpu_440spe
,
1711 .machine_check
= machine_check_440A
,
1712 .platform
= "ppc440",
1714 { /* 440SPe Rev. B */
1715 .pvr_mask
= 0xfff00fff,
1716 .pvr_value
= 0x53400891,
1717 .cpu_name
= "440SPe Rev. B",
1718 .cpu_features
= CPU_FTRS_44X
,
1719 .cpu_user_features
= COMMON_USER_BOOKE
,
1720 .mmu_features
= MMU_FTR_TYPE_44x
,
1723 .cpu_setup
= __setup_cpu_440spe
,
1724 .machine_check
= machine_check_440A
,
1725 .platform
= "ppc440",
1727 { /* 440 in Xilinx Virtex-5 FXT */
1728 .pvr_mask
= 0xfffffff0,
1729 .pvr_value
= 0x7ff21910,
1730 .cpu_name
= "440 in Virtex-5 FXT",
1731 .cpu_features
= CPU_FTRS_44X
,
1732 .cpu_user_features
= COMMON_USER_BOOKE
,
1733 .mmu_features
= MMU_FTR_TYPE_44x
,
1736 .cpu_setup
= __setup_cpu_440x5
,
1737 .machine_check
= machine_check_440A
,
1738 .platform
= "ppc440",
1741 .pvr_mask
= 0xffff0006,
1742 .pvr_value
= 0x13020002,
1743 .cpu_name
= "460EX",
1744 .cpu_features
= CPU_FTRS_440x6
,
1745 .cpu_user_features
= COMMON_USER_BOOKE
| PPC_FEATURE_HAS_FPU
,
1746 .mmu_features
= MMU_FTR_TYPE_44x
,
1749 .cpu_setup
= __setup_cpu_460ex
,
1750 .machine_check
= machine_check_440A
,
1751 .platform
= "ppc440",
1754 .pvr_mask
= 0xffff0007,
1755 .pvr_value
= 0x13020004,
1756 .cpu_name
= "460EX Rev. B",
1757 .cpu_features
= CPU_FTRS_440x6
,
1758 .cpu_user_features
= COMMON_USER_BOOKE
| PPC_FEATURE_HAS_FPU
,
1759 .mmu_features
= MMU_FTR_TYPE_44x
,
1762 .cpu_setup
= __setup_cpu_460ex
,
1763 .machine_check
= machine_check_440A
,
1764 .platform
= "ppc440",
1767 .pvr_mask
= 0xffff0006,
1768 .pvr_value
= 0x13020000,
1769 .cpu_name
= "460GT",
1770 .cpu_features
= CPU_FTRS_440x6
,
1771 .cpu_user_features
= COMMON_USER_BOOKE
| PPC_FEATURE_HAS_FPU
,
1772 .mmu_features
= MMU_FTR_TYPE_44x
,
1775 .cpu_setup
= __setup_cpu_460gt
,
1776 .machine_check
= machine_check_440A
,
1777 .platform
= "ppc440",
1780 .pvr_mask
= 0xffff0007,
1781 .pvr_value
= 0x13020005,
1782 .cpu_name
= "460GT Rev. B",
1783 .cpu_features
= CPU_FTRS_440x6
,
1784 .cpu_user_features
= COMMON_USER_BOOKE
| PPC_FEATURE_HAS_FPU
,
1785 .mmu_features
= MMU_FTR_TYPE_44x
,
1788 .cpu_setup
= __setup_cpu_460gt
,
1789 .machine_check
= machine_check_440A
,
1790 .platform
= "ppc440",
1793 .pvr_mask
= 0xffffff00,
1794 .pvr_value
= 0x13541800,
1795 .cpu_name
= "460SX",
1796 .cpu_features
= CPU_FTRS_44X
,
1797 .cpu_user_features
= COMMON_USER_BOOKE
,
1798 .mmu_features
= MMU_FTR_TYPE_44x
,
1801 .cpu_setup
= __setup_cpu_460sx
,
1802 .machine_check
= machine_check_440A
,
1803 .platform
= "ppc440",
1805 { /* 464 in APM821xx */
1806 .pvr_mask
= 0xffffff00,
1807 .pvr_value
= 0x12C41C80,
1808 .cpu_name
= "APM821XX",
1809 .cpu_features
= CPU_FTRS_44X
,
1810 .cpu_user_features
= COMMON_USER_BOOKE
|
1811 PPC_FEATURE_HAS_FPU
,
1812 .mmu_features
= MMU_FTR_TYPE_44x
,
1815 .cpu_setup
= __setup_cpu_apm821xx
,
1816 .machine_check
= machine_check_440A
,
1817 .platform
= "ppc440",
1819 { /* 476 DD2 core */
1820 .pvr_mask
= 0xffffffff,
1821 .pvr_value
= 0x11a52080,
1823 .cpu_features
= CPU_FTRS_47X
| CPU_FTR_476_DD2
,
1824 .cpu_user_features
= COMMON_USER_BOOKE
|
1825 PPC_FEATURE_HAS_FPU
,
1826 .mmu_features
= MMU_FTR_TYPE_47x
|
1827 MMU_FTR_USE_TLBIVAX_BCAST
| MMU_FTR_LOCK_BCAST_INVAL
,
1829 .dcache_bsize
= 128,
1830 .machine_check
= machine_check_47x
,
1831 .platform
= "ppc470",
1834 .pvr_mask
= 0xffff0000,
1835 .pvr_value
= 0x00050000,
1837 .cpu_features
= CPU_FTRS_47X
,
1838 .cpu_user_features
= COMMON_USER_BOOKE
|
1839 PPC_FEATURE_HAS_FPU
,
1840 .mmu_features
= MMU_FTR_TYPE_47x
|
1841 MMU_FTR_USE_TLBIVAX_BCAST
| MMU_FTR_LOCK_BCAST_INVAL
,
1843 .dcache_bsize
= 128,
1844 .machine_check
= machine_check_47x
,
1845 .platform
= "ppc470",
1848 .pvr_mask
= 0xffff0000,
1849 .pvr_value
= 0x11a50000,
1851 .cpu_features
= CPU_FTRS_47X
,
1852 .cpu_user_features
= COMMON_USER_BOOKE
|
1853 PPC_FEATURE_HAS_FPU
,
1854 .mmu_features
= MMU_FTR_TYPE_47x
|
1855 MMU_FTR_USE_TLBIVAX_BCAST
| MMU_FTR_LOCK_BCAST_INVAL
,
1857 .dcache_bsize
= 128,
1858 .machine_check
= machine_check_47x
,
1859 .platform
= "ppc470",
1861 { /* default match */
1862 .pvr_mask
= 0x00000000,
1863 .pvr_value
= 0x00000000,
1864 .cpu_name
= "(generic 44x PPC)",
1865 .cpu_features
= CPU_FTRS_44X
,
1866 .cpu_user_features
= COMMON_USER_BOOKE
,
1867 .mmu_features
= MMU_FTR_TYPE_44x
,
1870 .machine_check
= machine_check_4xx
,
1871 .platform
= "ppc440",
1873 #endif /* CONFIG_44x */
1876 .pvr_mask
= 0xfff00000,
1877 .pvr_value
= 0x81000000,
1878 .cpu_name
= "e200z5",
1879 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1880 .cpu_features
= CPU_FTRS_E200
,
1881 .cpu_user_features
= COMMON_USER_BOOKE
|
1882 PPC_FEATURE_HAS_EFP_SINGLE
|
1883 PPC_FEATURE_UNIFIED_CACHE
,
1884 .mmu_features
= MMU_FTR_TYPE_FSL_E
,
1886 .machine_check
= machine_check_e200
,
1887 .platform
= "ppc5554",
1890 .pvr_mask
= 0xfff00000,
1891 .pvr_value
= 0x81100000,
1892 .cpu_name
= "e200z6",
1893 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1894 .cpu_features
= CPU_FTRS_E200
,
1895 .cpu_user_features
= COMMON_USER_BOOKE
|
1896 PPC_FEATURE_HAS_SPE_COMP
|
1897 PPC_FEATURE_HAS_EFP_SINGLE_COMP
|
1898 PPC_FEATURE_UNIFIED_CACHE
,
1899 .mmu_features
= MMU_FTR_TYPE_FSL_E
,
1901 .machine_check
= machine_check_e200
,
1902 .platform
= "ppc5554",
1904 { /* default match */
1905 .pvr_mask
= 0x00000000,
1906 .pvr_value
= 0x00000000,
1907 .cpu_name
= "(generic E200 PPC)",
1908 .cpu_features
= CPU_FTRS_E200
,
1909 .cpu_user_features
= COMMON_USER_BOOKE
|
1910 PPC_FEATURE_HAS_EFP_SINGLE
|
1911 PPC_FEATURE_UNIFIED_CACHE
,
1912 .mmu_features
= MMU_FTR_TYPE_FSL_E
,
1914 .cpu_setup
= __setup_cpu_e200
,
1915 .machine_check
= machine_check_e200
,
1916 .platform
= "ppc5554",
1918 #endif /* CONFIG_E200 */
1919 #endif /* CONFIG_PPC32 */
1923 .pvr_mask
= 0xffff0000,
1924 .pvr_value
= 0x80200000,
1926 .cpu_features
= CPU_FTRS_E500
,
1927 .cpu_user_features
= COMMON_USER_BOOKE
|
1928 PPC_FEATURE_HAS_SPE_COMP
|
1929 PPC_FEATURE_HAS_EFP_SINGLE_COMP
,
1930 .mmu_features
= MMU_FTR_TYPE_FSL_E
,
1934 .oprofile_cpu_type
= "ppc/e500",
1935 .oprofile_type
= PPC_OPROFILE_FSL_EMB
,
1936 .cpu_setup
= __setup_cpu_e500v1
,
1937 .machine_check
= machine_check_e500
,
1938 .platform
= "ppc8540",
1941 .pvr_mask
= 0xffff0000,
1942 .pvr_value
= 0x80210000,
1943 .cpu_name
= "e500v2",
1944 .cpu_features
= CPU_FTRS_E500_2
,
1945 .cpu_user_features
= COMMON_USER_BOOKE
|
1946 PPC_FEATURE_HAS_SPE_COMP
|
1947 PPC_FEATURE_HAS_EFP_SINGLE_COMP
|
1948 PPC_FEATURE_HAS_EFP_DOUBLE_COMP
,
1949 .mmu_features
= MMU_FTR_TYPE_FSL_E
| MMU_FTR_BIG_PHYS
,
1953 .oprofile_cpu_type
= "ppc/e500",
1954 .oprofile_type
= PPC_OPROFILE_FSL_EMB
,
1955 .cpu_setup
= __setup_cpu_e500v2
,
1956 .machine_check
= machine_check_e500
,
1957 .platform
= "ppc8548",
1960 .pvr_mask
= 0xffff0000,
1961 .pvr_value
= 0x80230000,
1962 .cpu_name
= "e500mc",
1963 .cpu_features
= CPU_FTRS_E500MC
,
1964 .cpu_user_features
= COMMON_USER_BOOKE
| PPC_FEATURE_HAS_FPU
,
1965 .mmu_features
= MMU_FTR_TYPE_FSL_E
| MMU_FTR_BIG_PHYS
|
1970 .oprofile_cpu_type
= "ppc/e500mc",
1971 .oprofile_type
= PPC_OPROFILE_FSL_EMB
,
1972 .cpu_setup
= __setup_cpu_e500mc
,
1973 .machine_check
= machine_check_e500mc
,
1974 .platform
= "ppce500mc",
1976 #endif /* CONFIG_PPC32 */
1978 .pvr_mask
= 0xffff0000,
1979 .pvr_value
= 0x80240000,
1980 .cpu_name
= "e5500",
1981 .cpu_features
= CPU_FTRS_E5500
,
1982 .cpu_user_features
= COMMON_USER_BOOKE
| PPC_FEATURE_HAS_FPU
,
1983 .mmu_features
= MMU_FTR_TYPE_FSL_E
| MMU_FTR_BIG_PHYS
|
1988 .oprofile_cpu_type
= "ppc/e500mc",
1989 .oprofile_type
= PPC_OPROFILE_FSL_EMB
,
1990 .cpu_setup
= __setup_cpu_e5500
,
1991 .cpu_restore
= __restore_cpu_e5500
,
1992 .machine_check
= machine_check_e500mc
,
1993 .platform
= "ppce5500",
1996 { /* default match */
1997 .pvr_mask
= 0x00000000,
1998 .pvr_value
= 0x00000000,
1999 .cpu_name
= "(generic E500 PPC)",
2000 .cpu_features
= CPU_FTRS_E500
,
2001 .cpu_user_features
= COMMON_USER_BOOKE
|
2002 PPC_FEATURE_HAS_SPE_COMP
|
2003 PPC_FEATURE_HAS_EFP_SINGLE_COMP
,
2004 .mmu_features
= MMU_FTR_TYPE_FSL_E
,
2007 .machine_check
= machine_check_e500
,
2008 .platform
= "powerpc",
2010 #endif /* CONFIG_PPC32 */
2011 #endif /* CONFIG_E500 */
2013 #ifdef CONFIG_PPC_A2
2014 { /* Standard A2 (>= DD2) + FPU core */
2015 .pvr_mask
= 0xffff0000,
2016 .pvr_value
= 0x00480000,
2017 .cpu_name
= "A2 (>= DD2)",
2018 .cpu_features
= CPU_FTRS_A2
,
2019 .cpu_user_features
= COMMON_USER_PPC64
,
2020 .mmu_features
= MMU_FTRS_A2
,
2024 .cpu_setup
= __setup_cpu_a2
,
2025 .cpu_restore
= __restore_cpu_a2
,
2026 .machine_check
= machine_check_generic
,
2027 .platform
= "ppca2",
2029 { /* This is a default entry to get going, to be replaced by
2030 * a real one at some stage
2032 #define CPU_FTRS_BASE_BOOK3E (CPU_FTR_USE_TB | \
2033 CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_SMT | \
2034 CPU_FTR_NODSISRALIGN | CPU_FTR_NOEXECUTE)
2035 .pvr_mask
= 0x00000000,
2036 .pvr_value
= 0x00000000,
2037 .cpu_name
= "Book3E",
2038 .cpu_features
= CPU_FTRS_BASE_BOOK3E
,
2039 .cpu_user_features
= COMMON_USER_PPC64
,
2040 .mmu_features
= MMU_FTR_TYPE_3E
| MMU_FTR_USE_TLBILX
|
2041 MMU_FTR_USE_TLBIVAX_BCAST
|
2042 MMU_FTR_LOCK_BCAST_INVAL
,
2046 .machine_check
= machine_check_generic
,
2047 .platform
= "power6",
2049 #endif /* CONFIG_PPC_A2 */
2052 static struct cpu_spec the_cpu_spec
;
2054 static struct cpu_spec
* __init
setup_cpu_spec(unsigned long offset
,
2057 struct cpu_spec
*t
= &the_cpu_spec
;
2058 struct cpu_spec old
;
2063 /* Copy everything, then do fixups */
2067 * If we are overriding a previous value derived from the real
2068 * PVR with a new value obtained using a logical PVR value,
2069 * don't modify the performance monitor fields.
2071 if (old
.num_pmcs
&& !s
->num_pmcs
) {
2072 t
->num_pmcs
= old
.num_pmcs
;
2073 t
->pmc_type
= old
.pmc_type
;
2074 t
->oprofile_type
= old
.oprofile_type
;
2075 t
->oprofile_mmcra_sihv
= old
.oprofile_mmcra_sihv
;
2076 t
->oprofile_mmcra_sipr
= old
.oprofile_mmcra_sipr
;
2077 t
->oprofile_mmcra_clear
= old
.oprofile_mmcra_clear
;
2080 * If we have passed through this logic once before and
2081 * have pulled the default case because the real PVR was
2082 * not found inside cpu_specs[], then we are possibly
2083 * running in compatibility mode. In that case, let the
2084 * oprofiler know which set of compatibility counters to
2085 * pull from by making sure the oprofile_cpu_type string
2086 * is set to that of compatibility mode. If the
2087 * oprofile_cpu_type already has a value, then we are
2088 * possibly overriding a real PVR with a logical one,
2089 * and, in that case, keep the current value for
2090 * oprofile_cpu_type.
2092 if (old
.oprofile_cpu_type
!= NULL
) {
2093 t
->oprofile_cpu_type
= old
.oprofile_cpu_type
;
2094 t
->oprofile_type
= old
.oprofile_type
;
2098 *PTRRELOC(&cur_cpu_spec
) = &the_cpu_spec
;
2101 * Set the base platform string once; assumes
2102 * we're called with real pvr first.
2104 if (*PTRRELOC(&powerpc_base_platform
) == NULL
)
2105 *PTRRELOC(&powerpc_base_platform
) = t
->platform
;
2107 #if defined(CONFIG_PPC64) || defined(CONFIG_BOOKE)
2108 /* ppc64 and booke expect identify_cpu to also call setup_cpu for
2109 * that processor. I will consolidate that at a later time, for now,
2110 * just use #ifdef. We also don't need to PTRRELOC the function
2111 * pointer on ppc64 and booke as we are running at 0 in real mode
2112 * on ppc64 and reloc_offset is always 0 on booke.
2115 t
->cpu_setup(offset
, t
);
2117 #endif /* CONFIG_PPC64 || CONFIG_BOOKE */
2122 struct cpu_spec
* __init
identify_cpu(unsigned long offset
, unsigned int pvr
)
2124 struct cpu_spec
*s
= cpu_specs
;
2129 for (i
= 0; i
< ARRAY_SIZE(cpu_specs
); i
++,s
++) {
2130 if ((pvr
& s
->pvr_mask
) == s
->pvr_value
)
2131 return setup_cpu_spec(offset
, s
);