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/config.h>
14 #include <linux/string.h>
15 #include <linux/sched.h>
16 #include <linux/threads.h>
17 #include <linux/init.h>
18 #include <linux/module.h>
20 #include <asm/oprofile_impl.h>
21 #include <asm/cputable.h>
23 struct cpu_spec* cur_cpu_spec = NULL;
24 EXPORT_SYMBOL(cur_cpu_spec);
27 * Unlike ppc32, ppc64 will only call this once for the boot CPU, it's
28 * the responsibility of the appropriate CPU save/restore functions to
29 * eventually copy these settings over. Those save/restore aren't yet
30 * part of the cputable though. That has to be fixed for both ppc32
34 extern void __setup_cpu_power3(unsigned long offset, struct cpu_spec* spec);
35 extern void __setup_cpu_power4(unsigned long offset, struct cpu_spec* spec);
36 extern void __setup_cpu_be(unsigned long offset, struct cpu_spec* spec);
38 extern void __setup_cpu_603(unsigned long offset, struct cpu_spec* spec);
39 extern void __setup_cpu_604(unsigned long offset, struct cpu_spec* spec);
40 extern void __setup_cpu_750(unsigned long offset, struct cpu_spec* spec);
41 extern void __setup_cpu_750cx(unsigned long offset, struct cpu_spec* spec);
42 extern void __setup_cpu_750fx(unsigned long offset, struct cpu_spec* spec);
43 extern void __setup_cpu_7400(unsigned long offset, struct cpu_spec* spec);
44 extern void __setup_cpu_7410(unsigned long offset, struct cpu_spec* spec);
45 extern void __setup_cpu_745x(unsigned long offset, struct cpu_spec* spec);
46 #endif /* CONFIG_PPC32 */
47 extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec);
49 /* This table only contains "desktop" CPUs, it need to be filled with embedded
52 #define COMMON_USER (PPC_FEATURE_32 | PPC_FEATURE_HAS_FPU | \
54 #define COMMON_USER_PPC64 (COMMON_USER | PPC_FEATURE_64)
55 #define COMMON_USER_POWER4 (COMMON_USER_PPC64 | PPC_FEATURE_POWER4)
56 #define COMMON_USER_POWER5 (COMMON_USER_PPC64 | PPC_FEATURE_POWER5 |\
57 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
58 #define COMMON_USER_POWER5_PLUS (COMMON_USER_PPC64 | PPC_FEATURE_POWER5_PLUS|\
59 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
60 #define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \
63 /* We only set the spe features if the kernel was compiled with
67 #define PPC_FEATURE_SPE_COMP PPC_FEATURE_HAS_SPE
69 #define PPC_FEATURE_SPE_COMP 0
72 struct cpu_spec cpu_specs[] = {
75 .pvr_mask = 0xffff0000,
76 .pvr_value = 0x00400000,
77 .cpu_name = "POWER3 (630)",
78 .cpu_features = CPU_FTRS_POWER3,
79 .cpu_user_features = COMMON_USER_PPC64,
83 .cpu_setup = __setup_cpu_power3,
84 .oprofile_cpu_type = "ppc64/power3",
85 .oprofile_type = PPC_OPROFILE_RS64,
89 .pvr_mask = 0xffff0000,
90 .pvr_value = 0x00410000,
91 .cpu_name = "POWER3 (630+)",
92 .cpu_features = CPU_FTRS_POWER3,
93 .cpu_user_features = COMMON_USER_PPC64,
97 .cpu_setup = __setup_cpu_power3,
98 .oprofile_cpu_type = "ppc64/power3",
99 .oprofile_type = PPC_OPROFILE_RS64,
100 .platform = "power3",
103 .pvr_mask = 0xffff0000,
104 .pvr_value = 0x00330000,
105 .cpu_name = "RS64-II (northstar)",
106 .cpu_features = CPU_FTRS_RS64,
107 .cpu_user_features = COMMON_USER_PPC64,
111 .cpu_setup = __setup_cpu_power3,
112 .oprofile_cpu_type = "ppc64/rs64",
113 .oprofile_type = PPC_OPROFILE_RS64,
117 .pvr_mask = 0xffff0000,
118 .pvr_value = 0x00340000,
119 .cpu_name = "RS64-III (pulsar)",
120 .cpu_features = CPU_FTRS_RS64,
121 .cpu_user_features = COMMON_USER_PPC64,
125 .cpu_setup = __setup_cpu_power3,
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 .cpu_setup = __setup_cpu_power3,
140 .oprofile_cpu_type = "ppc64/rs64",
141 .oprofile_type = PPC_OPROFILE_RS64,
145 .pvr_mask = 0xffff0000,
146 .pvr_value = 0x00370000,
147 .cpu_name = "RS64-IV (sstar)",
148 .cpu_features = CPU_FTRS_RS64,
149 .cpu_user_features = COMMON_USER_PPC64,
153 .cpu_setup = __setup_cpu_power3,
154 .oprofile_cpu_type = "ppc64/rs64",
155 .oprofile_type = PPC_OPROFILE_RS64,
159 .pvr_mask = 0xffff0000,
160 .pvr_value = 0x00350000,
161 .cpu_name = "POWER4 (gp)",
162 .cpu_features = CPU_FTRS_POWER4,
163 .cpu_user_features = COMMON_USER_POWER4,
167 .cpu_setup = __setup_cpu_power4,
168 .oprofile_cpu_type = "ppc64/power4",
169 .oprofile_type = PPC_OPROFILE_POWER4,
170 .platform = "power4",
173 .pvr_mask = 0xffff0000,
174 .pvr_value = 0x00380000,
175 .cpu_name = "POWER4+ (gq)",
176 .cpu_features = CPU_FTRS_POWER4,
177 .cpu_user_features = COMMON_USER_POWER4,
181 .cpu_setup = __setup_cpu_power4,
182 .oprofile_cpu_type = "ppc64/power4",
183 .oprofile_type = PPC_OPROFILE_POWER4,
184 .platform = "power4",
187 .pvr_mask = 0xffff0000,
188 .pvr_value = 0x00390000,
189 .cpu_name = "PPC970",
190 .cpu_features = CPU_FTRS_PPC970,
191 .cpu_user_features = COMMON_USER_POWER4 |
192 PPC_FEATURE_HAS_ALTIVEC_COMP,
196 .cpu_setup = __setup_cpu_ppc970,
197 .oprofile_cpu_type = "ppc64/970",
198 .oprofile_type = PPC_OPROFILE_POWER4,
199 .platform = "ppc970",
201 #endif /* CONFIG_PPC64 */
202 #if defined(CONFIG_PPC64) || defined(CONFIG_POWER4)
204 .pvr_mask = 0xffff0000,
205 .pvr_value = 0x003c0000,
206 .cpu_name = "PPC970FX",
208 .cpu_features = CPU_FTRS_970_32,
210 .cpu_features = CPU_FTRS_PPC970,
212 .cpu_user_features = COMMON_USER_POWER4 |
213 PPC_FEATURE_HAS_ALTIVEC_COMP,
217 .cpu_setup = __setup_cpu_ppc970,
218 .oprofile_cpu_type = "ppc64/970",
219 .oprofile_type = PPC_OPROFILE_POWER4,
220 .platform = "ppc970",
222 #endif /* defined(CONFIG_PPC64) || defined(CONFIG_POWER4) */
225 .pvr_mask = 0xffff0000,
226 .pvr_value = 0x00440000,
227 .cpu_name = "PPC970MP",
228 .cpu_features = CPU_FTRS_PPC970,
229 .cpu_user_features = COMMON_USER_POWER4 |
230 PPC_FEATURE_HAS_ALTIVEC_COMP,
233 .cpu_setup = __setup_cpu_ppc970,
234 .oprofile_cpu_type = "ppc64/970",
235 .oprofile_type = PPC_OPROFILE_POWER4,
236 .platform = "ppc970",
239 .pvr_mask = 0xffff0000,
240 .pvr_value = 0x003a0000,
241 .cpu_name = "POWER5 (gr)",
242 .cpu_features = CPU_FTRS_POWER5,
243 .cpu_user_features = COMMON_USER_POWER5,
247 .cpu_setup = __setup_cpu_power4,
248 .oprofile_cpu_type = "ppc64/power5",
249 .oprofile_type = PPC_OPROFILE_POWER4,
250 .platform = "power5",
253 .pvr_mask = 0xffff0000,
254 .pvr_value = 0x003b0000,
255 .cpu_name = "POWER5+ (gs)",
256 .cpu_features = CPU_FTRS_POWER5,
257 .cpu_user_features = COMMON_USER_POWER5_PLUS,
261 .cpu_setup = __setup_cpu_power4,
262 .oprofile_cpu_type = "ppc64/power5+",
263 .oprofile_type = PPC_OPROFILE_POWER4,
264 .platform = "power5+",
266 { /* Cell Broadband Engine */
267 .pvr_mask = 0xffff0000,
268 .pvr_value = 0x00700000,
269 .cpu_name = "Cell Broadband Engine",
270 .cpu_features = CPU_FTRS_CELL,
271 .cpu_user_features = COMMON_USER_PPC64 |
272 PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP |
276 .cpu_setup = __setup_cpu_be,
277 .platform = "ppc-cell-be",
279 { /* default match */
280 .pvr_mask = 0x00000000,
281 .pvr_value = 0x00000000,
282 .cpu_name = "POWER4 (compatible)",
283 .cpu_features = CPU_FTRS_COMPATIBLE,
284 .cpu_user_features = COMMON_USER_PPC64,
288 .cpu_setup = __setup_cpu_power4,
289 .platform = "power4",
291 #endif /* CONFIG_PPC64 */
295 .pvr_mask = 0xffff0000,
296 .pvr_value = 0x00010000,
298 .cpu_features = CPU_FTRS_PPC601,
299 .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR |
300 PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB,
303 .platform = "ppc601",
306 .pvr_mask = 0xffff0000,
307 .pvr_value = 0x00030000,
309 .cpu_features = CPU_FTRS_603,
310 .cpu_user_features = COMMON_USER,
313 .cpu_setup = __setup_cpu_603,
314 .platform = "ppc603",
317 .pvr_mask = 0xffff0000,
318 .pvr_value = 0x00060000,
320 .cpu_features = CPU_FTRS_603,
321 .cpu_user_features = COMMON_USER,
324 .cpu_setup = __setup_cpu_603,
325 .platform = "ppc603",
328 .pvr_mask = 0xffff0000,
329 .pvr_value = 0x00070000,
331 .cpu_features = CPU_FTRS_603,
332 .cpu_user_features = COMMON_USER,
335 .cpu_setup = __setup_cpu_603,
336 .platform = "ppc603",
339 .pvr_mask = 0xffff0000,
340 .pvr_value = 0x00040000,
342 .cpu_features = CPU_FTRS_604,
343 .cpu_user_features = COMMON_USER,
347 .cpu_setup = __setup_cpu_604,
348 .platform = "ppc604",
351 .pvr_mask = 0xfffff000,
352 .pvr_value = 0x00090000,
354 .cpu_features = CPU_FTRS_604,
355 .cpu_user_features = COMMON_USER,
359 .cpu_setup = __setup_cpu_604,
360 .platform = "ppc604",
363 .pvr_mask = 0xffff0000,
364 .pvr_value = 0x00090000,
366 .cpu_features = CPU_FTRS_604,
367 .cpu_user_features = COMMON_USER,
371 .cpu_setup = __setup_cpu_604,
372 .platform = "ppc604",
375 .pvr_mask = 0xffff0000,
376 .pvr_value = 0x000a0000,
378 .cpu_features = CPU_FTRS_604,
379 .cpu_user_features = COMMON_USER,
383 .cpu_setup = __setup_cpu_604,
384 .platform = "ppc604",
386 { /* 740/750 (0x4202, don't support TAU ?) */
387 .pvr_mask = 0xffffffff,
388 .pvr_value = 0x00084202,
389 .cpu_name = "740/750",
390 .cpu_features = CPU_FTRS_740_NOTAU,
391 .cpu_user_features = COMMON_USER,
395 .cpu_setup = __setup_cpu_750,
396 .platform = "ppc750",
398 { /* 750CX (80100 and 8010x?) */
399 .pvr_mask = 0xfffffff0,
400 .pvr_value = 0x00080100,
402 .cpu_features = CPU_FTRS_750,
403 .cpu_user_features = COMMON_USER,
407 .cpu_setup = __setup_cpu_750cx,
408 .platform = "ppc750",
410 { /* 750CX (82201 and 82202) */
411 .pvr_mask = 0xfffffff0,
412 .pvr_value = 0x00082200,
414 .cpu_features = CPU_FTRS_750,
415 .cpu_user_features = COMMON_USER,
419 .cpu_setup = __setup_cpu_750cx,
420 .platform = "ppc750",
422 { /* 750CXe (82214) */
423 .pvr_mask = 0xfffffff0,
424 .pvr_value = 0x00082210,
425 .cpu_name = "750CXe",
426 .cpu_features = CPU_FTRS_750,
427 .cpu_user_features = COMMON_USER,
431 .cpu_setup = __setup_cpu_750cx,
432 .platform = "ppc750",
434 { /* 750CXe "Gekko" (83214) */
435 .pvr_mask = 0xffffffff,
436 .pvr_value = 0x00083214,
437 .cpu_name = "750CXe",
438 .cpu_features = CPU_FTRS_750,
439 .cpu_user_features = COMMON_USER,
443 .cpu_setup = __setup_cpu_750cx,
444 .platform = "ppc750",
447 .pvr_mask = 0xfffff000,
448 .pvr_value = 0x00083000,
449 .cpu_name = "745/755",
450 .cpu_features = CPU_FTRS_750,
451 .cpu_user_features = COMMON_USER,
455 .cpu_setup = __setup_cpu_750,
456 .platform = "ppc750",
458 { /* 750FX rev 1.x */
459 .pvr_mask = 0xffffff00,
460 .pvr_value = 0x70000100,
462 .cpu_features = CPU_FTRS_750FX1,
463 .cpu_user_features = COMMON_USER,
467 .cpu_setup = __setup_cpu_750,
468 .platform = "ppc750",
470 { /* 750FX rev 2.0 must disable HID0[DPM] */
471 .pvr_mask = 0xffffffff,
472 .pvr_value = 0x70000200,
474 .cpu_features = CPU_FTRS_750FX2,
475 .cpu_user_features = COMMON_USER,
479 .cpu_setup = __setup_cpu_750,
480 .platform = "ppc750",
482 { /* 750FX (All revs except 2.0) */
483 .pvr_mask = 0xffff0000,
484 .pvr_value = 0x70000000,
486 .cpu_features = CPU_FTRS_750FX,
487 .cpu_user_features = COMMON_USER,
491 .cpu_setup = __setup_cpu_750fx,
492 .platform = "ppc750",
495 .pvr_mask = 0xffff0000,
496 .pvr_value = 0x70020000,
498 .cpu_features = CPU_FTRS_750GX,
499 .cpu_user_features = COMMON_USER,
503 .cpu_setup = __setup_cpu_750fx,
504 .platform = "ppc750",
506 { /* 740/750 (L2CR bit need fixup for 740) */
507 .pvr_mask = 0xffff0000,
508 .pvr_value = 0x00080000,
509 .cpu_name = "740/750",
510 .cpu_features = CPU_FTRS_740,
511 .cpu_user_features = COMMON_USER,
515 .cpu_setup = __setup_cpu_750,
516 .platform = "ppc750",
518 { /* 7400 rev 1.1 ? (no TAU) */
519 .pvr_mask = 0xffffffff,
520 .pvr_value = 0x000c1101,
521 .cpu_name = "7400 (1.1)",
522 .cpu_features = CPU_FTRS_7400_NOTAU,
523 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
527 .cpu_setup = __setup_cpu_7400,
528 .platform = "ppc7400",
531 .pvr_mask = 0xffff0000,
532 .pvr_value = 0x000c0000,
534 .cpu_features = CPU_FTRS_7400,
535 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
539 .cpu_setup = __setup_cpu_7400,
540 .platform = "ppc7400",
543 .pvr_mask = 0xffff0000,
544 .pvr_value = 0x800c0000,
546 .cpu_features = CPU_FTRS_7400,
547 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
551 .cpu_setup = __setup_cpu_7410,
552 .platform = "ppc7400",
554 { /* 7450 2.0 - no doze/nap */
555 .pvr_mask = 0xffffffff,
556 .pvr_value = 0x80000200,
558 .cpu_features = CPU_FTRS_7450_20,
559 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
563 .cpu_setup = __setup_cpu_745x,
564 .oprofile_cpu_type = "ppc/7450",
565 .oprofile_type = PPC_OPROFILE_G4,
566 .platform = "ppc7450",
569 .pvr_mask = 0xffffffff,
570 .pvr_value = 0x80000201,
572 .cpu_features = CPU_FTRS_7450_21,
573 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
577 .cpu_setup = __setup_cpu_745x,
578 .oprofile_cpu_type = "ppc/7450",
579 .oprofile_type = PPC_OPROFILE_G4,
580 .platform = "ppc7450",
582 { /* 7450 2.3 and newer */
583 .pvr_mask = 0xffff0000,
584 .pvr_value = 0x80000000,
586 .cpu_features = CPU_FTRS_7450_23,
587 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
591 .cpu_setup = __setup_cpu_745x,
592 .oprofile_cpu_type = "ppc/7450",
593 .oprofile_type = PPC_OPROFILE_G4,
594 .platform = "ppc7450",
597 .pvr_mask = 0xffffff00,
598 .pvr_value = 0x80010100,
600 .cpu_features = CPU_FTRS_7455_1,
601 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
605 .cpu_setup = __setup_cpu_745x,
606 .oprofile_cpu_type = "ppc/7450",
607 .oprofile_type = PPC_OPROFILE_G4,
608 .platform = "ppc7450",
611 .pvr_mask = 0xffffffff,
612 .pvr_value = 0x80010200,
614 .cpu_features = CPU_FTRS_7455_20,
615 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
619 .cpu_setup = __setup_cpu_745x,
620 .oprofile_cpu_type = "ppc/7450",
621 .oprofile_type = PPC_OPROFILE_G4,
622 .platform = "ppc7450",
625 .pvr_mask = 0xffff0000,
626 .pvr_value = 0x80010000,
628 .cpu_features = CPU_FTRS_7455,
629 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
633 .cpu_setup = __setup_cpu_745x,
634 .oprofile_cpu_type = "ppc/7450",
635 .oprofile_type = PPC_OPROFILE_G4,
636 .platform = "ppc7450",
638 { /* 7447/7457 Rev 1.0 */
639 .pvr_mask = 0xffffffff,
640 .pvr_value = 0x80020100,
641 .cpu_name = "7447/7457",
642 .cpu_features = CPU_FTRS_7447_10,
643 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
647 .cpu_setup = __setup_cpu_745x,
648 .oprofile_cpu_type = "ppc/7450",
649 .oprofile_type = PPC_OPROFILE_G4,
650 .platform = "ppc7450",
652 { /* 7447/7457 Rev 1.1 */
653 .pvr_mask = 0xffffffff,
654 .pvr_value = 0x80020101,
655 .cpu_name = "7447/7457",
656 .cpu_features = CPU_FTRS_7447_10,
657 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
661 .cpu_setup = __setup_cpu_745x,
662 .oprofile_cpu_type = "ppc/7450",
663 .oprofile_type = PPC_OPROFILE_G4,
664 .platform = "ppc7450",
666 { /* 7447/7457 Rev 1.2 and later */
667 .pvr_mask = 0xffff0000,
668 .pvr_value = 0x80020000,
669 .cpu_name = "7447/7457",
670 .cpu_features = CPU_FTRS_7447,
671 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
675 .cpu_setup = __setup_cpu_745x,
676 .oprofile_cpu_type = "ppc/7450",
677 .oprofile_type = PPC_OPROFILE_G4,
678 .platform = "ppc7450",
681 .pvr_mask = 0xffff0000,
682 .pvr_value = 0x80030000,
684 .cpu_features = CPU_FTRS_7447A,
685 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
689 .cpu_setup = __setup_cpu_745x,
690 .oprofile_cpu_type = "ppc/7450",
691 .oprofile_type = PPC_OPROFILE_G4,
692 .platform = "ppc7450",
695 .pvr_mask = 0xffff0000,
696 .pvr_value = 0x80040000,
698 .cpu_features = CPU_FTRS_7447A,
699 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
703 .cpu_setup = __setup_cpu_745x,
704 .oprofile_cpu_type = "ppc/7450",
705 .oprofile_type = PPC_OPROFILE_G4,
706 .platform = "ppc7450",
708 { /* 82xx (8240, 8245, 8260 are all 603e cores) */
709 .pvr_mask = 0x7fff0000,
710 .pvr_value = 0x00810000,
712 .cpu_features = CPU_FTRS_82XX,
713 .cpu_user_features = COMMON_USER,
716 .cpu_setup = __setup_cpu_603,
717 .platform = "ppc603",
719 { /* All G2_LE (603e core, plus some) have the same pvr */
720 .pvr_mask = 0x7fff0000,
721 .pvr_value = 0x00820000,
723 .cpu_features = CPU_FTRS_G2_LE,
724 .cpu_user_features = COMMON_USER,
727 .cpu_setup = __setup_cpu_603,
728 .platform = "ppc603",
730 { /* e300 (a 603e core, plus some) on 83xx */
731 .pvr_mask = 0x7fff0000,
732 .pvr_value = 0x00830000,
734 .cpu_features = CPU_FTRS_E300,
735 .cpu_user_features = COMMON_USER,
738 .cpu_setup = __setup_cpu_603,
739 .platform = "ppc603",
741 { /* default match, we assume split I/D cache & TB (non-601)... */
742 .pvr_mask = 0x00000000,
743 .pvr_value = 0x00000000,
744 .cpu_name = "(generic PPC)",
745 .cpu_features = CPU_FTRS_CLASSIC32,
746 .cpu_user_features = COMMON_USER,
749 .platform = "ppc603",
751 #endif /* CLASSIC_PPC */
754 .pvr_mask = 0xffff0000,
755 .pvr_value = 0x00500000,
757 /* CPU_FTR_MAYBE_CAN_DOZE is possible,
758 * if the 8xx code is there.... */
759 .cpu_features = CPU_FTRS_8XX,
760 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
763 .platform = "ppc823",
765 #endif /* CONFIG_8xx */
768 .pvr_mask = 0xffffff00,
769 .pvr_value = 0x00200200,
771 .cpu_features = CPU_FTRS_40X,
772 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
775 .platform = "ppc403",
778 .pvr_mask = 0xffffff00,
779 .pvr_value = 0x00201400,
780 .cpu_name = "403GCX",
781 .cpu_features = CPU_FTRS_40X,
782 .cpu_user_features = PPC_FEATURE_32 |
783 PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB,
786 .platform = "ppc403",
789 .pvr_mask = 0xffff0000,
790 .pvr_value = 0x00200000,
791 .cpu_name = "403G ??",
792 .cpu_features = CPU_FTRS_40X,
793 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
796 .platform = "ppc403",
799 .pvr_mask = 0xffff0000,
800 .pvr_value = 0x40110000,
802 .cpu_features = CPU_FTRS_40X,
803 .cpu_user_features = PPC_FEATURE_32 |
804 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
807 .platform = "ppc405",
810 .pvr_mask = 0xffff0000,
811 .pvr_value = 0x40130000,
812 .cpu_name = "STB03xxx",
813 .cpu_features = CPU_FTRS_40X,
814 .cpu_user_features = PPC_FEATURE_32 |
815 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
818 .platform = "ppc405",
821 .pvr_mask = 0xffff0000,
822 .pvr_value = 0x41810000,
823 .cpu_name = "STB04xxx",
824 .cpu_features = CPU_FTRS_40X,
825 .cpu_user_features = PPC_FEATURE_32 |
826 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
829 .platform = "ppc405",
832 .pvr_mask = 0xffff0000,
833 .pvr_value = 0x41610000,
834 .cpu_name = "NP405L",
835 .cpu_features = CPU_FTRS_40X,
836 .cpu_user_features = PPC_FEATURE_32 |
837 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
840 .platform = "ppc405",
843 .pvr_mask = 0xffff0000,
844 .pvr_value = 0x40B10000,
845 .cpu_name = "NP4GS3",
846 .cpu_features = CPU_FTRS_40X,
847 .cpu_user_features = PPC_FEATURE_32 |
848 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
851 .platform = "ppc405",
854 .pvr_mask = 0xffff0000,
855 .pvr_value = 0x41410000,
856 .cpu_name = "NP405H",
857 .cpu_features = CPU_FTRS_40X,
858 .cpu_user_features = PPC_FEATURE_32 |
859 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
862 .platform = "ppc405",
865 .pvr_mask = 0xffff0000,
866 .pvr_value = 0x50910000,
867 .cpu_name = "405GPr",
868 .cpu_features = CPU_FTRS_40X,
869 .cpu_user_features = PPC_FEATURE_32 |
870 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
873 .platform = "ppc405",
876 .pvr_mask = 0xffff0000,
877 .pvr_value = 0x51510000,
878 .cpu_name = "STBx25xx",
879 .cpu_features = CPU_FTRS_40X,
880 .cpu_user_features = PPC_FEATURE_32 |
881 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
884 .platform = "ppc405",
887 .pvr_mask = 0xffff0000,
888 .pvr_value = 0x41F10000,
890 .cpu_features = CPU_FTRS_40X,
891 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
894 .platform = "ppc405",
896 { /* Xilinx Virtex-II Pro */
897 .pvr_mask = 0xfffff000,
898 .pvr_value = 0x20010000,
899 .cpu_name = "Virtex-II Pro",
900 .cpu_features = CPU_FTRS_40X,
901 .cpu_user_features = PPC_FEATURE_32 |
902 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
905 .platform = "ppc405",
907 { /* Xilinx Virtex-4 FX */
908 .pvr_mask = 0xfffff000,
909 .pvr_value = 0x20011000,
910 .cpu_name = "Virtex-4 FX",
911 .cpu_features = CPU_FTRS_40X,
912 .cpu_user_features = PPC_FEATURE_32 |
913 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
918 .pvr_mask = 0xffff0000,
919 .pvr_value = 0x51210000,
921 .cpu_features = CPU_FTRS_40X,
922 .cpu_user_features = PPC_FEATURE_32 |
923 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
926 .platform = "ppc405",
929 #endif /* CONFIG_40x */
932 .pvr_mask = 0xf0000fff,
933 .pvr_value = 0x40000850,
934 .cpu_name = "440EP Rev. A",
935 .cpu_features = CPU_FTRS_44X,
936 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
939 .platform = "ppc440",
942 .pvr_mask = 0xf0000fff,
943 .pvr_value = 0x400008d3,
944 .cpu_name = "440EP Rev. B",
945 .cpu_features = CPU_FTRS_44X,
946 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
949 .platform = "ppc440",
952 .pvr_mask = 0xf0000fff,
953 .pvr_value = 0x40000440,
954 .cpu_name = "440GP Rev. B",
955 .cpu_features = CPU_FTRS_44X,
956 .cpu_user_features = COMMON_USER_BOOKE,
959 .platform = "ppc440gp",
962 .pvr_mask = 0xf0000fff,
963 .pvr_value = 0x40000481,
964 .cpu_name = "440GP Rev. C",
965 .cpu_features = CPU_FTRS_44X,
966 .cpu_user_features = COMMON_USER_BOOKE,
969 .platform = "ppc440gp",
972 .pvr_mask = 0xf0000fff,
973 .pvr_value = 0x50000850,
974 .cpu_name = "440GX Rev. A",
975 .cpu_features = CPU_FTRS_44X,
976 .cpu_user_features = COMMON_USER_BOOKE,
979 .platform = "ppc440",
982 .pvr_mask = 0xf0000fff,
983 .pvr_value = 0x50000851,
984 .cpu_name = "440GX Rev. B",
985 .cpu_features = CPU_FTRS_44X,
986 .cpu_user_features = COMMON_USER_BOOKE,
989 .platform = "ppc440",
992 .pvr_mask = 0xf0000fff,
993 .pvr_value = 0x50000892,
994 .cpu_name = "440GX Rev. C",
995 .cpu_features = CPU_FTRS_44X,
996 .cpu_user_features = COMMON_USER_BOOKE,
999 .platform = "ppc440",
1001 { /* 440GX Rev. F */
1002 .pvr_mask = 0xf0000fff,
1003 .pvr_value = 0x50000894,
1004 .cpu_name = "440GX Rev. F",
1005 .cpu_features = CPU_FTRS_44X,
1006 .cpu_user_features = COMMON_USER_BOOKE,
1009 .platform = "ppc440",
1011 { /* 440SP Rev. A */
1012 .pvr_mask = 0xff000fff,
1013 .pvr_value = 0x53000891,
1014 .cpu_name = "440SP Rev. A",
1015 .cpu_features = CPU_FTRS_44X,
1016 .cpu_user_features = COMMON_USER_BOOKE,
1019 .platform = "ppc440",
1021 { /* 440SPe Rev. A */
1022 .pvr_mask = 0xff000fff,
1023 .pvr_value = 0x53000890,
1024 .cpu_name = "440SPe Rev. A",
1025 .cpu_features = CPU_FTR_SPLIT_ID_CACHE |
1027 .cpu_user_features = COMMON_USER_BOOKE,
1030 .platform = "ppc440",
1032 #endif /* CONFIG_44x */
1033 #ifdef CONFIG_FSL_BOOKE
1035 .pvr_mask = 0xfff00000,
1036 .pvr_value = 0x81000000,
1037 .cpu_name = "e200z5",
1038 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1039 .cpu_features = CPU_FTRS_E200,
1040 .cpu_user_features = COMMON_USER_BOOKE |
1041 PPC_FEATURE_HAS_EFP_SINGLE |
1042 PPC_FEATURE_UNIFIED_CACHE,
1044 .platform = "ppc5554",
1047 .pvr_mask = 0xfff00000,
1048 .pvr_value = 0x81100000,
1049 .cpu_name = "e200z6",
1050 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1051 .cpu_features = CPU_FTRS_E200,
1052 .cpu_user_features = COMMON_USER_BOOKE |
1053 PPC_FEATURE_SPE_COMP |
1054 PPC_FEATURE_HAS_EFP_SINGLE |
1055 PPC_FEATURE_UNIFIED_CACHE,
1057 .platform = "ppc5554",
1060 .pvr_mask = 0xffff0000,
1061 .pvr_value = 0x80200000,
1063 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1064 .cpu_features = CPU_FTRS_E500,
1065 .cpu_user_features = COMMON_USER_BOOKE |
1066 PPC_FEATURE_SPE_COMP |
1067 PPC_FEATURE_HAS_EFP_SINGLE,
1071 .oprofile_cpu_type = "ppc/e500",
1072 .oprofile_type = PPC_OPROFILE_BOOKE,
1073 .platform = "ppc8540",
1076 .pvr_mask = 0xffff0000,
1077 .pvr_value = 0x80210000,
1078 .cpu_name = "e500v2",
1079 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1080 .cpu_features = CPU_FTRS_E500_2,
1081 .cpu_user_features = COMMON_USER_BOOKE |
1082 PPC_FEATURE_SPE_COMP |
1083 PPC_FEATURE_HAS_EFP_SINGLE |
1084 PPC_FEATURE_HAS_EFP_DOUBLE,
1088 .oprofile_cpu_type = "ppc/e500",
1089 .oprofile_type = PPC_OPROFILE_BOOKE,
1090 .platform = "ppc8548",
1094 { /* default match */
1095 .pvr_mask = 0x00000000,
1096 .pvr_value = 0x00000000,
1097 .cpu_name = "(generic PPC)",
1098 .cpu_features = CPU_FTRS_GENERIC_32,
1099 .cpu_user_features = PPC_FEATURE_32,
1102 .platform = "powerpc",
1104 #endif /* !CLASSIC_PPC */
1105 #endif /* CONFIG_PPC32 */