13 #include <linux/string.h>
14 #include <linux/sched.h>
17 #include <linux/export.h>
20 #include <asm/cputable.h>
23 #include <asm/setup.h>
39 extern void __setup_cpu_e200(
unsigned long offset,
struct cpu_spec* spec);
40 extern void __setup_cpu_e500v1(
unsigned long offset,
struct cpu_spec* spec);
41 extern void __setup_cpu_e500v2(
unsigned long offset,
struct cpu_spec* spec);
42 extern void __setup_cpu_e500mc(
unsigned long offset,
struct cpu_spec* spec);
43 extern void __setup_cpu_440ep(
unsigned long offset,
struct cpu_spec* spec);
44 extern void __setup_cpu_440epx(
unsigned long offset,
struct cpu_spec* spec);
45 extern void __setup_cpu_440gx(
unsigned long offset,
struct cpu_spec* spec);
46 extern void __setup_cpu_440grx(
unsigned long offset,
struct cpu_spec* spec);
47 extern void __setup_cpu_440spe(
unsigned long offset,
struct cpu_spec* spec);
48 extern void __setup_cpu_440x5(
unsigned long offset,
struct cpu_spec* spec);
49 extern void __setup_cpu_460ex(
unsigned long offset,
struct cpu_spec* spec);
50 extern void __setup_cpu_460gt(
unsigned long offset,
struct cpu_spec* spec);
51 extern void __setup_cpu_460sx(
unsigned long offset,
struct cpu_spec *spec);
52 extern void __setup_cpu_apm821xx(
unsigned long offset,
struct cpu_spec *spec);
53 extern void __setup_cpu_603(
unsigned long offset,
struct cpu_spec* spec);
54 extern void __setup_cpu_604(
unsigned long offset,
struct cpu_spec* spec);
55 extern void __setup_cpu_750(
unsigned long offset,
struct cpu_spec* spec);
56 extern void __setup_cpu_750cx(
unsigned long offset,
struct cpu_spec* spec);
57 extern void __setup_cpu_750fx(
unsigned long offset,
struct cpu_spec* spec);
58 extern void __setup_cpu_7400(
unsigned long offset,
struct cpu_spec* spec);
59 extern void __setup_cpu_7410(
unsigned long offset,
struct cpu_spec* spec);
60 extern void __setup_cpu_745x(
unsigned long offset,
struct cpu_spec* spec);
63 extern void __setup_cpu_ppc970(
unsigned long offset,
struct cpu_spec* spec);
64 extern void __setup_cpu_ppc970MP(
unsigned long offset,
struct cpu_spec* spec);
65 extern void __setup_cpu_pa6t(
unsigned long offset,
struct cpu_spec* spec);
66 extern void __setup_cpu_a2(
unsigned long offset,
struct cpu_spec* spec);
67 extern void __restore_cpu_pa6t(
void);
68 extern void __restore_cpu_ppc970(
void);
69 extern void __setup_cpu_power7(
unsigned long offset,
struct cpu_spec* spec);
70 extern void __restore_cpu_power7(
void);
71 extern void __restore_cpu_a2(
void);
73 #if defined(CONFIG_E500)
74 extern void __setup_cpu_e5500(
unsigned long offset,
struct cpu_spec* spec);
75 extern void __restore_cpu_e5500(
void);
81 #define COMMON_USER (PPC_FEATURE_32 | PPC_FEATURE_HAS_FPU | \
83 #define COMMON_USER_PPC64 (COMMON_USER | PPC_FEATURE_64)
84 #define COMMON_USER_POWER4 (COMMON_USER_PPC64 | PPC_FEATURE_POWER4)
85 #define COMMON_USER_POWER5 (COMMON_USER_PPC64 | PPC_FEATURE_POWER5 |\
86 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
87 #define COMMON_USER_POWER5_PLUS (COMMON_USER_PPC64 | PPC_FEATURE_POWER5_PLUS|\
88 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
89 #define COMMON_USER_POWER6 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_05 |\
90 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \
91 PPC_FEATURE_TRUE_LE | \
92 PPC_FEATURE_PSERIES_PERFMON_COMPAT)
93 #define COMMON_USER_POWER7 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_06 |\
94 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \
95 PPC_FEATURE_TRUE_LE | \
96 PPC_FEATURE_PSERIES_PERFMON_COMPAT)
97 #define COMMON_USER_PA6T (COMMON_USER_PPC64 | PPC_FEATURE_PA6T |\
98 PPC_FEATURE_TRUE_LE | \
99 PPC_FEATURE_HAS_ALTIVEC_COMP)
100 #ifdef CONFIG_PPC_BOOK3E_64
101 #define COMMON_USER_BOOKE (COMMON_USER_PPC64 | PPC_FEATURE_BOOKE)
103 #define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \
108 #ifdef CONFIG_PPC_BOOK3S_64
110 .pvr_mask = 0xffff0000,
111 .pvr_value = 0x00400000,
112 .cpu_name =
"POWER3 (630)",
115 .mmu_features = MMU_FTR_HPTE_TABLE,
120 .oprofile_cpu_type =
"ppc64/power3",
122 .platform =
"power3",
125 .pvr_mask = 0xffff0000,
126 .pvr_value = 0x00410000,
127 .cpu_name =
"POWER3 (630+)",
130 .mmu_features = MMU_FTR_HPTE_TABLE,
135 .oprofile_cpu_type =
"ppc64/power3",
137 .platform =
"power3",
140 .pvr_mask = 0xffff0000,
141 .pvr_value = 0x00330000,
142 .cpu_name =
"RS64-II (northstar)",
145 .mmu_features = MMU_FTR_HPTE_TABLE,
150 .oprofile_cpu_type =
"ppc64/rs64",
155 .pvr_mask = 0xffff0000,
156 .pvr_value = 0x00340000,
157 .cpu_name =
"RS64-III (pulsar)",
160 .mmu_features = MMU_FTR_HPTE_TABLE,
165 .oprofile_cpu_type =
"ppc64/rs64",
170 .pvr_mask = 0xffff0000,
171 .pvr_value = 0x00360000,
172 .cpu_name =
"RS64-III (icestar)",
175 .mmu_features = MMU_FTR_HPTE_TABLE,
180 .oprofile_cpu_type =
"ppc64/rs64",
185 .pvr_mask = 0xffff0000,
186 .pvr_value = 0x00370000,
187 .cpu_name =
"RS64-IV (sstar)",
190 .mmu_features = MMU_FTR_HPTE_TABLE,
195 .oprofile_cpu_type =
"ppc64/rs64",
200 .pvr_mask = 0xffff0000,
201 .pvr_value = 0x00350000,
202 .cpu_name =
"POWER4 (gp)",
205 .mmu_features = MMU_FTRS_POWER4,
210 .oprofile_cpu_type =
"ppc64/power4",
212 .platform =
"power4",
215 .pvr_mask = 0xffff0000,
216 .pvr_value = 0x00380000,
217 .cpu_name =
"POWER4+ (gq)",
220 .mmu_features = MMU_FTRS_POWER4,
225 .oprofile_cpu_type =
"ppc64/power4",
227 .platform =
"power4",
230 .pvr_mask = 0xffff0000,
231 .pvr_value = 0x00390000,
232 .cpu_name =
"PPC970",
236 .mmu_features = MMU_FTRS_PPC970,
241 .cpu_setup = __setup_cpu_ppc970,
242 .cpu_restore = __restore_cpu_ppc970,
243 .oprofile_cpu_type =
"ppc64/970",
245 .platform =
"ppc970",
248 .pvr_mask = 0xffff0000,
249 .pvr_value = 0x003c0000,
250 .cpu_name =
"PPC970FX",
254 .mmu_features = MMU_FTRS_PPC970,
259 .cpu_setup = __setup_cpu_ppc970,
260 .cpu_restore = __restore_cpu_ppc970,
261 .oprofile_cpu_type =
"ppc64/970",
263 .platform =
"ppc970",
266 .pvr_mask = 0xffffffff,
267 .pvr_value = 0x00440100,
268 .cpu_name =
"PPC970MP",
272 .mmu_features = MMU_FTR_HPTE_TABLE,
277 .cpu_setup = __setup_cpu_ppc970,
278 .cpu_restore = __restore_cpu_ppc970,
279 .oprofile_cpu_type =
"ppc64/970MP",
281 .platform =
"ppc970",
284 .pvr_mask = 0xffff0000,
285 .pvr_value = 0x00440000,
286 .cpu_name =
"PPC970MP",
290 .mmu_features = MMU_FTRS_PPC970,
295 .cpu_setup = __setup_cpu_ppc970MP,
296 .cpu_restore = __restore_cpu_ppc970,
297 .oprofile_cpu_type =
"ppc64/970MP",
299 .platform =
"ppc970",
302 .pvr_mask = 0xffff0000,
303 .pvr_value = 0x00450000,
304 .cpu_name =
"PPC970GX",
308 .mmu_features = MMU_FTRS_PPC970,
313 .cpu_setup = __setup_cpu_ppc970,
314 .oprofile_cpu_type =
"ppc64/970",
316 .platform =
"ppc970",
319 .pvr_mask = 0xffff0000,
320 .pvr_value = 0x003a0000,
321 .cpu_name =
"POWER5 (gr)",
324 .mmu_features = MMU_FTRS_POWER5,
329 .oprofile_cpu_type =
"ppc64/power5",
334 .oprofile_mmcra_sihv = MMCRA_SIHV,
335 .oprofile_mmcra_sipr = MMCRA_SIPR,
336 .platform =
"power5",
339 .pvr_mask = 0xffffff00,
340 .pvr_value = 0x003b0300,
341 .cpu_name =
"POWER5+ (gs)",
344 .mmu_features = MMU_FTRS_POWER5,
348 .oprofile_cpu_type =
"ppc64/power5++",
350 .oprofile_mmcra_sihv = MMCRA_SIHV,
351 .oprofile_mmcra_sipr = MMCRA_SIPR,
352 .platform =
"power5+",
355 .pvr_mask = 0xffff0000,
356 .pvr_value = 0x003b0000,
357 .cpu_name =
"POWER5+ (gs)",
360 .mmu_features = MMU_FTRS_POWER5,
365 .oprofile_cpu_type =
"ppc64/power5+",
367 .oprofile_mmcra_sihv = MMCRA_SIHV,
368 .oprofile_mmcra_sipr = MMCRA_SIPR,
369 .platform =
"power5+",
372 .pvr_mask = 0xffffffff,
373 .pvr_value = 0x0f000001,
374 .cpu_name =
"POWER5+",
377 .mmu_features = MMU_FTRS_POWER5,
380 .oprofile_cpu_type =
"ppc64/ibm-compat-v1",
382 .platform =
"power5+",
385 .pvr_mask = 0xffff0000,
386 .pvr_value = 0x003e0000,
387 .cpu_name =
"POWER6 (raw)",
391 .mmu_features = MMU_FTRS_POWER6,
396 .oprofile_cpu_type =
"ppc64/power6",
398 .oprofile_mmcra_sihv = POWER6_MMCRA_SIHV,
399 .oprofile_mmcra_sipr = POWER6_MMCRA_SIPR,
400 .oprofile_mmcra_clear = POWER6_MMCRA_THRM |
402 .platform =
"power6x",
405 .pvr_mask = 0xffffffff,
406 .pvr_value = 0x0f000002,
407 .cpu_name =
"POWER6 (architected)",
410 .mmu_features = MMU_FTRS_POWER6,
413 .oprofile_cpu_type =
"ppc64/ibm-compat-v1",
415 .platform =
"power6",
418 .pvr_mask = 0xffffffff,
419 .pvr_value = 0x0f000003,
420 .cpu_name =
"POWER7 (architected)",
423 .mmu_features = MMU_FTRS_POWER7,
427 .oprofile_cpu_type =
"ppc64/ibm-compat-v1",
428 .cpu_setup = __setup_cpu_power7,
429 .cpu_restore = __restore_cpu_power7,
430 .platform =
"power7",
433 .pvr_mask = 0xffff0000,
434 .pvr_value = 0x003f0000,
435 .cpu_name =
"POWER7 (raw)",
438 .mmu_features = MMU_FTRS_POWER7,
443 .oprofile_cpu_type =
"ppc64/power7",
445 .cpu_setup = __setup_cpu_power7,
446 .cpu_restore = __restore_cpu_power7,
447 .platform =
"power7",
450 .pvr_mask = 0xffff0000,
451 .pvr_value = 0x004A0000,
452 .cpu_name =
"POWER7+ (raw)",
455 .mmu_features = MMU_FTRS_POWER7,
460 .oprofile_cpu_type =
"ppc64/power7",
462 .cpu_setup = __setup_cpu_power7,
463 .cpu_restore = __restore_cpu_power7,
464 .platform =
"power7+",
467 .pvr_mask = 0xffff0000,
468 .pvr_value = 0x00700000,
469 .cpu_name =
"Cell Broadband Engine",
474 .mmu_features = MMU_FTRS_CELL,
479 .oprofile_cpu_type =
"ppc64/cell-be",
481 .platform =
"ppc-cell-be",
484 .pvr_mask = 0x7fff0000,
485 .pvr_value = 0x00900000,
489 .mmu_features = MMU_FTRS_PA6T,
494 .cpu_setup = __setup_cpu_pa6t,
495 .cpu_restore = __restore_cpu_pa6t,
496 .oprofile_cpu_type =
"ppc64/pa6t",
501 .pvr_mask = 0x00000000,
502 .pvr_value = 0x00000000,
503 .cpu_name =
"POWER4 (compatible)",
506 .mmu_features = MMU_FTRS_DEFAULT_HPTE_ARCH_V2,
511 .platform =
"power4",
518 .pvr_mask = 0xffff0000,
519 .pvr_value = 0x00010000,
524 .mmu_features = MMU_FTR_HPTE_TABLE,
528 .platform =
"ppc601",
531 .pvr_mask = 0xffff0000,
532 .pvr_value = 0x00030000,
539 .cpu_setup = __setup_cpu_603,
541 .platform =
"ppc603",
544 .pvr_mask = 0xffff0000,
545 .pvr_value = 0x00060000,
552 .cpu_setup = __setup_cpu_603,
554 .platform =
"ppc603",
557 .pvr_mask = 0xffff0000,
558 .pvr_value = 0x00070000,
565 .cpu_setup = __setup_cpu_603,
567 .platform =
"ppc603",
570 .pvr_mask = 0xffff0000,
571 .pvr_value = 0x00040000,
575 .mmu_features = MMU_FTR_HPTE_TABLE,
579 .cpu_setup = __setup_cpu_604,
581 .platform =
"ppc604",
584 .pvr_mask = 0xfffff000,
585 .pvr_value = 0x00090000,
589 .mmu_features = MMU_FTR_HPTE_TABLE,
593 .cpu_setup = __setup_cpu_604,
595 .platform =
"ppc604",
598 .pvr_mask = 0xffff0000,
599 .pvr_value = 0x00090000,
603 .mmu_features = MMU_FTR_HPTE_TABLE,
607 .cpu_setup = __setup_cpu_604,
609 .platform =
"ppc604",
612 .pvr_mask = 0xffff0000,
613 .pvr_value = 0x000a0000,
617 .mmu_features = MMU_FTR_HPTE_TABLE,
621 .cpu_setup = __setup_cpu_604,
623 .platform =
"ppc604",
626 .pvr_mask = 0xffffffff,
627 .pvr_value = 0x00084202,
628 .cpu_name =
"740/750",
631 .mmu_features = MMU_FTR_HPTE_TABLE,
635 .cpu_setup = __setup_cpu_750,
637 .platform =
"ppc750",
640 .pvr_mask = 0xfffffff0,
641 .pvr_value = 0x00080100,
645 .mmu_features = MMU_FTR_HPTE_TABLE,
649 .cpu_setup = __setup_cpu_750cx,
651 .platform =
"ppc750",
654 .pvr_mask = 0xfffffff0,
655 .pvr_value = 0x00082200,
659 .mmu_features = MMU_FTR_HPTE_TABLE,
664 .cpu_setup = __setup_cpu_750cx,
666 .platform =
"ppc750",
669 .pvr_mask = 0xfffffff0,
670 .pvr_value = 0x00082210,
671 .cpu_name =
"750CXe",
674 .mmu_features = MMU_FTR_HPTE_TABLE,
679 .cpu_setup = __setup_cpu_750cx,
681 .platform =
"ppc750",
684 .pvr_mask = 0xffffffff,
685 .pvr_value = 0x00083214,
686 .cpu_name =
"750CXe",
689 .mmu_features = MMU_FTR_HPTE_TABLE,
694 .cpu_setup = __setup_cpu_750cx,
696 .platform =
"ppc750",
699 .pvr_mask = 0xfffff0e0,
700 .pvr_value = 0x00087000,
704 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
709 .cpu_setup = __setup_cpu_750,
711 .platform =
"ppc750",
712 .oprofile_cpu_type =
"ppc/750",
716 .pvr_mask = 0xfffff000,
717 .pvr_value = 0x00083000,
718 .cpu_name =
"745/755",
721 .mmu_features = MMU_FTR_HPTE_TABLE,
726 .cpu_setup = __setup_cpu_750,
728 .platform =
"ppc750",
731 .pvr_mask = 0xffffff00,
732 .pvr_value = 0x70000100,
736 .mmu_features = MMU_FTR_HPTE_TABLE,
741 .cpu_setup = __setup_cpu_750,
743 .platform =
"ppc750",
744 .oprofile_cpu_type =
"ppc/750",
748 .pvr_mask = 0xffffffff,
749 .pvr_value = 0x70000200,
753 .mmu_features = MMU_FTR_HPTE_TABLE,
758 .cpu_setup = __setup_cpu_750,
760 .platform =
"ppc750",
761 .oprofile_cpu_type =
"ppc/750",
765 .pvr_mask = 0xffff0000,
766 .pvr_value = 0x70000000,
770 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
775 .cpu_setup = __setup_cpu_750fx,
777 .platform =
"ppc750",
778 .oprofile_cpu_type =
"ppc/750",
782 .pvr_mask = 0xffff0000,
783 .pvr_value = 0x70020000,
787 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
792 .cpu_setup = __setup_cpu_750fx,
794 .platform =
"ppc750",
795 .oprofile_cpu_type =
"ppc/750",
799 .pvr_mask = 0xffff0000,
800 .pvr_value = 0x00080000,
801 .cpu_name =
"740/750",
804 .mmu_features = MMU_FTR_HPTE_TABLE,
809 .cpu_setup = __setup_cpu_750,
811 .platform =
"ppc750",
814 .pvr_mask = 0xffffffff,
815 .pvr_value = 0x000c1101,
816 .cpu_name =
"7400 (1.1)",
820 .mmu_features = MMU_FTR_HPTE_TABLE,
825 .cpu_setup = __setup_cpu_7400,
827 .platform =
"ppc7400",
830 .pvr_mask = 0xffff0000,
831 .pvr_value = 0x000c0000,
836 .mmu_features = MMU_FTR_HPTE_TABLE,
841 .cpu_setup = __setup_cpu_7400,
843 .platform =
"ppc7400",
846 .pvr_mask = 0xffff0000,
847 .pvr_value = 0x800c0000,
852 .mmu_features = MMU_FTR_HPTE_TABLE,
857 .cpu_setup = __setup_cpu_7410,
859 .platform =
"ppc7400",
862 .pvr_mask = 0xffffffff,
863 .pvr_value = 0x80000200,
868 .mmu_features = MMU_FTR_HPTE_TABLE,
873 .cpu_setup = __setup_cpu_745x,
874 .oprofile_cpu_type =
"ppc/7450",
877 .platform =
"ppc7450",
880 .pvr_mask = 0xffffffff,
881 .pvr_value = 0x80000201,
886 .mmu_features = MMU_FTR_HPTE_TABLE,
891 .cpu_setup = __setup_cpu_745x,
892 .oprofile_cpu_type =
"ppc/7450",
895 .platform =
"ppc7450",
898 .pvr_mask = 0xffff0000,
899 .pvr_value = 0x80000000,
904 .mmu_features = MMU_FTR_HPTE_TABLE,
909 .cpu_setup = __setup_cpu_745x,
910 .oprofile_cpu_type =
"ppc/7450",
913 .platform =
"ppc7450",
916 .pvr_mask = 0xffffff00,
917 .pvr_value = 0x80010100,
922 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
927 .cpu_setup = __setup_cpu_745x,
928 .oprofile_cpu_type =
"ppc/7450",
931 .platform =
"ppc7450",
934 .pvr_mask = 0xffffffff,
935 .pvr_value = 0x80010200,
940 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
945 .cpu_setup = __setup_cpu_745x,
946 .oprofile_cpu_type =
"ppc/7450",
949 .platform =
"ppc7450",
952 .pvr_mask = 0xffff0000,
953 .pvr_value = 0x80010000,
958 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
963 .cpu_setup = __setup_cpu_745x,
964 .oprofile_cpu_type =
"ppc/7450",
967 .platform =
"ppc7450",
970 .pvr_mask = 0xffffffff,
971 .pvr_value = 0x80020100,
972 .cpu_name =
"7447/7457",
976 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
981 .cpu_setup = __setup_cpu_745x,
982 .oprofile_cpu_type =
"ppc/7450",
985 .platform =
"ppc7450",
988 .pvr_mask = 0xffffffff,
989 .pvr_value = 0x80020101,
990 .cpu_name =
"7447/7457",
994 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
999 .cpu_setup = __setup_cpu_745x,
1000 .oprofile_cpu_type =
"ppc/7450",
1003 .platform =
"ppc7450",
1006 .pvr_mask = 0xffff0000,
1007 .pvr_value = 0x80020000,
1008 .cpu_name =
"7447/7457",
1011 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
1016 .cpu_setup = __setup_cpu_745x,
1017 .oprofile_cpu_type =
"ppc/7450",
1020 .platform =
"ppc7450",
1023 .pvr_mask = 0xffff0000,
1024 .pvr_value = 0x80030000,
1025 .cpu_name =
"7447A",
1029 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
1034 .cpu_setup = __setup_cpu_745x,
1035 .oprofile_cpu_type =
"ppc/7450",
1038 .platform =
"ppc7450",
1041 .pvr_mask = 0xffff0000,
1042 .pvr_value = 0x80040000,
1047 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
1052 .cpu_setup = __setup_cpu_745x,
1053 .oprofile_cpu_type =
"ppc/7450",
1056 .platform =
"ppc7450",
1059 .pvr_mask = 0x7fff0000,
1060 .pvr_value = 0x00810000,
1067 .cpu_setup = __setup_cpu_603,
1069 .platform =
"ppc603",
1072 .pvr_mask = 0x7fff0000,
1073 .pvr_value = 0x00820000,
1074 .cpu_name =
"G2_LE",
1077 .mmu_features = MMU_FTR_USE_HIGH_BATS,
1080 .cpu_setup = __setup_cpu_603,
1082 .platform =
"ppc603",
1085 .pvr_mask = 0x7fff0000,
1086 .pvr_value = 0x00830000,
1087 .cpu_name =
"e300c1",
1090 .mmu_features = MMU_FTR_USE_HIGH_BATS,
1093 .cpu_setup = __setup_cpu_603,
1095 .platform =
"ppc603",
1098 .pvr_mask = 0x7fff0000,
1099 .pvr_value = 0x00840000,
1100 .cpu_name =
"e300c2",
1103 .mmu_features = MMU_FTR_USE_HIGH_BATS |
1104 MMU_FTR_NEED_DTLB_SW_LRU,
1107 .cpu_setup = __setup_cpu_603,
1109 .platform =
"ppc603",
1112 .pvr_mask = 0x7fff0000,
1113 .pvr_value = 0x00850000,
1114 .cpu_name =
"e300c3",
1117 .mmu_features = MMU_FTR_USE_HIGH_BATS |
1118 MMU_FTR_NEED_DTLB_SW_LRU,
1121 .cpu_setup = __setup_cpu_603,
1123 .oprofile_cpu_type =
"ppc/e300",
1125 .platform =
"ppc603",
1128 .pvr_mask = 0x7fff0000,
1129 .pvr_value = 0x00860000,
1130 .cpu_name =
"e300c4",
1133 .mmu_features = MMU_FTR_USE_HIGH_BATS |
1134 MMU_FTR_NEED_DTLB_SW_LRU,
1137 .cpu_setup = __setup_cpu_603,
1140 .oprofile_cpu_type =
"ppc/e300",
1142 .platform =
"ppc603",
1145 .pvr_mask = 0x00000000,
1146 .pvr_value = 0x00000000,
1147 .cpu_name =
"(generic PPC)",
1150 .mmu_features = MMU_FTR_HPTE_TABLE,
1154 .platform =
"ppc603",
1159 .pvr_mask = 0xffff0000,
1160 .pvr_value = 0x00500000,
1166 .mmu_features = MMU_FTR_TYPE_8xx,
1169 .platform =
"ppc823",
1174 .pvr_mask = 0xffffff00,
1175 .pvr_value = 0x00200200,
1176 .cpu_name =
"403GC",
1179 .mmu_features = MMU_FTR_TYPE_40x,
1183 .platform =
"ppc403",
1186 .pvr_mask = 0xffffff00,
1187 .pvr_value = 0x00201400,
1188 .cpu_name =
"403GCX",
1192 .mmu_features = MMU_FTR_TYPE_40x,
1196 .platform =
"ppc403",
1199 .pvr_mask = 0xffff0000,
1200 .pvr_value = 0x00200000,
1201 .cpu_name =
"403G ??",
1204 .mmu_features = MMU_FTR_TYPE_40x,
1208 .platform =
"ppc403",
1211 .pvr_mask = 0xffff0000,
1212 .pvr_value = 0x40110000,
1213 .cpu_name =
"405GP",
1217 .mmu_features = MMU_FTR_TYPE_40x,
1221 .platform =
"ppc405",
1224 .pvr_mask = 0xffff0000,
1225 .pvr_value = 0x40130000,
1226 .cpu_name =
"STB03xxx",
1230 .mmu_features = MMU_FTR_TYPE_40x,
1234 .platform =
"ppc405",
1237 .pvr_mask = 0xffff0000,
1238 .pvr_value = 0x41810000,
1239 .cpu_name =
"STB04xxx",
1243 .mmu_features = MMU_FTR_TYPE_40x,
1247 .platform =
"ppc405",
1250 .pvr_mask = 0xffff0000,
1251 .pvr_value = 0x41610000,
1252 .cpu_name =
"NP405L",
1256 .mmu_features = MMU_FTR_TYPE_40x,
1260 .platform =
"ppc405",
1263 .pvr_mask = 0xffff0000,
1264 .pvr_value = 0x40B10000,
1265 .cpu_name =
"NP4GS3",
1269 .mmu_features = MMU_FTR_TYPE_40x,
1273 .platform =
"ppc405",
1276 .pvr_mask = 0xffff0000,
1277 .pvr_value = 0x41410000,
1278 .cpu_name =
"NP405H",
1282 .mmu_features = MMU_FTR_TYPE_40x,
1286 .platform =
"ppc405",
1289 .pvr_mask = 0xffff0000,
1290 .pvr_value = 0x50910000,
1291 .cpu_name =
"405GPr",
1295 .mmu_features = MMU_FTR_TYPE_40x,
1299 .platform =
"ppc405",
1302 .pvr_mask = 0xffff0000,
1303 .pvr_value = 0x51510000,
1304 .cpu_name =
"STBx25xx",
1308 .mmu_features = MMU_FTR_TYPE_40x,
1312 .platform =
"ppc405",
1315 .pvr_mask = 0xffff0000,
1316 .pvr_value = 0x41F10000,
1317 .cpu_name =
"405LP",
1320 .mmu_features = MMU_FTR_TYPE_40x,
1324 .platform =
"ppc405",
1327 .pvr_mask = 0xfffff000,
1328 .pvr_value = 0x20010000,
1329 .cpu_name =
"Virtex-II Pro",
1333 .mmu_features = MMU_FTR_TYPE_40x,
1337 .platform =
"ppc405",
1340 .pvr_mask = 0xfffff000,
1341 .pvr_value = 0x20011000,
1342 .cpu_name =
"Virtex-4 FX",
1346 .mmu_features = MMU_FTR_TYPE_40x,
1350 .platform =
"ppc405",
1353 .pvr_mask = 0xffff0000,
1354 .pvr_value = 0x51210000,
1355 .cpu_name =
"405EP",
1359 .mmu_features = MMU_FTR_TYPE_40x,
1363 .platform =
"ppc405",
1366 .pvr_mask = 0xffff000f,
1367 .pvr_value = 0x12910007,
1368 .cpu_name =
"405EX Rev. A/B",
1372 .mmu_features = MMU_FTR_TYPE_40x,
1376 .platform =
"ppc405",
1379 .pvr_mask = 0xffff000f,
1380 .pvr_value = 0x1291000d,
1381 .cpu_name =
"405EX Rev. C",
1385 .mmu_features = MMU_FTR_TYPE_40x,
1389 .platform =
"ppc405",
1392 .pvr_mask = 0xffff000f,
1393 .pvr_value = 0x1291000f,
1394 .cpu_name =
"405EX Rev. C",
1398 .mmu_features = MMU_FTR_TYPE_40x,
1402 .platform =
"ppc405",
1405 .pvr_mask = 0xffff000f,
1406 .pvr_value = 0x12910003,
1407 .cpu_name =
"405EX Rev. D",
1411 .mmu_features = MMU_FTR_TYPE_40x,
1415 .platform =
"ppc405",
1418 .pvr_mask = 0xffff000f,
1419 .pvr_value = 0x12910005,
1420 .cpu_name =
"405EX Rev. D",
1424 .mmu_features = MMU_FTR_TYPE_40x,
1428 .platform =
"ppc405",
1431 .pvr_mask = 0xffff000f,
1432 .pvr_value = 0x12910001,
1433 .cpu_name =
"405EXr Rev. A/B",
1437 .mmu_features = MMU_FTR_TYPE_40x,
1441 .platform =
"ppc405",
1444 .pvr_mask = 0xffff000f,
1445 .pvr_value = 0x12910009,
1446 .cpu_name =
"405EXr Rev. C",
1450 .mmu_features = MMU_FTR_TYPE_40x,
1454 .platform =
"ppc405",
1457 .pvr_mask = 0xffff000f,
1458 .pvr_value = 0x1291000b,
1459 .cpu_name =
"405EXr Rev. C",
1463 .mmu_features = MMU_FTR_TYPE_40x,
1467 .platform =
"ppc405",
1470 .pvr_mask = 0xffff000f,
1471 .pvr_value = 0x12910000,
1472 .cpu_name =
"405EXr Rev. D",
1476 .mmu_features = MMU_FTR_TYPE_40x,
1480 .platform =
"ppc405",
1483 .pvr_mask = 0xffff000f,
1484 .pvr_value = 0x12910002,
1485 .cpu_name =
"405EXr Rev. D",
1489 .mmu_features = MMU_FTR_TYPE_40x,
1493 .platform =
"ppc405",
1497 .pvr_mask = 0xffff0000,
1498 .pvr_value = 0x41510000,
1499 .cpu_name =
"405EZ",
1503 .mmu_features = MMU_FTR_TYPE_40x,
1507 .platform =
"ppc405",
1510 .pvr_mask = 0xffff0000,
1511 .pvr_value = 0x7ff11432,
1512 .cpu_name =
"APM8018X",
1516 .mmu_features = MMU_FTR_TYPE_40x,
1520 .platform =
"ppc405",
1523 .pvr_mask = 0x00000000,
1524 .pvr_value = 0x00000000,
1525 .cpu_name =
"(generic 40x PPC)",
1529 .mmu_features = MMU_FTR_TYPE_40x,
1533 .platform =
"ppc405",
1539 .pvr_mask = 0xf0000fff,
1540 .pvr_value = 0x40000850,
1541 .cpu_name =
"440GR Rev. A",
1544 .mmu_features = MMU_FTR_TYPE_44x,
1548 .platform =
"ppc440",
1551 .pvr_mask = 0xf0000fff,
1552 .pvr_value = 0x40000858,
1553 .cpu_name =
"440EP Rev. A",
1556 .mmu_features = MMU_FTR_TYPE_44x,
1559 .cpu_setup = __setup_cpu_440ep,
1561 .platform =
"ppc440",
1564 .pvr_mask = 0xf0000fff,
1565 .pvr_value = 0x400008d3,
1566 .cpu_name =
"440GR Rev. B",
1569 .mmu_features = MMU_FTR_TYPE_44x,
1573 .platform =
"ppc440",
1576 .pvr_mask = 0xf0000ff7,
1577 .pvr_value = 0x400008d4,
1578 .cpu_name =
"440EP Rev. C",
1581 .mmu_features = MMU_FTR_TYPE_44x,
1584 .cpu_setup = __setup_cpu_440ep,
1586 .platform =
"ppc440",
1589 .pvr_mask = 0xf0000fff,
1590 .pvr_value = 0x400008db,
1591 .cpu_name =
"440EP Rev. B",
1594 .mmu_features = MMU_FTR_TYPE_44x,
1597 .cpu_setup = __setup_cpu_440ep,
1599 .platform =
"ppc440",
1602 .pvr_mask = 0xf0000ffb,
1603 .pvr_value = 0x200008D0,
1604 .cpu_name =
"440GRX",
1607 .mmu_features = MMU_FTR_TYPE_44x,
1610 .cpu_setup = __setup_cpu_440grx,
1612 .platform =
"ppc440",
1615 .pvr_mask = 0xf0000ffb,
1616 .pvr_value = 0x200008D8,
1617 .cpu_name =
"440EPX",
1620 .mmu_features = MMU_FTR_TYPE_44x,
1623 .cpu_setup = __setup_cpu_440epx,
1625 .platform =
"ppc440",
1628 .pvr_mask = 0xf0000fff,
1629 .pvr_value = 0x40000440,
1630 .cpu_name =
"440GP Rev. B",
1633 .mmu_features = MMU_FTR_TYPE_44x,
1637 .platform =
"ppc440gp",
1640 .pvr_mask = 0xf0000fff,
1641 .pvr_value = 0x40000481,
1642 .cpu_name =
"440GP Rev. C",
1645 .mmu_features = MMU_FTR_TYPE_44x,
1649 .platform =
"ppc440gp",
1652 .pvr_mask = 0xf0000fff,
1653 .pvr_value = 0x50000850,
1654 .cpu_name =
"440GX Rev. A",
1657 .mmu_features = MMU_FTR_TYPE_44x,
1660 .cpu_setup = __setup_cpu_440gx,
1662 .platform =
"ppc440",
1665 .pvr_mask = 0xf0000fff,
1666 .pvr_value = 0x50000851,
1667 .cpu_name =
"440GX Rev. B",
1670 .mmu_features = MMU_FTR_TYPE_44x,
1673 .cpu_setup = __setup_cpu_440gx,
1675 .platform =
"ppc440",
1678 .pvr_mask = 0xf0000fff,
1679 .pvr_value = 0x50000892,
1680 .cpu_name =
"440GX Rev. C",
1683 .mmu_features = MMU_FTR_TYPE_44x,
1686 .cpu_setup = __setup_cpu_440gx,
1688 .platform =
"ppc440",
1691 .pvr_mask = 0xf0000fff,
1692 .pvr_value = 0x50000894,
1693 .cpu_name =
"440GX Rev. F",
1696 .mmu_features = MMU_FTR_TYPE_44x,
1699 .cpu_setup = __setup_cpu_440gx,
1701 .platform =
"ppc440",
1704 .pvr_mask = 0xfff00fff,
1705 .pvr_value = 0x53200891,
1706 .cpu_name =
"440SP Rev. A",
1709 .mmu_features = MMU_FTR_TYPE_44x,
1713 .platform =
"ppc440",
1716 .pvr_mask = 0xfff00fff,
1717 .pvr_value = 0x53400890,
1718 .cpu_name =
"440SPe Rev. A",
1721 .mmu_features = MMU_FTR_TYPE_44x,
1724 .cpu_setup = __setup_cpu_440spe,
1726 .platform =
"ppc440",
1729 .pvr_mask = 0xfff00fff,
1730 .pvr_value = 0x53400891,
1731 .cpu_name =
"440SPe Rev. B",
1734 .mmu_features = MMU_FTR_TYPE_44x,
1737 .cpu_setup = __setup_cpu_440spe,
1739 .platform =
"ppc440",
1742 .pvr_mask = 0xfffffff0,
1743 .pvr_value = 0x7ff21910,
1744 .cpu_name =
"440 in Virtex-5 FXT",
1747 .mmu_features = MMU_FTR_TYPE_44x,
1750 .cpu_setup = __setup_cpu_440x5,
1752 .platform =
"ppc440",
1755 .pvr_mask = 0xffff0006,
1756 .pvr_value = 0x13020002,
1757 .cpu_name =
"460EX",
1760 .mmu_features = MMU_FTR_TYPE_44x,
1763 .cpu_setup = __setup_cpu_460ex,
1765 .platform =
"ppc440",
1768 .pvr_mask = 0xffff0007,
1769 .pvr_value = 0x13020004,
1770 .cpu_name =
"460EX Rev. B",
1773 .mmu_features = MMU_FTR_TYPE_44x,
1776 .cpu_setup = __setup_cpu_460ex,
1778 .platform =
"ppc440",
1781 .pvr_mask = 0xffff0006,
1782 .pvr_value = 0x13020000,
1783 .cpu_name =
"460GT",
1786 .mmu_features = MMU_FTR_TYPE_44x,
1789 .cpu_setup = __setup_cpu_460gt,
1791 .platform =
"ppc440",
1794 .pvr_mask = 0xffff0007,
1795 .pvr_value = 0x13020005,
1796 .cpu_name =
"460GT Rev. B",
1799 .mmu_features = MMU_FTR_TYPE_44x,
1802 .cpu_setup = __setup_cpu_460gt,
1804 .platform =
"ppc440",
1807 .pvr_mask = 0xffffff00,
1808 .pvr_value = 0x13541800,
1809 .cpu_name =
"460SX",
1812 .mmu_features = MMU_FTR_TYPE_44x,
1815 .cpu_setup = __setup_cpu_460sx,
1817 .platform =
"ppc440",
1820 .pvr_mask = 0xfffffff0,
1821 .pvr_value = 0x12C41C80,
1822 .cpu_name =
"APM821XX",
1826 .mmu_features = MMU_FTR_TYPE_44x,
1829 .cpu_setup = __setup_cpu_apm821xx,
1831 .platform =
"ppc440",
1834 .pvr_mask = 0xffffffff,
1835 .pvr_value = 0x11a52080,
1840 .mmu_features = MMU_FTR_TYPE_47x |
1841 MMU_FTR_USE_TLBIVAX_BCAST | MMU_FTR_LOCK_BCAST_INVAL,
1843 .dcache_bsize = 128,
1845 .platform =
"ppc470",
1848 .pvr_mask = 0xffff0000,
1849 .pvr_value = 0x7ff50000,
1850 .cpu_name =
"476fpe",
1854 .mmu_features = MMU_FTR_TYPE_47x |
1855 MMU_FTR_USE_TLBIVAX_BCAST | MMU_FTR_LOCK_BCAST_INVAL,
1857 .dcache_bsize = 128,
1859 .platform =
"ppc470",
1862 .pvr_mask = 0xffff0000,
1863 .pvr_value = 0x00050000,
1868 .mmu_features = MMU_FTR_TYPE_47x |
1869 MMU_FTR_USE_TLBIVAX_BCAST | MMU_FTR_LOCK_BCAST_INVAL,
1871 .dcache_bsize = 128,
1873 .platform =
"ppc470",
1876 .pvr_mask = 0xffff0000,
1877 .pvr_value = 0x11a50000,
1882 .mmu_features = MMU_FTR_TYPE_47x |
1883 MMU_FTR_USE_TLBIVAX_BCAST | MMU_FTR_LOCK_BCAST_INVAL,
1885 .dcache_bsize = 128,
1887 .platform =
"ppc470",
1890 .pvr_mask = 0x00000000,
1891 .pvr_value = 0x00000000,
1892 .cpu_name =
"(generic 44x PPC)",
1895 .mmu_features = MMU_FTR_TYPE_44x,
1899 .platform =
"ppc440",
1904 .pvr_mask = 0xfff00000,
1905 .pvr_value = 0x81000000,
1906 .cpu_name =
"e200z5",
1912 .mmu_features = MMU_FTR_TYPE_FSL_E,
1915 .platform =
"ppc5554",
1918 .pvr_mask = 0xfff00000,
1919 .pvr_value = 0x81100000,
1920 .cpu_name =
"e200z6",
1927 .mmu_features = MMU_FTR_TYPE_FSL_E,
1930 .platform =
"ppc5554",
1933 .pvr_mask = 0x00000000,
1934 .pvr_value = 0x00000000,
1935 .cpu_name =
"(generic E200 PPC)",
1940 .mmu_features = MMU_FTR_TYPE_FSL_E,
1942 .cpu_setup = __setup_cpu_e200,
1944 .platform =
"ppc5554",
1951 .pvr_mask = 0xffff0000,
1952 .pvr_value = 0x80200000,
1958 .mmu_features = MMU_FTR_TYPE_FSL_E,
1962 .oprofile_cpu_type =
"ppc/e500",
1964 .cpu_setup = __setup_cpu_e500v1,
1966 .platform =
"ppc8540",
1969 .pvr_mask = 0xffff0000,
1970 .pvr_value = 0x80210000,
1971 .cpu_name =
"e500v2",
1977 .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS,
1981 .oprofile_cpu_type =
"ppc/e500",
1983 .cpu_setup = __setup_cpu_e500v2,
1985 .platform =
"ppc8548",
1988 .pvr_mask = 0xffff0000,
1989 .pvr_value = 0x80230000,
1990 .cpu_name =
"e500mc",
1993 .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS |
1998 .oprofile_cpu_type =
"ppc/e500mc",
2000 .cpu_setup = __setup_cpu_e500mc,
2002 .platform =
"ppce500mc",
2006 .pvr_mask = 0xffff0000,
2007 .pvr_value = 0x80240000,
2008 .cpu_name =
"e5500",
2011 .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS |
2016 .oprofile_cpu_type =
"ppc/e500mc",
2018 .cpu_setup = __setup_cpu_e5500,
2019 #ifndef CONFIG_PPC32
2020 .cpu_restore = __restore_cpu_e5500,
2023 .platform =
"ppce5500",
2026 .pvr_mask = 0xffff0000,
2027 .pvr_value = 0x80400000,
2028 .cpu_name =
"e6500",
2031 .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS |
2036 .oprofile_cpu_type =
"ppc/e6500",
2038 .cpu_setup = __setup_cpu_e5500,
2039 #ifndef CONFIG_PPC32
2040 .cpu_restore = __restore_cpu_e5500,
2043 .platform =
"ppce6500",
2047 .pvr_mask = 0x00000000,
2048 .pvr_value = 0x00000000,
2049 .cpu_name =
"(generic E500 PPC)",
2054 .mmu_features = MMU_FTR_TYPE_FSL_E,
2058 .platform =
"powerpc",
2063 #ifdef CONFIG_PPC_A2
2065 .pvr_mask = 0xffff0000,
2066 .pvr_value = 0x00480000,
2067 .cpu_name =
"A2 (>= DD2)",
2070 .mmu_features = MMU_FTRS_A2,
2074 .cpu_setup = __setup_cpu_a2,
2075 .cpu_restore = __restore_cpu_a2,
2077 .platform =
"ppca2",
2082 #define CPU_FTRS_BASE_BOOK3E (CPU_FTR_USE_TB | \
2083 CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_SMT | \
2084 CPU_FTR_NODSISRALIGN | CPU_FTR_NOEXECUTE)
2085 .pvr_mask = 0x00000000,
2086 .pvr_value = 0x00000000,
2087 .cpu_name =
"Book3E",
2088 .cpu_features = CPU_FTRS_BASE_BOOK3E,
2090 .mmu_features = MMU_FTR_TYPE_3E | MMU_FTR_USE_TLBILX |
2091 MMU_FTR_USE_TLBIVAX_BCAST |
2092 MMU_FTR_LOCK_BCAST_INVAL,
2097 .platform =
"power6",
2102 static struct cpu_spec the_cpu_spec;
2121 if (old.num_pmcs && !s->
num_pmcs) {
2122 t->num_pmcs = old.num_pmcs;
2123 t->pmc_type = old.pmc_type;
2124 t->oprofile_type = old.oprofile_type;
2125 t->oprofile_mmcra_sihv = old.oprofile_mmcra_sihv;
2126 t->oprofile_mmcra_sipr = old.oprofile_mmcra_sipr;
2127 t->oprofile_mmcra_clear = old.oprofile_mmcra_clear;
2142 if (old.oprofile_cpu_type !=
NULL) {
2143 t->oprofile_cpu_type = old.oprofile_cpu_type;
2144 t->oprofile_type = old.oprofile_type;
2148 *
PTRRELOC(&cur_cpu_spec) = &the_cpu_spec;
2157 #if defined(CONFIG_PPC64) || defined(CONFIG_BOOKE)
2165 t->cpu_setup(offset, t);
2179 for (i = 0; i <
ARRAY_SIZE(cpu_specs); i++,s++) {
2181 return setup_cpu_spec(offset, s);