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>
22 struct cpu_spec* cur_cpu_spec = NULL;
23 EXPORT_SYMBOL(cur_cpu_spec);
26 * Unlike ppc32, ppc64 will only call this once for the boot CPU, it's
27 * the responsibility of the appropriate CPU save/restore functions to
28 * eventually copy these settings over. Those save/restore aren't yet
29 * part of the cputable though. That has to be fixed for both ppc32
33 extern void __setup_cpu_603(unsigned long offset, struct cpu_spec* spec);
34 extern void __setup_cpu_604(unsigned long offset, struct cpu_spec* spec);
35 extern void __setup_cpu_750(unsigned long offset, struct cpu_spec* spec);
36 extern void __setup_cpu_750cx(unsigned long offset, struct cpu_spec* spec);
37 extern void __setup_cpu_750fx(unsigned long offset, struct cpu_spec* spec);
38 extern void __setup_cpu_7400(unsigned long offset, struct cpu_spec* spec);
39 extern void __setup_cpu_7410(unsigned long offset, struct cpu_spec* spec);
40 extern void __setup_cpu_745x(unsigned long offset, struct cpu_spec* spec);
41 #endif /* CONFIG_PPC32 */
43 extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec);
44 extern void __restore_cpu_ppc970(void);
45 #endif /* CONFIG_PPC64 */
47 /* This table only contains "desktop" CPUs, it need to be filled with embedded
50 #define COMMON_USER (PPC_FEATURE_32 | PPC_FEATURE_HAS_FPU | \
52 #define COMMON_USER_PPC64 (COMMON_USER | PPC_FEATURE_64)
53 #define COMMON_USER_POWER4 (COMMON_USER_PPC64 | PPC_FEATURE_POWER4)
54 #define COMMON_USER_POWER5 (COMMON_USER_PPC64 | PPC_FEATURE_POWER5 |\
55 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
56 #define COMMON_USER_POWER5_PLUS (COMMON_USER_PPC64 | PPC_FEATURE_POWER5_PLUS|\
57 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
58 #define COMMON_USER_POWER6 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_05 |\
59 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \
61 #define COMMON_USER_PA6T (COMMON_USER_PPC64 | PPC_FEATURE_PA6T |\
62 PPC_FEATURE_TRUE_LE | \
63 PPC_FEATURE_HAS_ALTIVEC_COMP)
64 #define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \
67 /* We only set the spe features if the kernel was compiled with
71 #define PPC_FEATURE_SPE_COMP PPC_FEATURE_HAS_SPE
73 #define PPC_FEATURE_SPE_COMP 0
76 struct cpu_spec cpu_specs[] = {
79 .pvr_mask = 0xffff0000,
80 .pvr_value = 0x00400000,
81 .cpu_name = "POWER3 (630)",
82 .cpu_features = CPU_FTRS_POWER3,
83 .cpu_user_features = COMMON_USER_PPC64|PPC_FEATURE_PPC_LE,
87 .oprofile_cpu_type = "ppc64/power3",
88 .oprofile_type = PPC_OPROFILE_RS64,
92 .pvr_mask = 0xffff0000,
93 .pvr_value = 0x00410000,
94 .cpu_name = "POWER3 (630+)",
95 .cpu_features = CPU_FTRS_POWER3,
96 .cpu_user_features = COMMON_USER_PPC64|PPC_FEATURE_PPC_LE,
100 .oprofile_cpu_type = "ppc64/power3",
101 .oprofile_type = PPC_OPROFILE_RS64,
102 .platform = "power3",
105 .pvr_mask = 0xffff0000,
106 .pvr_value = 0x00330000,
107 .cpu_name = "RS64-II (northstar)",
108 .cpu_features = CPU_FTRS_RS64,
109 .cpu_user_features = COMMON_USER_PPC64,
113 .oprofile_cpu_type = "ppc64/rs64",
114 .oprofile_type = PPC_OPROFILE_RS64,
118 .pvr_mask = 0xffff0000,
119 .pvr_value = 0x00340000,
120 .cpu_name = "RS64-III (pulsar)",
121 .cpu_features = CPU_FTRS_RS64,
122 .cpu_user_features = COMMON_USER_PPC64,
126 .oprofile_cpu_type = "ppc64/rs64",
127 .oprofile_type = PPC_OPROFILE_RS64,
131 .pvr_mask = 0xffff0000,
132 .pvr_value = 0x00360000,
133 .cpu_name = "RS64-III (icestar)",
134 .cpu_features = CPU_FTRS_RS64,
135 .cpu_user_features = COMMON_USER_PPC64,
139 .oprofile_cpu_type = "ppc64/rs64",
140 .oprofile_type = PPC_OPROFILE_RS64,
144 .pvr_mask = 0xffff0000,
145 .pvr_value = 0x00370000,
146 .cpu_name = "RS64-IV (sstar)",
147 .cpu_features = CPU_FTRS_RS64,
148 .cpu_user_features = COMMON_USER_PPC64,
152 .oprofile_cpu_type = "ppc64/rs64",
153 .oprofile_type = PPC_OPROFILE_RS64,
157 .pvr_mask = 0xffff0000,
158 .pvr_value = 0x00350000,
159 .cpu_name = "POWER4 (gp)",
160 .cpu_features = CPU_FTRS_POWER4,
161 .cpu_user_features = COMMON_USER_POWER4,
165 .oprofile_cpu_type = "ppc64/power4",
166 .oprofile_type = PPC_OPROFILE_POWER4,
167 .platform = "power4",
170 .pvr_mask = 0xffff0000,
171 .pvr_value = 0x00380000,
172 .cpu_name = "POWER4+ (gq)",
173 .cpu_features = CPU_FTRS_POWER4,
174 .cpu_user_features = COMMON_USER_POWER4,
178 .oprofile_cpu_type = "ppc64/power4",
179 .oprofile_type = PPC_OPROFILE_POWER4,
180 .platform = "power4",
183 .pvr_mask = 0xffff0000,
184 .pvr_value = 0x00390000,
185 .cpu_name = "PPC970",
186 .cpu_features = CPU_FTRS_PPC970,
187 .cpu_user_features = COMMON_USER_POWER4 |
188 PPC_FEATURE_HAS_ALTIVEC_COMP,
192 .cpu_setup = __setup_cpu_ppc970,
193 .cpu_restore = __restore_cpu_ppc970,
194 .oprofile_cpu_type = "ppc64/970",
195 .oprofile_type = PPC_OPROFILE_POWER4,
196 .platform = "ppc970",
199 .pvr_mask = 0xffff0000,
200 .pvr_value = 0x003c0000,
201 .cpu_name = "PPC970FX",
202 .cpu_features = CPU_FTRS_PPC970,
203 .cpu_user_features = COMMON_USER_POWER4 |
204 PPC_FEATURE_HAS_ALTIVEC_COMP,
208 .cpu_setup = __setup_cpu_ppc970,
209 .cpu_restore = __restore_cpu_ppc970,
210 .oprofile_cpu_type = "ppc64/970",
211 .oprofile_type = PPC_OPROFILE_POWER4,
212 .platform = "ppc970",
215 .pvr_mask = 0xffff0000,
216 .pvr_value = 0x00440000,
217 .cpu_name = "PPC970MP",
218 .cpu_features = CPU_FTRS_PPC970,
219 .cpu_user_features = COMMON_USER_POWER4 |
220 PPC_FEATURE_HAS_ALTIVEC_COMP,
224 .cpu_setup = __setup_cpu_ppc970,
225 .cpu_restore = __restore_cpu_ppc970,
226 .oprofile_cpu_type = "ppc64/970",
227 .oprofile_type = PPC_OPROFILE_POWER4,
228 .platform = "ppc970",
231 .pvr_mask = 0xffff0000,
232 .pvr_value = 0x003a0000,
233 .cpu_name = "POWER5 (gr)",
234 .cpu_features = CPU_FTRS_POWER5,
235 .cpu_user_features = COMMON_USER_POWER5,
239 .oprofile_cpu_type = "ppc64/power5",
240 .oprofile_type = PPC_OPROFILE_POWER4,
241 /* SIHV / SIPR bits are implemented on POWER4+ (GQ)
242 * and above but only works on POWER5 and above
244 .oprofile_mmcra_sihv = MMCRA_SIHV,
245 .oprofile_mmcra_sipr = MMCRA_SIPR,
246 .platform = "power5",
249 .pvr_mask = 0xffff0000,
250 .pvr_value = 0x003b0000,
251 .cpu_name = "POWER5+ (gs)",
252 .cpu_features = CPU_FTRS_POWER5,
253 .cpu_user_features = COMMON_USER_POWER5_PLUS,
257 .oprofile_cpu_type = "ppc64/power5+",
258 .oprofile_type = PPC_OPROFILE_POWER4,
259 .oprofile_mmcra_sihv = MMCRA_SIHV,
260 .oprofile_mmcra_sipr = MMCRA_SIPR,
261 .platform = "power5+",
264 .pvr_mask = 0xffff0000,
265 .pvr_value = 0x003e0000,
266 .cpu_name = "POWER6",
267 .cpu_features = CPU_FTRS_POWER6,
268 .cpu_user_features = COMMON_USER_POWER6,
272 .oprofile_cpu_type = "ppc64/power6",
273 .oprofile_type = PPC_OPROFILE_POWER4,
274 .oprofile_mmcra_sihv = POWER6_MMCRA_SIHV,
275 .oprofile_mmcra_sipr = POWER6_MMCRA_SIPR,
276 .oprofile_mmcra_clear = POWER6_MMCRA_THRM |
278 .platform = "power6",
280 { /* Cell Broadband Engine */
281 .pvr_mask = 0xffff0000,
282 .pvr_value = 0x00700000,
283 .cpu_name = "Cell Broadband Engine",
284 .cpu_features = CPU_FTRS_CELL,
285 .cpu_user_features = COMMON_USER_PPC64 |
286 PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP |
290 .platform = "ppc-cell-be",
293 .pvr_mask = 0x7fff0000,
294 .pvr_value = 0x00900000,
296 .cpu_features = CPU_FTRS_PA6T,
297 .cpu_user_features = COMMON_USER_PA6T,
303 { /* default match */
304 .pvr_mask = 0x00000000,
305 .pvr_value = 0x00000000,
306 .cpu_name = "POWER4 (compatible)",
307 .cpu_features = CPU_FTRS_COMPATIBLE,
308 .cpu_user_features = COMMON_USER_PPC64,
312 .platform = "power4",
314 #endif /* CONFIG_PPC64 */
318 .pvr_mask = 0xffff0000,
319 .pvr_value = 0x00010000,
321 .cpu_features = CPU_FTRS_PPC601,
322 .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR |
323 PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB,
326 .platform = "ppc601",
329 .pvr_mask = 0xffff0000,
330 .pvr_value = 0x00030000,
332 .cpu_features = CPU_FTRS_603,
333 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
336 .cpu_setup = __setup_cpu_603,
337 .platform = "ppc603",
340 .pvr_mask = 0xffff0000,
341 .pvr_value = 0x00060000,
343 .cpu_features = CPU_FTRS_603,
344 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
347 .cpu_setup = __setup_cpu_603,
348 .platform = "ppc603",
351 .pvr_mask = 0xffff0000,
352 .pvr_value = 0x00070000,
354 .cpu_features = CPU_FTRS_603,
355 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
358 .cpu_setup = __setup_cpu_603,
359 .platform = "ppc603",
362 .pvr_mask = 0xffff0000,
363 .pvr_value = 0x00040000,
365 .cpu_features = CPU_FTRS_604,
366 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
370 .cpu_setup = __setup_cpu_604,
371 .platform = "ppc604",
374 .pvr_mask = 0xfffff000,
375 .pvr_value = 0x00090000,
377 .cpu_features = CPU_FTRS_604,
378 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
382 .cpu_setup = __setup_cpu_604,
383 .platform = "ppc604",
386 .pvr_mask = 0xffff0000,
387 .pvr_value = 0x00090000,
389 .cpu_features = CPU_FTRS_604,
390 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
394 .cpu_setup = __setup_cpu_604,
395 .platform = "ppc604",
398 .pvr_mask = 0xffff0000,
399 .pvr_value = 0x000a0000,
401 .cpu_features = CPU_FTRS_604,
402 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
406 .cpu_setup = __setup_cpu_604,
407 .platform = "ppc604",
409 { /* 740/750 (0x4202, don't support TAU ?) */
410 .pvr_mask = 0xffffffff,
411 .pvr_value = 0x00084202,
412 .cpu_name = "740/750",
413 .cpu_features = CPU_FTRS_740_NOTAU,
414 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
418 .cpu_setup = __setup_cpu_750,
419 .platform = "ppc750",
421 { /* 750CX (80100 and 8010x?) */
422 .pvr_mask = 0xfffffff0,
423 .pvr_value = 0x00080100,
425 .cpu_features = CPU_FTRS_750,
426 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
430 .cpu_setup = __setup_cpu_750cx,
431 .platform = "ppc750",
433 { /* 750CX (82201 and 82202) */
434 .pvr_mask = 0xfffffff0,
435 .pvr_value = 0x00082200,
437 .cpu_features = CPU_FTRS_750,
438 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
442 .cpu_setup = __setup_cpu_750cx,
443 .platform = "ppc750",
445 { /* 750CXe (82214) */
446 .pvr_mask = 0xfffffff0,
447 .pvr_value = 0x00082210,
448 .cpu_name = "750CXe",
449 .cpu_features = CPU_FTRS_750,
450 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
454 .cpu_setup = __setup_cpu_750cx,
455 .platform = "ppc750",
457 { /* 750CXe "Gekko" (83214) */
458 .pvr_mask = 0xffffffff,
459 .pvr_value = 0x00083214,
460 .cpu_name = "750CXe",
461 .cpu_features = CPU_FTRS_750,
462 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
466 .cpu_setup = __setup_cpu_750cx,
467 .platform = "ppc750",
470 .pvr_mask = 0xfffff000,
471 .pvr_value = 0x00083000,
472 .cpu_name = "745/755",
473 .cpu_features = CPU_FTRS_750,
474 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
478 .cpu_setup = __setup_cpu_750,
479 .platform = "ppc750",
481 { /* 750FX rev 1.x */
482 .pvr_mask = 0xffffff00,
483 .pvr_value = 0x70000100,
485 .cpu_features = CPU_FTRS_750FX1,
486 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
490 .cpu_setup = __setup_cpu_750,
491 .platform = "ppc750",
493 { /* 750FX rev 2.0 must disable HID0[DPM] */
494 .pvr_mask = 0xffffffff,
495 .pvr_value = 0x70000200,
497 .cpu_features = CPU_FTRS_750FX2,
498 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
502 .cpu_setup = __setup_cpu_750,
503 .platform = "ppc750",
505 { /* 750FX (All revs except 2.0) */
506 .pvr_mask = 0xffff0000,
507 .pvr_value = 0x70000000,
509 .cpu_features = CPU_FTRS_750FX,
510 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
514 .cpu_setup = __setup_cpu_750fx,
515 .platform = "ppc750",
518 .pvr_mask = 0xffff0000,
519 .pvr_value = 0x70020000,
521 .cpu_features = CPU_FTRS_750GX,
522 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
526 .cpu_setup = __setup_cpu_750fx,
527 .platform = "ppc750",
529 { /* 740/750 (L2CR bit need fixup for 740) */
530 .pvr_mask = 0xffff0000,
531 .pvr_value = 0x00080000,
532 .cpu_name = "740/750",
533 .cpu_features = CPU_FTRS_740,
534 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
538 .cpu_setup = __setup_cpu_750,
539 .platform = "ppc750",
541 { /* 7400 rev 1.1 ? (no TAU) */
542 .pvr_mask = 0xffffffff,
543 .pvr_value = 0x000c1101,
544 .cpu_name = "7400 (1.1)",
545 .cpu_features = CPU_FTRS_7400_NOTAU,
546 .cpu_user_features = COMMON_USER |
547 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
551 .cpu_setup = __setup_cpu_7400,
552 .platform = "ppc7400",
555 .pvr_mask = 0xffff0000,
556 .pvr_value = 0x000c0000,
558 .cpu_features = CPU_FTRS_7400,
559 .cpu_user_features = COMMON_USER |
560 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
564 .cpu_setup = __setup_cpu_7400,
565 .platform = "ppc7400",
568 .pvr_mask = 0xffff0000,
569 .pvr_value = 0x800c0000,
571 .cpu_features = CPU_FTRS_7400,
572 .cpu_user_features = COMMON_USER |
573 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
577 .cpu_setup = __setup_cpu_7410,
578 .platform = "ppc7400",
580 { /* 7450 2.0 - no doze/nap */
581 .pvr_mask = 0xffffffff,
582 .pvr_value = 0x80000200,
584 .cpu_features = CPU_FTRS_7450_20,
585 .cpu_user_features = COMMON_USER |
586 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
590 .cpu_setup = __setup_cpu_745x,
591 .oprofile_cpu_type = "ppc/7450",
592 .oprofile_type = PPC_OPROFILE_G4,
593 .platform = "ppc7450",
596 .pvr_mask = 0xffffffff,
597 .pvr_value = 0x80000201,
599 .cpu_features = CPU_FTRS_7450_21,
600 .cpu_user_features = COMMON_USER |
601 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
605 .cpu_setup = __setup_cpu_745x,
606 .oprofile_cpu_type = "ppc/7450",
607 .oprofile_type = PPC_OPROFILE_G4,
608 .platform = "ppc7450",
610 { /* 7450 2.3 and newer */
611 .pvr_mask = 0xffff0000,
612 .pvr_value = 0x80000000,
614 .cpu_features = CPU_FTRS_7450_23,
615 .cpu_user_features = COMMON_USER |
616 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
620 .cpu_setup = __setup_cpu_745x,
621 .oprofile_cpu_type = "ppc/7450",
622 .oprofile_type = PPC_OPROFILE_G4,
623 .platform = "ppc7450",
626 .pvr_mask = 0xffffff00,
627 .pvr_value = 0x80010100,
629 .cpu_features = CPU_FTRS_7455_1,
630 .cpu_user_features = COMMON_USER |
631 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
635 .cpu_setup = __setup_cpu_745x,
636 .oprofile_cpu_type = "ppc/7450",
637 .oprofile_type = PPC_OPROFILE_G4,
638 .platform = "ppc7450",
641 .pvr_mask = 0xffffffff,
642 .pvr_value = 0x80010200,
644 .cpu_features = CPU_FTRS_7455_20,
645 .cpu_user_features = COMMON_USER |
646 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
650 .cpu_setup = __setup_cpu_745x,
651 .oprofile_cpu_type = "ppc/7450",
652 .oprofile_type = PPC_OPROFILE_G4,
653 .platform = "ppc7450",
656 .pvr_mask = 0xffff0000,
657 .pvr_value = 0x80010000,
659 .cpu_features = CPU_FTRS_7455,
660 .cpu_user_features = COMMON_USER |
661 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
665 .cpu_setup = __setup_cpu_745x,
666 .oprofile_cpu_type = "ppc/7450",
667 .oprofile_type = PPC_OPROFILE_G4,
668 .platform = "ppc7450",
670 { /* 7447/7457 Rev 1.0 */
671 .pvr_mask = 0xffffffff,
672 .pvr_value = 0x80020100,
673 .cpu_name = "7447/7457",
674 .cpu_features = CPU_FTRS_7447_10,
675 .cpu_user_features = COMMON_USER |
676 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
680 .cpu_setup = __setup_cpu_745x,
681 .oprofile_cpu_type = "ppc/7450",
682 .oprofile_type = PPC_OPROFILE_G4,
683 .platform = "ppc7450",
685 { /* 7447/7457 Rev 1.1 */
686 .pvr_mask = 0xffffffff,
687 .pvr_value = 0x80020101,
688 .cpu_name = "7447/7457",
689 .cpu_features = CPU_FTRS_7447_10,
690 .cpu_user_features = COMMON_USER |
691 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
695 .cpu_setup = __setup_cpu_745x,
696 .oprofile_cpu_type = "ppc/7450",
697 .oprofile_type = PPC_OPROFILE_G4,
698 .platform = "ppc7450",
700 { /* 7447/7457 Rev 1.2 and later */
701 .pvr_mask = 0xffff0000,
702 .pvr_value = 0x80020000,
703 .cpu_name = "7447/7457",
704 .cpu_features = CPU_FTRS_7447,
705 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
709 .cpu_setup = __setup_cpu_745x,
710 .oprofile_cpu_type = "ppc/7450",
711 .oprofile_type = PPC_OPROFILE_G4,
712 .platform = "ppc7450",
715 .pvr_mask = 0xffff0000,
716 .pvr_value = 0x80030000,
718 .cpu_features = CPU_FTRS_7447A,
719 .cpu_user_features = COMMON_USER |
720 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
724 .cpu_setup = __setup_cpu_745x,
725 .oprofile_cpu_type = "ppc/7450",
726 .oprofile_type = PPC_OPROFILE_G4,
727 .platform = "ppc7450",
730 .pvr_mask = 0xffff0000,
731 .pvr_value = 0x80040000,
733 .cpu_features = CPU_FTRS_7447A,
734 .cpu_user_features = COMMON_USER |
735 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
739 .cpu_setup = __setup_cpu_745x,
740 .oprofile_cpu_type = "ppc/7450",
741 .oprofile_type = PPC_OPROFILE_G4,
742 .platform = "ppc7450",
744 { /* 82xx (8240, 8245, 8260 are all 603e cores) */
745 .pvr_mask = 0x7fff0000,
746 .pvr_value = 0x00810000,
748 .cpu_features = CPU_FTRS_82XX,
749 .cpu_user_features = COMMON_USER,
752 .cpu_setup = __setup_cpu_603,
753 .platform = "ppc603",
755 { /* All G2_LE (603e core, plus some) have the same pvr */
756 .pvr_mask = 0x7fff0000,
757 .pvr_value = 0x00820000,
759 .cpu_features = CPU_FTRS_G2_LE,
760 .cpu_user_features = COMMON_USER,
763 .cpu_setup = __setup_cpu_603,
764 .platform = "ppc603",
766 { /* e300 (a 603e core, plus some) on 83xx */
767 .pvr_mask = 0x7fff0000,
768 .pvr_value = 0x00830000,
770 .cpu_features = CPU_FTRS_E300,
771 .cpu_user_features = COMMON_USER,
774 .cpu_setup = __setup_cpu_603,
775 .platform = "ppc603",
777 { /* default match, we assume split I/D cache & TB (non-601)... */
778 .pvr_mask = 0x00000000,
779 .pvr_value = 0x00000000,
780 .cpu_name = "(generic PPC)",
781 .cpu_features = CPU_FTRS_CLASSIC32,
782 .cpu_user_features = COMMON_USER,
785 .platform = "ppc603",
787 #endif /* CLASSIC_PPC */
790 .pvr_mask = 0xffff0000,
791 .pvr_value = 0x00500000,
793 /* CPU_FTR_MAYBE_CAN_DOZE is possible,
794 * if the 8xx code is there.... */
795 .cpu_features = CPU_FTRS_8XX,
796 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
799 .platform = "ppc823",
801 #endif /* CONFIG_8xx */
804 .pvr_mask = 0xffffff00,
805 .pvr_value = 0x00200200,
807 .cpu_features = CPU_FTRS_40X,
808 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
811 .platform = "ppc403",
814 .pvr_mask = 0xffffff00,
815 .pvr_value = 0x00201400,
816 .cpu_name = "403GCX",
817 .cpu_features = CPU_FTRS_40X,
818 .cpu_user_features = PPC_FEATURE_32 |
819 PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB,
822 .platform = "ppc403",
825 .pvr_mask = 0xffff0000,
826 .pvr_value = 0x00200000,
827 .cpu_name = "403G ??",
828 .cpu_features = CPU_FTRS_40X,
829 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
832 .platform = "ppc403",
835 .pvr_mask = 0xffff0000,
836 .pvr_value = 0x40110000,
838 .cpu_features = CPU_FTRS_40X,
839 .cpu_user_features = PPC_FEATURE_32 |
840 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
843 .platform = "ppc405",
846 .pvr_mask = 0xffff0000,
847 .pvr_value = 0x40130000,
848 .cpu_name = "STB03xxx",
849 .cpu_features = CPU_FTRS_40X,
850 .cpu_user_features = PPC_FEATURE_32 |
851 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
854 .platform = "ppc405",
857 .pvr_mask = 0xffff0000,
858 .pvr_value = 0x41810000,
859 .cpu_name = "STB04xxx",
860 .cpu_features = CPU_FTRS_40X,
861 .cpu_user_features = PPC_FEATURE_32 |
862 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
865 .platform = "ppc405",
868 .pvr_mask = 0xffff0000,
869 .pvr_value = 0x41610000,
870 .cpu_name = "NP405L",
871 .cpu_features = CPU_FTRS_40X,
872 .cpu_user_features = PPC_FEATURE_32 |
873 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
876 .platform = "ppc405",
879 .pvr_mask = 0xffff0000,
880 .pvr_value = 0x40B10000,
881 .cpu_name = "NP4GS3",
882 .cpu_features = CPU_FTRS_40X,
883 .cpu_user_features = PPC_FEATURE_32 |
884 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
887 .platform = "ppc405",
890 .pvr_mask = 0xffff0000,
891 .pvr_value = 0x41410000,
892 .cpu_name = "NP405H",
893 .cpu_features = CPU_FTRS_40X,
894 .cpu_user_features = PPC_FEATURE_32 |
895 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
898 .platform = "ppc405",
901 .pvr_mask = 0xffff0000,
902 .pvr_value = 0x50910000,
903 .cpu_name = "405GPr",
904 .cpu_features = CPU_FTRS_40X,
905 .cpu_user_features = PPC_FEATURE_32 |
906 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
909 .platform = "ppc405",
912 .pvr_mask = 0xffff0000,
913 .pvr_value = 0x51510000,
914 .cpu_name = "STBx25xx",
915 .cpu_features = CPU_FTRS_40X,
916 .cpu_user_features = PPC_FEATURE_32 |
917 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
920 .platform = "ppc405",
923 .pvr_mask = 0xffff0000,
924 .pvr_value = 0x41F10000,
926 .cpu_features = CPU_FTRS_40X,
927 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
930 .platform = "ppc405",
932 { /* Xilinx Virtex-II Pro */
933 .pvr_mask = 0xfffff000,
934 .pvr_value = 0x20010000,
935 .cpu_name = "Virtex-II Pro",
936 .cpu_features = CPU_FTRS_40X,
937 .cpu_user_features = PPC_FEATURE_32 |
938 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
941 .platform = "ppc405",
943 { /* Xilinx Virtex-4 FX */
944 .pvr_mask = 0xfffff000,
945 .pvr_value = 0x20011000,
946 .cpu_name = "Virtex-4 FX",
947 .cpu_features = CPU_FTRS_40X,
948 .cpu_user_features = PPC_FEATURE_32 |
949 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
952 .platform = "ppc405",
955 .pvr_mask = 0xffff0000,
956 .pvr_value = 0x51210000,
958 .cpu_features = CPU_FTRS_40X,
959 .cpu_user_features = PPC_FEATURE_32 |
960 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
963 .platform = "ppc405",
966 #endif /* CONFIG_40x */
969 .pvr_mask = 0xf0000fff,
970 .pvr_value = 0x40000850,
971 .cpu_name = "440EP Rev. A",
972 .cpu_features = CPU_FTRS_44X,
973 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
976 .platform = "ppc440",
979 .pvr_mask = 0xf0000fff,
980 .pvr_value = 0x400008d3,
981 .cpu_name = "440EP Rev. B",
982 .cpu_features = CPU_FTRS_44X,
983 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
986 .platform = "ppc440",
989 .pvr_mask = 0xf0000fff,
990 .pvr_value = 0x40000440,
991 .cpu_name = "440GP Rev. B",
992 .cpu_features = CPU_FTRS_44X,
993 .cpu_user_features = COMMON_USER_BOOKE,
996 .platform = "ppc440gp",
999 .pvr_mask = 0xf0000fff,
1000 .pvr_value = 0x40000481,
1001 .cpu_name = "440GP Rev. C",
1002 .cpu_features = CPU_FTRS_44X,
1003 .cpu_user_features = COMMON_USER_BOOKE,
1006 .platform = "ppc440gp",
1008 { /* 440GX Rev. A */
1009 .pvr_mask = 0xf0000fff,
1010 .pvr_value = 0x50000850,
1011 .cpu_name = "440GX Rev. A",
1012 .cpu_features = CPU_FTRS_44X,
1013 .cpu_user_features = COMMON_USER_BOOKE,
1016 .platform = "ppc440",
1018 { /* 440GX Rev. B */
1019 .pvr_mask = 0xf0000fff,
1020 .pvr_value = 0x50000851,
1021 .cpu_name = "440GX Rev. B",
1022 .cpu_features = CPU_FTRS_44X,
1023 .cpu_user_features = COMMON_USER_BOOKE,
1026 .platform = "ppc440",
1028 { /* 440GX Rev. C */
1029 .pvr_mask = 0xf0000fff,
1030 .pvr_value = 0x50000892,
1031 .cpu_name = "440GX Rev. C",
1032 .cpu_features = CPU_FTRS_44X,
1033 .cpu_user_features = COMMON_USER_BOOKE,
1036 .platform = "ppc440",
1038 { /* 440GX Rev. F */
1039 .pvr_mask = 0xf0000fff,
1040 .pvr_value = 0x50000894,
1041 .cpu_name = "440GX Rev. F",
1042 .cpu_features = CPU_FTRS_44X,
1043 .cpu_user_features = COMMON_USER_BOOKE,
1046 .platform = "ppc440",
1048 { /* 440SP Rev. A */
1049 .pvr_mask = 0xff000fff,
1050 .pvr_value = 0x53000891,
1051 .cpu_name = "440SP Rev. A",
1052 .cpu_features = CPU_FTRS_44X,
1053 .cpu_user_features = COMMON_USER_BOOKE,
1056 .platform = "ppc440",
1058 { /* 440SPe Rev. A */
1059 .pvr_mask = 0xff000fff,
1060 .pvr_value = 0x53000890,
1061 .cpu_name = "440SPe Rev. A",
1062 .cpu_features = CPU_FTR_SPLIT_ID_CACHE |
1064 .cpu_user_features = COMMON_USER_BOOKE,
1067 .platform = "ppc440",
1069 #endif /* CONFIG_44x */
1070 #ifdef CONFIG_FSL_BOOKE
1072 .pvr_mask = 0xfff00000,
1073 .pvr_value = 0x81000000,
1074 .cpu_name = "e200z5",
1075 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1076 .cpu_features = CPU_FTRS_E200,
1077 .cpu_user_features = COMMON_USER_BOOKE |
1078 PPC_FEATURE_HAS_EFP_SINGLE |
1079 PPC_FEATURE_UNIFIED_CACHE,
1081 .platform = "ppc5554",
1084 .pvr_mask = 0xfff00000,
1085 .pvr_value = 0x81100000,
1086 .cpu_name = "e200z6",
1087 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1088 .cpu_features = CPU_FTRS_E200,
1089 .cpu_user_features = COMMON_USER_BOOKE |
1090 PPC_FEATURE_SPE_COMP |
1091 PPC_FEATURE_HAS_EFP_SINGLE |
1092 PPC_FEATURE_UNIFIED_CACHE,
1094 .platform = "ppc5554",
1097 .pvr_mask = 0xffff0000,
1098 .pvr_value = 0x80200000,
1100 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1101 .cpu_features = CPU_FTRS_E500,
1102 .cpu_user_features = COMMON_USER_BOOKE |
1103 PPC_FEATURE_SPE_COMP |
1104 PPC_FEATURE_HAS_EFP_SINGLE,
1108 .oprofile_cpu_type = "ppc/e500",
1109 .oprofile_type = PPC_OPROFILE_BOOKE,
1110 .platform = "ppc8540",
1113 .pvr_mask = 0xffff0000,
1114 .pvr_value = 0x80210000,
1115 .cpu_name = "e500v2",
1116 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1117 .cpu_features = CPU_FTRS_E500_2,
1118 .cpu_user_features = COMMON_USER_BOOKE |
1119 PPC_FEATURE_SPE_COMP |
1120 PPC_FEATURE_HAS_EFP_SINGLE |
1121 PPC_FEATURE_HAS_EFP_DOUBLE,
1125 .oprofile_cpu_type = "ppc/e500",
1126 .oprofile_type = PPC_OPROFILE_BOOKE,
1127 .platform = "ppc8548",
1131 { /* default match */
1132 .pvr_mask = 0x00000000,
1133 .pvr_value = 0x00000000,
1134 .cpu_name = "(generic PPC)",
1135 .cpu_features = CPU_FTRS_GENERIC_32,
1136 .cpu_user_features = PPC_FEATURE_32,
1139 .platform = "powerpc",
1141 #endif /* !CLASSIC_PPC */
1142 #endif /* CONFIG_PPC32 */