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 #define COMMON_USER_POWER5_PLUS (COMMON_USER_PPC64 | PPC_FEATURE_POWER5_PLUS)
58 #define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \
61 /* We only set the spe features if the kernel was compiled with
65 #define PPC_FEATURE_SPE_COMP PPC_FEATURE_HAS_SPE
67 #define PPC_FEATURE_SPE_COMP 0
70 struct cpu_spec cpu_specs[] = {
73 .pvr_mask = 0xffff0000,
74 .pvr_value = 0x00400000,
75 .cpu_name = "POWER3 (630)",
76 .cpu_features = CPU_FTRS_POWER3,
77 .cpu_user_features = COMMON_USER_PPC64,
81 .cpu_setup = __setup_cpu_power3,
82 .oprofile_cpu_type = "ppc64/power3",
83 .oprofile_type = PPC_OPROFILE_RS64,
87 .pvr_mask = 0xffff0000,
88 .pvr_value = 0x00410000,
89 .cpu_name = "POWER3 (630+)",
90 .cpu_features = CPU_FTRS_POWER3,
91 .cpu_user_features = COMMON_USER_PPC64,
95 .cpu_setup = __setup_cpu_power3,
96 .oprofile_cpu_type = "ppc64/power3",
97 .oprofile_type = PPC_OPROFILE_RS64,
101 .pvr_mask = 0xffff0000,
102 .pvr_value = 0x00330000,
103 .cpu_name = "RS64-II (northstar)",
104 .cpu_features = CPU_FTRS_RS64,
105 .cpu_user_features = COMMON_USER_PPC64,
109 .cpu_setup = __setup_cpu_power3,
110 .oprofile_cpu_type = "ppc64/rs64",
111 .oprofile_type = PPC_OPROFILE_RS64,
115 .pvr_mask = 0xffff0000,
116 .pvr_value = 0x00340000,
117 .cpu_name = "RS64-III (pulsar)",
118 .cpu_features = CPU_FTRS_RS64,
119 .cpu_user_features = COMMON_USER_PPC64,
123 .cpu_setup = __setup_cpu_power3,
124 .oprofile_cpu_type = "ppc64/rs64",
125 .oprofile_type = PPC_OPROFILE_RS64,
129 .pvr_mask = 0xffff0000,
130 .pvr_value = 0x00360000,
131 .cpu_name = "RS64-III (icestar)",
132 .cpu_features = CPU_FTRS_RS64,
133 .cpu_user_features = COMMON_USER_PPC64,
137 .cpu_setup = __setup_cpu_power3,
138 .oprofile_cpu_type = "ppc64/rs64",
139 .oprofile_type = PPC_OPROFILE_RS64,
143 .pvr_mask = 0xffff0000,
144 .pvr_value = 0x00370000,
145 .cpu_name = "RS64-IV (sstar)",
146 .cpu_features = CPU_FTRS_RS64,
147 .cpu_user_features = COMMON_USER_PPC64,
151 .cpu_setup = __setup_cpu_power3,
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 .cpu_setup = __setup_cpu_power4,
166 .oprofile_cpu_type = "ppc64/power4",
167 .oprofile_type = PPC_OPROFILE_POWER4,
168 .platform = "power4",
171 .pvr_mask = 0xffff0000,
172 .pvr_value = 0x00380000,
173 .cpu_name = "POWER4+ (gq)",
174 .cpu_features = CPU_FTRS_POWER4,
175 .cpu_user_features = COMMON_USER_POWER4,
179 .cpu_setup = __setup_cpu_power4,
180 .oprofile_cpu_type = "ppc64/power4",
181 .oprofile_type = PPC_OPROFILE_POWER4,
182 .platform = "power4",
185 .pvr_mask = 0xffff0000,
186 .pvr_value = 0x00390000,
187 .cpu_name = "PPC970",
188 .cpu_features = CPU_FTRS_PPC970,
189 .cpu_user_features = COMMON_USER_POWER4 |
190 PPC_FEATURE_HAS_ALTIVEC_COMP,
194 .cpu_setup = __setup_cpu_ppc970,
195 .oprofile_cpu_type = "ppc64/970",
196 .oprofile_type = PPC_OPROFILE_POWER4,
197 .platform = "ppc970",
199 #endif /* CONFIG_PPC64 */
200 #if defined(CONFIG_PPC64) || defined(CONFIG_POWER4)
202 .pvr_mask = 0xffff0000,
203 .pvr_value = 0x003c0000,
204 .cpu_name = "PPC970FX",
206 .cpu_features = CPU_FTRS_970_32,
208 .cpu_features = CPU_FTRS_PPC970,
210 .cpu_user_features = COMMON_USER_POWER4 |
211 PPC_FEATURE_HAS_ALTIVEC_COMP,
215 .cpu_setup = __setup_cpu_ppc970,
216 .oprofile_cpu_type = "ppc64/970",
217 .oprofile_type = PPC_OPROFILE_POWER4,
218 .platform = "ppc970",
220 #endif /* defined(CONFIG_PPC64) || defined(CONFIG_POWER4) */
223 .pvr_mask = 0xffff0000,
224 .pvr_value = 0x00440000,
225 .cpu_name = "PPC970MP",
226 .cpu_features = CPU_FTRS_PPC970,
227 .cpu_user_features = COMMON_USER_POWER4 |
228 PPC_FEATURE_HAS_ALTIVEC_COMP,
231 .cpu_setup = __setup_cpu_ppc970,
232 .oprofile_cpu_type = "ppc64/970",
233 .oprofile_type = PPC_OPROFILE_POWER4,
234 .platform = "ppc970",
237 .pvr_mask = 0xffff0000,
238 .pvr_value = 0x003a0000,
239 .cpu_name = "POWER5 (gr)",
240 .cpu_features = CPU_FTRS_POWER5,
241 .cpu_user_features = COMMON_USER_POWER5,
245 .cpu_setup = __setup_cpu_power4,
246 .oprofile_cpu_type = "ppc64/power5",
247 .oprofile_type = PPC_OPROFILE_POWER4,
248 .platform = "power5",
251 .pvr_mask = 0xffff0000,
252 .pvr_value = 0x003b0000,
253 .cpu_name = "POWER5+ (gs)",
254 .cpu_features = CPU_FTRS_POWER5,
255 .cpu_user_features = COMMON_USER_POWER5_PLUS,
259 .cpu_setup = __setup_cpu_power4,
260 .oprofile_cpu_type = "ppc64/power5+",
261 .oprofile_type = PPC_OPROFILE_POWER4,
262 .platform = "power5+",
264 { /* Cell Broadband Engine */
265 .pvr_mask = 0xffff0000,
266 .pvr_value = 0x00700000,
267 .cpu_name = "Cell Broadband Engine",
268 .cpu_features = CPU_FTRS_CELL,
269 .cpu_user_features = COMMON_USER_PPC64 |
270 PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP,
273 .cpu_setup = __setup_cpu_be,
274 .platform = "ppc-cell-be",
276 { /* default match */
277 .pvr_mask = 0x00000000,
278 .pvr_value = 0x00000000,
279 .cpu_name = "POWER4 (compatible)",
280 .cpu_features = CPU_FTRS_COMPATIBLE,
281 .cpu_user_features = COMMON_USER_PPC64,
285 .cpu_setup = __setup_cpu_power4,
286 .platform = "power4",
288 #endif /* CONFIG_PPC64 */
292 .pvr_mask = 0xffff0000,
293 .pvr_value = 0x00010000,
295 .cpu_features = CPU_FTRS_PPC601,
296 .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR |
297 PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB,
300 .platform = "ppc601",
303 .pvr_mask = 0xffff0000,
304 .pvr_value = 0x00030000,
306 .cpu_features = CPU_FTRS_603,
307 .cpu_user_features = COMMON_USER,
310 .cpu_setup = __setup_cpu_603,
311 .platform = "ppc603",
314 .pvr_mask = 0xffff0000,
315 .pvr_value = 0x00060000,
317 .cpu_features = CPU_FTRS_603,
318 .cpu_user_features = COMMON_USER,
321 .cpu_setup = __setup_cpu_603,
322 .platform = "ppc603",
325 .pvr_mask = 0xffff0000,
326 .pvr_value = 0x00070000,
328 .cpu_features = CPU_FTRS_603,
329 .cpu_user_features = COMMON_USER,
332 .cpu_setup = __setup_cpu_603,
333 .platform = "ppc603",
336 .pvr_mask = 0xffff0000,
337 .pvr_value = 0x00040000,
339 .cpu_features = CPU_FTRS_604,
340 .cpu_user_features = COMMON_USER,
344 .cpu_setup = __setup_cpu_604,
345 .platform = "ppc604",
348 .pvr_mask = 0xfffff000,
349 .pvr_value = 0x00090000,
351 .cpu_features = CPU_FTRS_604,
352 .cpu_user_features = COMMON_USER,
356 .cpu_setup = __setup_cpu_604,
357 .platform = "ppc604",
360 .pvr_mask = 0xffff0000,
361 .pvr_value = 0x00090000,
363 .cpu_features = CPU_FTRS_604,
364 .cpu_user_features = COMMON_USER,
368 .cpu_setup = __setup_cpu_604,
369 .platform = "ppc604",
372 .pvr_mask = 0xffff0000,
373 .pvr_value = 0x000a0000,
375 .cpu_features = CPU_FTRS_604,
376 .cpu_user_features = COMMON_USER,
380 .cpu_setup = __setup_cpu_604,
381 .platform = "ppc604",
383 { /* 740/750 (0x4202, don't support TAU ?) */
384 .pvr_mask = 0xffffffff,
385 .pvr_value = 0x00084202,
386 .cpu_name = "740/750",
387 .cpu_features = CPU_FTRS_740_NOTAU,
388 .cpu_user_features = COMMON_USER,
392 .cpu_setup = __setup_cpu_750,
393 .platform = "ppc750",
395 { /* 750CX (80100 and 8010x?) */
396 .pvr_mask = 0xfffffff0,
397 .pvr_value = 0x00080100,
399 .cpu_features = CPU_FTRS_750,
400 .cpu_user_features = COMMON_USER,
404 .cpu_setup = __setup_cpu_750cx,
405 .platform = "ppc750",
407 { /* 750CX (82201 and 82202) */
408 .pvr_mask = 0xfffffff0,
409 .pvr_value = 0x00082200,
411 .cpu_features = CPU_FTRS_750,
412 .cpu_user_features = COMMON_USER,
416 .cpu_setup = __setup_cpu_750cx,
417 .platform = "ppc750",
419 { /* 750CXe (82214) */
420 .pvr_mask = 0xfffffff0,
421 .pvr_value = 0x00082210,
422 .cpu_name = "750CXe",
423 .cpu_features = CPU_FTRS_750,
424 .cpu_user_features = COMMON_USER,
428 .cpu_setup = __setup_cpu_750cx,
429 .platform = "ppc750",
431 { /* 750CXe "Gekko" (83214) */
432 .pvr_mask = 0xffffffff,
433 .pvr_value = 0x00083214,
434 .cpu_name = "750CXe",
435 .cpu_features = CPU_FTRS_750,
436 .cpu_user_features = COMMON_USER,
440 .cpu_setup = __setup_cpu_750cx,
441 .platform = "ppc750",
444 .pvr_mask = 0xfffff000,
445 .pvr_value = 0x00083000,
446 .cpu_name = "745/755",
447 .cpu_features = CPU_FTRS_750,
448 .cpu_user_features = COMMON_USER,
452 .cpu_setup = __setup_cpu_750,
453 .platform = "ppc750",
455 { /* 750FX rev 1.x */
456 .pvr_mask = 0xffffff00,
457 .pvr_value = 0x70000100,
459 .cpu_features = CPU_FTRS_750FX1,
460 .cpu_user_features = COMMON_USER,
464 .cpu_setup = __setup_cpu_750,
465 .platform = "ppc750",
467 { /* 750FX rev 2.0 must disable HID0[DPM] */
468 .pvr_mask = 0xffffffff,
469 .pvr_value = 0x70000200,
471 .cpu_features = CPU_FTRS_750FX2,
472 .cpu_user_features = COMMON_USER,
476 .cpu_setup = __setup_cpu_750,
477 .platform = "ppc750",
479 { /* 750FX (All revs except 2.0) */
480 .pvr_mask = 0xffff0000,
481 .pvr_value = 0x70000000,
483 .cpu_features = CPU_FTRS_750FX,
484 .cpu_user_features = COMMON_USER,
488 .cpu_setup = __setup_cpu_750fx,
489 .platform = "ppc750",
492 .pvr_mask = 0xffff0000,
493 .pvr_value = 0x70020000,
495 .cpu_features = CPU_FTRS_750GX,
496 .cpu_user_features = COMMON_USER,
500 .cpu_setup = __setup_cpu_750fx,
501 .platform = "ppc750",
503 { /* 740/750 (L2CR bit need fixup for 740) */
504 .pvr_mask = 0xffff0000,
505 .pvr_value = 0x00080000,
506 .cpu_name = "740/750",
507 .cpu_features = CPU_FTRS_740,
508 .cpu_user_features = COMMON_USER,
512 .cpu_setup = __setup_cpu_750,
513 .platform = "ppc750",
515 { /* 7400 rev 1.1 ? (no TAU) */
516 .pvr_mask = 0xffffffff,
517 .pvr_value = 0x000c1101,
518 .cpu_name = "7400 (1.1)",
519 .cpu_features = CPU_FTRS_7400_NOTAU,
520 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
524 .cpu_setup = __setup_cpu_7400,
525 .platform = "ppc7400",
528 .pvr_mask = 0xffff0000,
529 .pvr_value = 0x000c0000,
531 .cpu_features = CPU_FTRS_7400,
532 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
536 .cpu_setup = __setup_cpu_7400,
537 .platform = "ppc7400",
540 .pvr_mask = 0xffff0000,
541 .pvr_value = 0x800c0000,
543 .cpu_features = CPU_FTRS_7400,
544 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
548 .cpu_setup = __setup_cpu_7410,
549 .platform = "ppc7400",
551 { /* 7450 2.0 - no doze/nap */
552 .pvr_mask = 0xffffffff,
553 .pvr_value = 0x80000200,
555 .cpu_features = CPU_FTRS_7450_20,
556 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
560 .cpu_setup = __setup_cpu_745x,
561 .oprofile_cpu_type = "ppc/7450",
562 .oprofile_type = PPC_OPROFILE_G4,
563 .platform = "ppc7450",
566 .pvr_mask = 0xffffffff,
567 .pvr_value = 0x80000201,
569 .cpu_features = CPU_FTRS_7450_21,
570 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
574 .cpu_setup = __setup_cpu_745x,
575 .oprofile_cpu_type = "ppc/7450",
576 .oprofile_type = PPC_OPROFILE_G4,
577 .platform = "ppc7450",
579 { /* 7450 2.3 and newer */
580 .pvr_mask = 0xffff0000,
581 .pvr_value = 0x80000000,
583 .cpu_features = CPU_FTRS_7450_23,
584 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
588 .cpu_setup = __setup_cpu_745x,
589 .oprofile_cpu_type = "ppc/7450",
590 .oprofile_type = PPC_OPROFILE_G4,
591 .platform = "ppc7450",
594 .pvr_mask = 0xffffff00,
595 .pvr_value = 0x80010100,
597 .cpu_features = CPU_FTRS_7455_1,
598 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
602 .cpu_setup = __setup_cpu_745x,
603 .oprofile_cpu_type = "ppc/7450",
604 .oprofile_type = PPC_OPROFILE_G4,
605 .platform = "ppc7450",
608 .pvr_mask = 0xffffffff,
609 .pvr_value = 0x80010200,
611 .cpu_features = CPU_FTRS_7455_20,
612 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
616 .cpu_setup = __setup_cpu_745x,
617 .oprofile_cpu_type = "ppc/7450",
618 .oprofile_type = PPC_OPROFILE_G4,
619 .platform = "ppc7450",
622 .pvr_mask = 0xffff0000,
623 .pvr_value = 0x80010000,
625 .cpu_features = CPU_FTRS_7455,
626 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
630 .cpu_setup = __setup_cpu_745x,
631 .oprofile_cpu_type = "ppc/7450",
632 .oprofile_type = PPC_OPROFILE_G4,
633 .platform = "ppc7450",
635 { /* 7447/7457 Rev 1.0 */
636 .pvr_mask = 0xffffffff,
637 .pvr_value = 0x80020100,
638 .cpu_name = "7447/7457",
639 .cpu_features = CPU_FTRS_7447_10,
640 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
644 .cpu_setup = __setup_cpu_745x,
645 .oprofile_cpu_type = "ppc/7450",
646 .oprofile_type = PPC_OPROFILE_G4,
647 .platform = "ppc7450",
649 { /* 7447/7457 Rev 1.1 */
650 .pvr_mask = 0xffffffff,
651 .pvr_value = 0x80020101,
652 .cpu_name = "7447/7457",
653 .cpu_features = CPU_FTRS_7447_10,
654 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
658 .cpu_setup = __setup_cpu_745x,
659 .oprofile_cpu_type = "ppc/7450",
660 .oprofile_type = PPC_OPROFILE_G4,
661 .platform = "ppc7450",
663 { /* 7447/7457 Rev 1.2 and later */
664 .pvr_mask = 0xffff0000,
665 .pvr_value = 0x80020000,
666 .cpu_name = "7447/7457",
667 .cpu_features = CPU_FTRS_7447,
668 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
672 .cpu_setup = __setup_cpu_745x,
673 .oprofile_cpu_type = "ppc/7450",
674 .oprofile_type = PPC_OPROFILE_G4,
675 .platform = "ppc7450",
678 .pvr_mask = 0xffff0000,
679 .pvr_value = 0x80030000,
681 .cpu_features = CPU_FTRS_7447A,
682 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
686 .cpu_setup = __setup_cpu_745x,
687 .oprofile_cpu_type = "ppc/7450",
688 .oprofile_type = PPC_OPROFILE_G4,
689 .platform = "ppc7450",
692 .pvr_mask = 0xffff0000,
693 .pvr_value = 0x80040000,
695 .cpu_features = CPU_FTRS_7447A,
696 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
700 .cpu_setup = __setup_cpu_745x,
701 .oprofile_cpu_type = "ppc/7450",
702 .oprofile_type = PPC_OPROFILE_G4,
703 .platform = "ppc7450",
705 { /* 82xx (8240, 8245, 8260 are all 603e cores) */
706 .pvr_mask = 0x7fff0000,
707 .pvr_value = 0x00810000,
709 .cpu_features = CPU_FTRS_82XX,
710 .cpu_user_features = COMMON_USER,
713 .cpu_setup = __setup_cpu_603,
714 .platform = "ppc603",
716 { /* All G2_LE (603e core, plus some) have the same pvr */
717 .pvr_mask = 0x7fff0000,
718 .pvr_value = 0x00820000,
720 .cpu_features = CPU_FTRS_G2_LE,
721 .cpu_user_features = COMMON_USER,
724 .cpu_setup = __setup_cpu_603,
725 .platform = "ppc603",
727 { /* e300 (a 603e core, plus some) on 83xx */
728 .pvr_mask = 0x7fff0000,
729 .pvr_value = 0x00830000,
731 .cpu_features = CPU_FTRS_E300,
732 .cpu_user_features = COMMON_USER,
735 .cpu_setup = __setup_cpu_603,
736 .platform = "ppc603",
738 { /* default match, we assume split I/D cache & TB (non-601)... */
739 .pvr_mask = 0x00000000,
740 .pvr_value = 0x00000000,
741 .cpu_name = "(generic PPC)",
742 .cpu_features = CPU_FTRS_CLASSIC32,
743 .cpu_user_features = COMMON_USER,
746 .platform = "ppc603",
748 #endif /* CLASSIC_PPC */
751 .pvr_mask = 0xffff0000,
752 .pvr_value = 0x00500000,
754 /* CPU_FTR_MAYBE_CAN_DOZE is possible,
755 * if the 8xx code is there.... */
756 .cpu_features = CPU_FTRS_8XX,
757 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
760 .platform = "ppc823",
762 #endif /* CONFIG_8xx */
765 .pvr_mask = 0xffffff00,
766 .pvr_value = 0x00200200,
768 .cpu_features = CPU_FTRS_40X,
769 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
772 .platform = "ppc403",
775 .pvr_mask = 0xffffff00,
776 .pvr_value = 0x00201400,
777 .cpu_name = "403GCX",
778 .cpu_features = CPU_FTRS_40X,
779 .cpu_user_features = PPC_FEATURE_32 |
780 PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB,
783 .platform = "ppc403",
786 .pvr_mask = 0xffff0000,
787 .pvr_value = 0x00200000,
788 .cpu_name = "403G ??",
789 .cpu_features = CPU_FTRS_40X,
790 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
793 .platform = "ppc403",
796 .pvr_mask = 0xffff0000,
797 .pvr_value = 0x40110000,
799 .cpu_features = CPU_FTRS_40X,
800 .cpu_user_features = PPC_FEATURE_32 |
801 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
804 .platform = "ppc405",
807 .pvr_mask = 0xffff0000,
808 .pvr_value = 0x40130000,
809 .cpu_name = "STB03xxx",
810 .cpu_features = CPU_FTRS_40X,
811 .cpu_user_features = PPC_FEATURE_32 |
812 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
815 .platform = "ppc405",
818 .pvr_mask = 0xffff0000,
819 .pvr_value = 0x41810000,
820 .cpu_name = "STB04xxx",
821 .cpu_features = CPU_FTRS_40X,
822 .cpu_user_features = PPC_FEATURE_32 |
823 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
826 .platform = "ppc405",
829 .pvr_mask = 0xffff0000,
830 .pvr_value = 0x41610000,
831 .cpu_name = "NP405L",
832 .cpu_features = CPU_FTRS_40X,
833 .cpu_user_features = PPC_FEATURE_32 |
834 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
837 .platform = "ppc405",
840 .pvr_mask = 0xffff0000,
841 .pvr_value = 0x40B10000,
842 .cpu_name = "NP4GS3",
843 .cpu_features = CPU_FTRS_40X,
844 .cpu_user_features = PPC_FEATURE_32 |
845 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
848 .platform = "ppc405",
851 .pvr_mask = 0xffff0000,
852 .pvr_value = 0x41410000,
853 .cpu_name = "NP405H",
854 .cpu_features = CPU_FTRS_40X,
855 .cpu_user_features = PPC_FEATURE_32 |
856 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
859 .platform = "ppc405",
862 .pvr_mask = 0xffff0000,
863 .pvr_value = 0x50910000,
864 .cpu_name = "405GPr",
865 .cpu_features = CPU_FTRS_40X,
866 .cpu_user_features = PPC_FEATURE_32 |
867 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
870 .platform = "ppc405",
873 .pvr_mask = 0xffff0000,
874 .pvr_value = 0x51510000,
875 .cpu_name = "STBx25xx",
876 .cpu_features = CPU_FTRS_40X,
877 .cpu_user_features = PPC_FEATURE_32 |
878 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
881 .platform = "ppc405",
884 .pvr_mask = 0xffff0000,
885 .pvr_value = 0x41F10000,
887 .cpu_features = CPU_FTRS_40X,
888 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
891 .platform = "ppc405",
893 { /* Xilinx Virtex-II Pro */
894 .pvr_mask = 0xffff0000,
895 .pvr_value = 0x20010000,
896 .cpu_name = "Virtex-II Pro",
897 .cpu_features = CPU_FTRS_40X,
898 .cpu_user_features = PPC_FEATURE_32 |
899 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
902 .platform = "ppc405",
905 .pvr_mask = 0xffff0000,
906 .pvr_value = 0x51210000,
908 .cpu_features = CPU_FTRS_40X,
909 .cpu_user_features = PPC_FEATURE_32 |
910 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
913 .platform = "ppc405",
916 #endif /* CONFIG_40x */
919 .pvr_mask = 0xf0000fff,
920 .pvr_value = 0x40000850,
921 .cpu_name = "440EP Rev. A",
922 .cpu_features = CPU_FTRS_44X,
923 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
926 .platform = "ppc440",
929 .pvr_mask = 0xf0000fff,
930 .pvr_value = 0x400008d3,
931 .cpu_name = "440EP Rev. B",
932 .cpu_features = CPU_FTRS_44X,
933 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
936 .platform = "ppc440",
939 .pvr_mask = 0xf0000fff,
940 .pvr_value = 0x40000440,
941 .cpu_name = "440GP Rev. B",
942 .cpu_features = CPU_FTRS_44X,
943 .cpu_user_features = COMMON_USER_BOOKE,
946 .platform = "ppc440gp",
949 .pvr_mask = 0xf0000fff,
950 .pvr_value = 0x40000481,
951 .cpu_name = "440GP Rev. C",
952 .cpu_features = CPU_FTRS_44X,
953 .cpu_user_features = COMMON_USER_BOOKE,
956 .platform = "ppc440gp",
959 .pvr_mask = 0xf0000fff,
960 .pvr_value = 0x50000850,
961 .cpu_name = "440GX Rev. A",
962 .cpu_features = CPU_FTRS_44X,
963 .cpu_user_features = COMMON_USER_BOOKE,
966 .platform = "ppc440",
969 .pvr_mask = 0xf0000fff,
970 .pvr_value = 0x50000851,
971 .cpu_name = "440GX Rev. B",
972 .cpu_features = CPU_FTRS_44X,
973 .cpu_user_features = COMMON_USER_BOOKE,
976 .platform = "ppc440",
979 .pvr_mask = 0xf0000fff,
980 .pvr_value = 0x50000892,
981 .cpu_name = "440GX Rev. C",
982 .cpu_features = CPU_FTRS_44X,
983 .cpu_user_features = COMMON_USER_BOOKE,
986 .platform = "ppc440",
989 .pvr_mask = 0xf0000fff,
990 .pvr_value = 0x50000894,
991 .cpu_name = "440GX Rev. F",
992 .cpu_features = CPU_FTRS_44X,
993 .cpu_user_features = COMMON_USER_BOOKE,
996 .platform = "ppc440",
999 .pvr_mask = 0xff000fff,
1000 .pvr_value = 0x53000891,
1001 .cpu_name = "440SP Rev. A",
1002 .cpu_features = CPU_FTRS_44X,
1003 .cpu_user_features = COMMON_USER_BOOKE,
1006 .platform = "ppc440",
1008 { /* 440SPe Rev. A */
1009 .pvr_mask = 0xff000fff,
1010 .pvr_value = 0x53000890,
1011 .cpu_name = "440SPe Rev. A",
1012 .cpu_features = CPU_FTR_SPLIT_ID_CACHE |
1014 .cpu_user_features = COMMON_USER_BOOKE,
1017 .platform = "ppc440",
1019 #endif /* CONFIG_44x */
1020 #ifdef CONFIG_FSL_BOOKE
1022 .pvr_mask = 0xfff00000,
1023 .pvr_value = 0x81000000,
1024 .cpu_name = "e200z5",
1025 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1026 .cpu_features = CPU_FTRS_E200,
1027 .cpu_user_features = COMMON_USER_BOOKE |
1028 PPC_FEATURE_HAS_EFP_SINGLE |
1029 PPC_FEATURE_UNIFIED_CACHE,
1031 .platform = "ppc5554",
1034 .pvr_mask = 0xfff00000,
1035 .pvr_value = 0x81100000,
1036 .cpu_name = "e200z6",
1037 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1038 .cpu_features = CPU_FTRS_E200,
1039 .cpu_user_features = COMMON_USER_BOOKE |
1040 PPC_FEATURE_SPE_COMP |
1041 PPC_FEATURE_HAS_EFP_SINGLE |
1042 PPC_FEATURE_UNIFIED_CACHE,
1044 .platform = "ppc5554",
1047 .pvr_mask = 0xffff0000,
1048 .pvr_value = 0x80200000,
1050 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1051 .cpu_features = CPU_FTRS_E500,
1052 .cpu_user_features = COMMON_USER_BOOKE |
1053 PPC_FEATURE_SPE_COMP |
1054 PPC_FEATURE_HAS_EFP_SINGLE,
1058 .oprofile_cpu_type = "ppc/e500",
1059 .oprofile_type = PPC_OPROFILE_BOOKE,
1060 .platform = "ppc8540",
1063 .pvr_mask = 0xffff0000,
1064 .pvr_value = 0x80210000,
1065 .cpu_name = "e500v2",
1066 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1067 .cpu_features = CPU_FTRS_E500_2,
1068 .cpu_user_features = COMMON_USER_BOOKE |
1069 PPC_FEATURE_SPE_COMP |
1070 PPC_FEATURE_HAS_EFP_SINGLE |
1071 PPC_FEATURE_HAS_EFP_DOUBLE,
1075 .oprofile_cpu_type = "ppc/e500",
1076 .oprofile_type = PPC_OPROFILE_BOOKE,
1077 .platform = "ppc8548",
1081 { /* default match */
1082 .pvr_mask = 0x00000000,
1083 .pvr_value = 0x00000000,
1084 .cpu_name = "(generic PPC)",
1085 .cpu_features = CPU_FTRS_GENERIC_32,
1086 .cpu_user_features = PPC_FEATURE_32,
1089 .platform = "powerpc",
1091 #endif /* !CLASSIC_PPC */
1092 #endif /* CONFIG_PPC32 */