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 */
42 extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec);
44 /* This table only contains "desktop" CPUs, it need to be filled with embedded
47 #define COMMON_USER (PPC_FEATURE_32 | PPC_FEATURE_HAS_FPU | \
49 #define COMMON_USER_PPC64 (COMMON_USER | PPC_FEATURE_64)
50 #define COMMON_USER_POWER4 (COMMON_USER_PPC64 | PPC_FEATURE_POWER4)
51 #define COMMON_USER_POWER5 (COMMON_USER_PPC64 | PPC_FEATURE_POWER5 |\
52 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
53 #define COMMON_USER_POWER5_PLUS (COMMON_USER_PPC64 | PPC_FEATURE_POWER5_PLUS|\
54 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
55 #define COMMON_USER_POWER6 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_05 |\
56 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \
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|PPC_FEATURE_PPC_LE,
81 .oprofile_cpu_type = "ppc64/power3",
82 .oprofile_type = PPC_OPROFILE_RS64,
86 .pvr_mask = 0xffff0000,
87 .pvr_value = 0x00410000,
88 .cpu_name = "POWER3 (630+)",
89 .cpu_features = CPU_FTRS_POWER3,
90 .cpu_user_features = COMMON_USER_PPC64|PPC_FEATURE_PPC_LE,
94 .oprofile_cpu_type = "ppc64/power3",
95 .oprofile_type = PPC_OPROFILE_RS64,
99 .pvr_mask = 0xffff0000,
100 .pvr_value = 0x00330000,
101 .cpu_name = "RS64-II (northstar)",
102 .cpu_features = CPU_FTRS_RS64,
103 .cpu_user_features = COMMON_USER_PPC64,
107 .oprofile_cpu_type = "ppc64/rs64",
108 .oprofile_type = PPC_OPROFILE_RS64,
112 .pvr_mask = 0xffff0000,
113 .pvr_value = 0x00340000,
114 .cpu_name = "RS64-III (pulsar)",
115 .cpu_features = CPU_FTRS_RS64,
116 .cpu_user_features = COMMON_USER_PPC64,
120 .oprofile_cpu_type = "ppc64/rs64",
121 .oprofile_type = PPC_OPROFILE_RS64,
125 .pvr_mask = 0xffff0000,
126 .pvr_value = 0x00360000,
127 .cpu_name = "RS64-III (icestar)",
128 .cpu_features = CPU_FTRS_RS64,
129 .cpu_user_features = COMMON_USER_PPC64,
133 .oprofile_cpu_type = "ppc64/rs64",
134 .oprofile_type = PPC_OPROFILE_RS64,
138 .pvr_mask = 0xffff0000,
139 .pvr_value = 0x00370000,
140 .cpu_name = "RS64-IV (sstar)",
141 .cpu_features = CPU_FTRS_RS64,
142 .cpu_user_features = COMMON_USER_PPC64,
146 .oprofile_cpu_type = "ppc64/rs64",
147 .oprofile_type = PPC_OPROFILE_RS64,
151 .pvr_mask = 0xffff0000,
152 .pvr_value = 0x00350000,
153 .cpu_name = "POWER4 (gp)",
154 .cpu_features = CPU_FTRS_POWER4,
155 .cpu_user_features = COMMON_USER_POWER4,
159 .oprofile_cpu_type = "ppc64/power4",
160 .oprofile_type = PPC_OPROFILE_POWER4,
161 .platform = "power4",
164 .pvr_mask = 0xffff0000,
165 .pvr_value = 0x00380000,
166 .cpu_name = "POWER4+ (gq)",
167 .cpu_features = CPU_FTRS_POWER4,
168 .cpu_user_features = COMMON_USER_POWER4,
172 .oprofile_cpu_type = "ppc64/power4",
173 .oprofile_type = PPC_OPROFILE_POWER4,
174 .platform = "power4",
177 .pvr_mask = 0xffff0000,
178 .pvr_value = 0x00390000,
179 .cpu_name = "PPC970",
180 .cpu_features = CPU_FTRS_PPC970,
181 .cpu_user_features = COMMON_USER_POWER4 |
182 PPC_FEATURE_HAS_ALTIVEC_COMP,
186 .cpu_setup = __setup_cpu_ppc970,
187 .oprofile_cpu_type = "ppc64/970",
188 .oprofile_type = PPC_OPROFILE_POWER4,
189 .platform = "ppc970",
192 .pvr_mask = 0xffff0000,
193 .pvr_value = 0x003c0000,
194 .cpu_name = "PPC970FX",
195 .cpu_features = CPU_FTRS_PPC970,
196 .cpu_user_features = COMMON_USER_POWER4 |
197 PPC_FEATURE_HAS_ALTIVEC_COMP,
201 .cpu_setup = __setup_cpu_ppc970,
202 .oprofile_cpu_type = "ppc64/970",
203 .oprofile_type = PPC_OPROFILE_POWER4,
204 .platform = "ppc970",
207 .pvr_mask = 0xffff0000,
208 .pvr_value = 0x00440000,
209 .cpu_name = "PPC970MP",
210 .cpu_features = CPU_FTRS_PPC970,
211 .cpu_user_features = COMMON_USER_POWER4 |
212 PPC_FEATURE_HAS_ALTIVEC_COMP,
216 .cpu_setup = __setup_cpu_ppc970,
217 .oprofile_cpu_type = "ppc64/970",
218 .oprofile_type = PPC_OPROFILE_POWER4,
219 .platform = "ppc970",
222 .pvr_mask = 0xffff0000,
223 .pvr_value = 0x003a0000,
224 .cpu_name = "POWER5 (gr)",
225 .cpu_features = CPU_FTRS_POWER5,
226 .cpu_user_features = COMMON_USER_POWER5,
230 .oprofile_cpu_type = "ppc64/power5",
231 .oprofile_type = PPC_OPROFILE_POWER4,
232 /* SIHV / SIPR bits are implemented on POWER4+ (GQ)
233 * and above but only works on POWER5 and above
235 .oprofile_mmcra_sihv = MMCRA_SIHV,
236 .oprofile_mmcra_sipr = MMCRA_SIPR,
237 .platform = "power5",
240 .pvr_mask = 0xffff0000,
241 .pvr_value = 0x003b0000,
242 .cpu_name = "POWER5+ (gs)",
243 .cpu_features = CPU_FTRS_POWER5,
244 .cpu_user_features = COMMON_USER_POWER5_PLUS,
248 .oprofile_cpu_type = "ppc64/power5+",
249 .oprofile_type = PPC_OPROFILE_POWER4,
250 .oprofile_mmcra_sihv = MMCRA_SIHV,
251 .oprofile_mmcra_sipr = MMCRA_SIPR,
252 .platform = "power5+",
255 .pvr_mask = 0xffff0000,
256 .pvr_value = 0x003e0000,
257 .cpu_name = "POWER6",
258 .cpu_features = CPU_FTRS_POWER6,
259 .cpu_user_features = COMMON_USER_POWER6,
263 .oprofile_cpu_type = "ppc64/power6",
264 .oprofile_type = PPC_OPROFILE_POWER4,
265 .oprofile_mmcra_sihv = POWER6_MMCRA_SIHV,
266 .oprofile_mmcra_sipr = POWER6_MMCRA_SIPR,
267 .oprofile_mmcra_clear = POWER6_MMCRA_THRM |
269 .platform = "power6",
271 { /* Cell Broadband Engine */
272 .pvr_mask = 0xffff0000,
273 .pvr_value = 0x00700000,
274 .cpu_name = "Cell Broadband Engine",
275 .cpu_features = CPU_FTRS_CELL,
276 .cpu_user_features = COMMON_USER_PPC64 |
277 PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP |
281 .platform = "ppc-cell-be",
283 { /* default match */
284 .pvr_mask = 0x00000000,
285 .pvr_value = 0x00000000,
286 .cpu_name = "POWER4 (compatible)",
287 .cpu_features = CPU_FTRS_COMPATIBLE,
288 .cpu_user_features = COMMON_USER_PPC64,
292 .platform = "power4",
294 #endif /* CONFIG_PPC64 */
298 .pvr_mask = 0xffff0000,
299 .pvr_value = 0x00010000,
301 .cpu_features = CPU_FTRS_PPC601,
302 .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR |
303 PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB,
306 .platform = "ppc601",
309 .pvr_mask = 0xffff0000,
310 .pvr_value = 0x00030000,
312 .cpu_features = CPU_FTRS_603,
313 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
316 .cpu_setup = __setup_cpu_603,
317 .platform = "ppc603",
320 .pvr_mask = 0xffff0000,
321 .pvr_value = 0x00060000,
323 .cpu_features = CPU_FTRS_603,
324 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
327 .cpu_setup = __setup_cpu_603,
328 .platform = "ppc603",
331 .pvr_mask = 0xffff0000,
332 .pvr_value = 0x00070000,
334 .cpu_features = CPU_FTRS_603,
335 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
338 .cpu_setup = __setup_cpu_603,
339 .platform = "ppc603",
342 .pvr_mask = 0xffff0000,
343 .pvr_value = 0x00040000,
345 .cpu_features = CPU_FTRS_604,
346 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
350 .cpu_setup = __setup_cpu_604,
351 .platform = "ppc604",
354 .pvr_mask = 0xfffff000,
355 .pvr_value = 0x00090000,
357 .cpu_features = CPU_FTRS_604,
358 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
362 .cpu_setup = __setup_cpu_604,
363 .platform = "ppc604",
366 .pvr_mask = 0xffff0000,
367 .pvr_value = 0x00090000,
369 .cpu_features = CPU_FTRS_604,
370 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
374 .cpu_setup = __setup_cpu_604,
375 .platform = "ppc604",
378 .pvr_mask = 0xffff0000,
379 .pvr_value = 0x000a0000,
381 .cpu_features = CPU_FTRS_604,
382 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
386 .cpu_setup = __setup_cpu_604,
387 .platform = "ppc604",
389 { /* 740/750 (0x4202, don't support TAU ?) */
390 .pvr_mask = 0xffffffff,
391 .pvr_value = 0x00084202,
392 .cpu_name = "740/750",
393 .cpu_features = CPU_FTRS_740_NOTAU,
394 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
398 .cpu_setup = __setup_cpu_750,
399 .platform = "ppc750",
401 { /* 750CX (80100 and 8010x?) */
402 .pvr_mask = 0xfffffff0,
403 .pvr_value = 0x00080100,
405 .cpu_features = CPU_FTRS_750,
406 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
410 .cpu_setup = __setup_cpu_750cx,
411 .platform = "ppc750",
413 { /* 750CX (82201 and 82202) */
414 .pvr_mask = 0xfffffff0,
415 .pvr_value = 0x00082200,
417 .cpu_features = CPU_FTRS_750,
418 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
422 .cpu_setup = __setup_cpu_750cx,
423 .platform = "ppc750",
425 { /* 750CXe (82214) */
426 .pvr_mask = 0xfffffff0,
427 .pvr_value = 0x00082210,
428 .cpu_name = "750CXe",
429 .cpu_features = CPU_FTRS_750,
430 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
434 .cpu_setup = __setup_cpu_750cx,
435 .platform = "ppc750",
437 { /* 750CXe "Gekko" (83214) */
438 .pvr_mask = 0xffffffff,
439 .pvr_value = 0x00083214,
440 .cpu_name = "750CXe",
441 .cpu_features = CPU_FTRS_750,
442 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
446 .cpu_setup = __setup_cpu_750cx,
447 .platform = "ppc750",
450 .pvr_mask = 0xfffff000,
451 .pvr_value = 0x00083000,
452 .cpu_name = "745/755",
453 .cpu_features = CPU_FTRS_750,
454 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
458 .cpu_setup = __setup_cpu_750,
459 .platform = "ppc750",
461 { /* 750FX rev 1.x */
462 .pvr_mask = 0xffffff00,
463 .pvr_value = 0x70000100,
465 .cpu_features = CPU_FTRS_750FX1,
466 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
470 .cpu_setup = __setup_cpu_750,
471 .platform = "ppc750",
473 { /* 750FX rev 2.0 must disable HID0[DPM] */
474 .pvr_mask = 0xffffffff,
475 .pvr_value = 0x70000200,
477 .cpu_features = CPU_FTRS_750FX2,
478 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
482 .cpu_setup = __setup_cpu_750,
483 .platform = "ppc750",
485 { /* 750FX (All revs except 2.0) */
486 .pvr_mask = 0xffff0000,
487 .pvr_value = 0x70000000,
489 .cpu_features = CPU_FTRS_750FX,
490 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
494 .cpu_setup = __setup_cpu_750fx,
495 .platform = "ppc750",
498 .pvr_mask = 0xffff0000,
499 .pvr_value = 0x70020000,
501 .cpu_features = CPU_FTRS_750GX,
502 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
506 .cpu_setup = __setup_cpu_750fx,
507 .platform = "ppc750",
509 { /* 740/750 (L2CR bit need fixup for 740) */
510 .pvr_mask = 0xffff0000,
511 .pvr_value = 0x00080000,
512 .cpu_name = "740/750",
513 .cpu_features = CPU_FTRS_740,
514 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
518 .cpu_setup = __setup_cpu_750,
519 .platform = "ppc750",
521 { /* 7400 rev 1.1 ? (no TAU) */
522 .pvr_mask = 0xffffffff,
523 .pvr_value = 0x000c1101,
524 .cpu_name = "7400 (1.1)",
525 .cpu_features = CPU_FTRS_7400_NOTAU,
526 .cpu_user_features = COMMON_USER |
527 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
531 .cpu_setup = __setup_cpu_7400,
532 .platform = "ppc7400",
535 .pvr_mask = 0xffff0000,
536 .pvr_value = 0x000c0000,
538 .cpu_features = CPU_FTRS_7400,
539 .cpu_user_features = COMMON_USER |
540 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
544 .cpu_setup = __setup_cpu_7400,
545 .platform = "ppc7400",
548 .pvr_mask = 0xffff0000,
549 .pvr_value = 0x800c0000,
551 .cpu_features = CPU_FTRS_7400,
552 .cpu_user_features = COMMON_USER |
553 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
557 .cpu_setup = __setup_cpu_7410,
558 .platform = "ppc7400",
560 { /* 7450 2.0 - no doze/nap */
561 .pvr_mask = 0xffffffff,
562 .pvr_value = 0x80000200,
564 .cpu_features = CPU_FTRS_7450_20,
565 .cpu_user_features = COMMON_USER |
566 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
570 .cpu_setup = __setup_cpu_745x,
571 .oprofile_cpu_type = "ppc/7450",
572 .oprofile_type = PPC_OPROFILE_G4,
573 .platform = "ppc7450",
576 .pvr_mask = 0xffffffff,
577 .pvr_value = 0x80000201,
579 .cpu_features = CPU_FTRS_7450_21,
580 .cpu_user_features = COMMON_USER |
581 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
585 .cpu_setup = __setup_cpu_745x,
586 .oprofile_cpu_type = "ppc/7450",
587 .oprofile_type = PPC_OPROFILE_G4,
588 .platform = "ppc7450",
590 { /* 7450 2.3 and newer */
591 .pvr_mask = 0xffff0000,
592 .pvr_value = 0x80000000,
594 .cpu_features = CPU_FTRS_7450_23,
595 .cpu_user_features = COMMON_USER |
596 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
600 .cpu_setup = __setup_cpu_745x,
601 .oprofile_cpu_type = "ppc/7450",
602 .oprofile_type = PPC_OPROFILE_G4,
603 .platform = "ppc7450",
606 .pvr_mask = 0xffffff00,
607 .pvr_value = 0x80010100,
609 .cpu_features = CPU_FTRS_7455_1,
610 .cpu_user_features = COMMON_USER |
611 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
615 .cpu_setup = __setup_cpu_745x,
616 .oprofile_cpu_type = "ppc/7450",
617 .oprofile_type = PPC_OPROFILE_G4,
618 .platform = "ppc7450",
621 .pvr_mask = 0xffffffff,
622 .pvr_value = 0x80010200,
624 .cpu_features = CPU_FTRS_7455_20,
625 .cpu_user_features = COMMON_USER |
626 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
630 .cpu_setup = __setup_cpu_745x,
631 .oprofile_cpu_type = "ppc/7450",
632 .oprofile_type = PPC_OPROFILE_G4,
633 .platform = "ppc7450",
636 .pvr_mask = 0xffff0000,
637 .pvr_value = 0x80010000,
639 .cpu_features = CPU_FTRS_7455,
640 .cpu_user_features = COMMON_USER |
641 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
645 .cpu_setup = __setup_cpu_745x,
646 .oprofile_cpu_type = "ppc/7450",
647 .oprofile_type = PPC_OPROFILE_G4,
648 .platform = "ppc7450",
650 { /* 7447/7457 Rev 1.0 */
651 .pvr_mask = 0xffffffff,
652 .pvr_value = 0x80020100,
653 .cpu_name = "7447/7457",
654 .cpu_features = CPU_FTRS_7447_10,
655 .cpu_user_features = COMMON_USER |
656 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
660 .cpu_setup = __setup_cpu_745x,
661 .oprofile_cpu_type = "ppc/7450",
662 .oprofile_type = PPC_OPROFILE_G4,
663 .platform = "ppc7450",
665 { /* 7447/7457 Rev 1.1 */
666 .pvr_mask = 0xffffffff,
667 .pvr_value = 0x80020101,
668 .cpu_name = "7447/7457",
669 .cpu_features = CPU_FTRS_7447_10,
670 .cpu_user_features = COMMON_USER |
671 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
675 .cpu_setup = __setup_cpu_745x,
676 .oprofile_cpu_type = "ppc/7450",
677 .oprofile_type = PPC_OPROFILE_G4,
678 .platform = "ppc7450",
680 { /* 7447/7457 Rev 1.2 and later */
681 .pvr_mask = 0xffff0000,
682 .pvr_value = 0x80020000,
683 .cpu_name = "7447/7457",
684 .cpu_features = CPU_FTRS_7447,
685 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
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 = 0x80030000,
698 .cpu_features = CPU_FTRS_7447A,
699 .cpu_user_features = COMMON_USER |
700 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
704 .cpu_setup = __setup_cpu_745x,
705 .oprofile_cpu_type = "ppc/7450",
706 .oprofile_type = PPC_OPROFILE_G4,
707 .platform = "ppc7450",
710 .pvr_mask = 0xffff0000,
711 .pvr_value = 0x80040000,
713 .cpu_features = CPU_FTRS_7447A,
714 .cpu_user_features = COMMON_USER |
715 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
719 .cpu_setup = __setup_cpu_745x,
720 .oprofile_cpu_type = "ppc/7450",
721 .oprofile_type = PPC_OPROFILE_G4,
722 .platform = "ppc7450",
724 { /* 82xx (8240, 8245, 8260 are all 603e cores) */
725 .pvr_mask = 0x7fff0000,
726 .pvr_value = 0x00810000,
728 .cpu_features = CPU_FTRS_82XX,
729 .cpu_user_features = COMMON_USER,
732 .cpu_setup = __setup_cpu_603,
733 .platform = "ppc603",
735 { /* All G2_LE (603e core, plus some) have the same pvr */
736 .pvr_mask = 0x7fff0000,
737 .pvr_value = 0x00820000,
739 .cpu_features = CPU_FTRS_G2_LE,
740 .cpu_user_features = COMMON_USER,
743 .cpu_setup = __setup_cpu_603,
744 .platform = "ppc603",
746 { /* e300 (a 603e core, plus some) on 83xx */
747 .pvr_mask = 0x7fff0000,
748 .pvr_value = 0x00830000,
750 .cpu_features = CPU_FTRS_E300,
751 .cpu_user_features = COMMON_USER,
754 .cpu_setup = __setup_cpu_603,
755 .platform = "ppc603",
757 { /* default match, we assume split I/D cache & TB (non-601)... */
758 .pvr_mask = 0x00000000,
759 .pvr_value = 0x00000000,
760 .cpu_name = "(generic PPC)",
761 .cpu_features = CPU_FTRS_CLASSIC32,
762 .cpu_user_features = COMMON_USER,
765 .platform = "ppc603",
767 #endif /* CLASSIC_PPC */
770 .pvr_mask = 0xffff0000,
771 .pvr_value = 0x00500000,
773 /* CPU_FTR_MAYBE_CAN_DOZE is possible,
774 * if the 8xx code is there.... */
775 .cpu_features = CPU_FTRS_8XX,
776 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
779 .platform = "ppc823",
781 #endif /* CONFIG_8xx */
784 .pvr_mask = 0xffffff00,
785 .pvr_value = 0x00200200,
787 .cpu_features = CPU_FTRS_40X,
788 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
791 .platform = "ppc403",
794 .pvr_mask = 0xffffff00,
795 .pvr_value = 0x00201400,
796 .cpu_name = "403GCX",
797 .cpu_features = CPU_FTRS_40X,
798 .cpu_user_features = PPC_FEATURE_32 |
799 PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB,
802 .platform = "ppc403",
805 .pvr_mask = 0xffff0000,
806 .pvr_value = 0x00200000,
807 .cpu_name = "403G ??",
808 .cpu_features = CPU_FTRS_40X,
809 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
812 .platform = "ppc403",
815 .pvr_mask = 0xffff0000,
816 .pvr_value = 0x40110000,
818 .cpu_features = CPU_FTRS_40X,
819 .cpu_user_features = PPC_FEATURE_32 |
820 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
823 .platform = "ppc405",
826 .pvr_mask = 0xffff0000,
827 .pvr_value = 0x40130000,
828 .cpu_name = "STB03xxx",
829 .cpu_features = CPU_FTRS_40X,
830 .cpu_user_features = PPC_FEATURE_32 |
831 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
834 .platform = "ppc405",
837 .pvr_mask = 0xffff0000,
838 .pvr_value = 0x41810000,
839 .cpu_name = "STB04xxx",
840 .cpu_features = CPU_FTRS_40X,
841 .cpu_user_features = PPC_FEATURE_32 |
842 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
845 .platform = "ppc405",
848 .pvr_mask = 0xffff0000,
849 .pvr_value = 0x41610000,
850 .cpu_name = "NP405L",
851 .cpu_features = CPU_FTRS_40X,
852 .cpu_user_features = PPC_FEATURE_32 |
853 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
856 .platform = "ppc405",
859 .pvr_mask = 0xffff0000,
860 .pvr_value = 0x40B10000,
861 .cpu_name = "NP4GS3",
862 .cpu_features = CPU_FTRS_40X,
863 .cpu_user_features = PPC_FEATURE_32 |
864 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
867 .platform = "ppc405",
870 .pvr_mask = 0xffff0000,
871 .pvr_value = 0x41410000,
872 .cpu_name = "NP405H",
873 .cpu_features = CPU_FTRS_40X,
874 .cpu_user_features = PPC_FEATURE_32 |
875 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
878 .platform = "ppc405",
881 .pvr_mask = 0xffff0000,
882 .pvr_value = 0x50910000,
883 .cpu_name = "405GPr",
884 .cpu_features = CPU_FTRS_40X,
885 .cpu_user_features = PPC_FEATURE_32 |
886 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
889 .platform = "ppc405",
892 .pvr_mask = 0xffff0000,
893 .pvr_value = 0x51510000,
894 .cpu_name = "STBx25xx",
895 .cpu_features = CPU_FTRS_40X,
896 .cpu_user_features = PPC_FEATURE_32 |
897 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
900 .platform = "ppc405",
903 .pvr_mask = 0xffff0000,
904 .pvr_value = 0x41F10000,
906 .cpu_features = CPU_FTRS_40X,
907 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
910 .platform = "ppc405",
912 { /* Xilinx Virtex-II Pro */
913 .pvr_mask = 0xfffff000,
914 .pvr_value = 0x20010000,
915 .cpu_name = "Virtex-II Pro",
916 .cpu_features = CPU_FTRS_40X,
917 .cpu_user_features = PPC_FEATURE_32 |
918 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
921 .platform = "ppc405",
923 { /* Xilinx Virtex-4 FX */
924 .pvr_mask = 0xfffff000,
925 .pvr_value = 0x20011000,
926 .cpu_name = "Virtex-4 FX",
927 .cpu_features = CPU_FTRS_40X,
928 .cpu_user_features = PPC_FEATURE_32 |
929 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
934 .pvr_mask = 0xffff0000,
935 .pvr_value = 0x51210000,
937 .cpu_features = CPU_FTRS_40X,
938 .cpu_user_features = PPC_FEATURE_32 |
939 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
942 .platform = "ppc405",
945 #endif /* CONFIG_40x */
948 .pvr_mask = 0xf0000fff,
949 .pvr_value = 0x40000850,
950 .cpu_name = "440EP Rev. A",
951 .cpu_features = CPU_FTRS_44X,
952 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
955 .platform = "ppc440",
958 .pvr_mask = 0xf0000fff,
959 .pvr_value = 0x400008d3,
960 .cpu_name = "440EP Rev. B",
961 .cpu_features = CPU_FTRS_44X,
962 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
965 .platform = "ppc440",
968 .pvr_mask = 0xf0000fff,
969 .pvr_value = 0x40000440,
970 .cpu_name = "440GP Rev. B",
971 .cpu_features = CPU_FTRS_44X,
972 .cpu_user_features = COMMON_USER_BOOKE,
975 .platform = "ppc440gp",
978 .pvr_mask = 0xf0000fff,
979 .pvr_value = 0x40000481,
980 .cpu_name = "440GP Rev. C",
981 .cpu_features = CPU_FTRS_44X,
982 .cpu_user_features = COMMON_USER_BOOKE,
985 .platform = "ppc440gp",
988 .pvr_mask = 0xf0000fff,
989 .pvr_value = 0x50000850,
990 .cpu_name = "440GX Rev. A",
991 .cpu_features = CPU_FTRS_44X,
992 .cpu_user_features = COMMON_USER_BOOKE,
995 .platform = "ppc440",
998 .pvr_mask = 0xf0000fff,
999 .pvr_value = 0x50000851,
1000 .cpu_name = "440GX Rev. B",
1001 .cpu_features = CPU_FTRS_44X,
1002 .cpu_user_features = COMMON_USER_BOOKE,
1005 .platform = "ppc440",
1007 { /* 440GX Rev. C */
1008 .pvr_mask = 0xf0000fff,
1009 .pvr_value = 0x50000892,
1010 .cpu_name = "440GX Rev. C",
1011 .cpu_features = CPU_FTRS_44X,
1012 .cpu_user_features = COMMON_USER_BOOKE,
1015 .platform = "ppc440",
1017 { /* 440GX Rev. F */
1018 .pvr_mask = 0xf0000fff,
1019 .pvr_value = 0x50000894,
1020 .cpu_name = "440GX Rev. F",
1021 .cpu_features = CPU_FTRS_44X,
1022 .cpu_user_features = COMMON_USER_BOOKE,
1025 .platform = "ppc440",
1027 { /* 440SP Rev. A */
1028 .pvr_mask = 0xff000fff,
1029 .pvr_value = 0x53000891,
1030 .cpu_name = "440SP Rev. A",
1031 .cpu_features = CPU_FTRS_44X,
1032 .cpu_user_features = COMMON_USER_BOOKE,
1035 .platform = "ppc440",
1037 { /* 440SPe Rev. A */
1038 .pvr_mask = 0xff000fff,
1039 .pvr_value = 0x53000890,
1040 .cpu_name = "440SPe Rev. A",
1041 .cpu_features = CPU_FTR_SPLIT_ID_CACHE |
1043 .cpu_user_features = COMMON_USER_BOOKE,
1046 .platform = "ppc440",
1048 #endif /* CONFIG_44x */
1049 #ifdef CONFIG_FSL_BOOKE
1051 .pvr_mask = 0xfff00000,
1052 .pvr_value = 0x81000000,
1053 .cpu_name = "e200z5",
1054 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1055 .cpu_features = CPU_FTRS_E200,
1056 .cpu_user_features = COMMON_USER_BOOKE |
1057 PPC_FEATURE_HAS_EFP_SINGLE |
1058 PPC_FEATURE_UNIFIED_CACHE,
1060 .platform = "ppc5554",
1063 .pvr_mask = 0xfff00000,
1064 .pvr_value = 0x81100000,
1065 .cpu_name = "e200z6",
1066 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1067 .cpu_features = CPU_FTRS_E200,
1068 .cpu_user_features = COMMON_USER_BOOKE |
1069 PPC_FEATURE_SPE_COMP |
1070 PPC_FEATURE_HAS_EFP_SINGLE |
1071 PPC_FEATURE_UNIFIED_CACHE,
1073 .platform = "ppc5554",
1076 .pvr_mask = 0xffff0000,
1077 .pvr_value = 0x80200000,
1079 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1080 .cpu_features = CPU_FTRS_E500,
1081 .cpu_user_features = COMMON_USER_BOOKE |
1082 PPC_FEATURE_SPE_COMP |
1083 PPC_FEATURE_HAS_EFP_SINGLE,
1087 .oprofile_cpu_type = "ppc/e500",
1088 .oprofile_type = PPC_OPROFILE_BOOKE,
1089 .platform = "ppc8540",
1092 .pvr_mask = 0xffff0000,
1093 .pvr_value = 0x80210000,
1094 .cpu_name = "e500v2",
1095 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1096 .cpu_features = CPU_FTRS_E500_2,
1097 .cpu_user_features = COMMON_USER_BOOKE |
1098 PPC_FEATURE_SPE_COMP |
1099 PPC_FEATURE_HAS_EFP_SINGLE |
1100 PPC_FEATURE_HAS_EFP_DOUBLE,
1104 .oprofile_cpu_type = "ppc/e500",
1105 .oprofile_type = PPC_OPROFILE_BOOKE,
1106 .platform = "ppc8548",
1110 { /* default match */
1111 .pvr_mask = 0x00000000,
1112 .pvr_value = 0x00000000,
1113 .cpu_name = "(generic PPC)",
1114 .cpu_features = CPU_FTRS_GENERIC_32,
1115 .cpu_user_features = PPC_FEATURE_32,
1118 .platform = "powerpc",
1120 #endif /* !CLASSIC_PPC */
1121 #endif /* CONFIG_PPC32 */