]>
Commit | Line | Data |
---|---|---|
1da177e4 | 1 | /* |
1da177e4 LT |
2 | * Copyright (C) 2001 Ben. Herrenschmidt (benh@kernel.crashing.org) |
3 | * | |
4920960f SR |
4 | * Modifications for ppc64: |
5 | * Copyright (C) 2003 Dave Engebretsen <engebret@us.ibm.com> | |
6 | * | |
1da177e4 LT |
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. | |
11 | */ | |
12 | ||
1da177e4 LT |
13 | #include <linux/string.h> |
14 | #include <linux/sched.h> | |
15 | #include <linux/threads.h> | |
16 | #include <linux/init.h> | |
4b16f8e2 | 17 | #include <linux/export.h> |
4db73271 | 18 | #include <linux/jump_label.h> |
400d2212 KG |
19 | |
20 | #include <asm/oprofile_impl.h> | |
1da177e4 | 21 | #include <asm/cputable.h> |
42c4aaad | 22 | #include <asm/prom.h> /* for PTRRELOC on ARCH=ppc */ |
7c03d653 | 23 | #include <asm/mmu.h> |
ae3a197e | 24 | #include <asm/setup.h> |
1da177e4 | 25 | |
400d2212 | 26 | struct cpu_spec* cur_cpu_spec = NULL; |
4920960f | 27 | EXPORT_SYMBOL(cur_cpu_spec); |
1da177e4 | 28 | |
9115d134 NL |
29 | /* The platform string corresponding to the real PVR */ |
30 | const char *powerpc_base_platform; | |
31 | ||
4920960f SR |
32 | /* NOTE: |
33 | * Unlike ppc32, ppc64 will only call this once for the boot CPU, it's | |
34 | * the responsibility of the appropriate CPU save/restore functions to | |
35 | * eventually copy these settings over. Those save/restore aren't yet | |
36 | * part of the cputable though. That has to be fixed for both ppc32 | |
37 | * and ppc64 | |
38 | */ | |
b26f100d | 39 | #ifdef CONFIG_PPC32 |
105c31df KG |
40 | extern void __setup_cpu_e200(unsigned long offset, struct cpu_spec* spec); |
41 | extern void __setup_cpu_e500v1(unsigned long offset, struct cpu_spec* spec); | |
42 | extern void __setup_cpu_e500v2(unsigned long offset, struct cpu_spec* spec); | |
43 | extern void __setup_cpu_e500mc(unsigned long offset, struct cpu_spec* spec); | |
8112753b VB |
44 | extern void __setup_cpu_440ep(unsigned long offset, struct cpu_spec* spec); |
45 | extern void __setup_cpu_440epx(unsigned long offset, struct cpu_spec* spec); | |
47c0bd1a | 46 | extern void __setup_cpu_440gx(unsigned long offset, struct cpu_spec* spec); |
340ffd26 | 47 | extern void __setup_cpu_440grx(unsigned long offset, struct cpu_spec* spec); |
47c0bd1a | 48 | extern void __setup_cpu_440spe(unsigned long offset, struct cpu_spec* spec); |
640d17d6 | 49 | extern void __setup_cpu_440x5(unsigned long offset, struct cpu_spec* spec); |
464076a4 | 50 | extern void __setup_cpu_460ex(unsigned long offset, struct cpu_spec* spec); |
939e622c | 51 | extern void __setup_cpu_460gt(unsigned long offset, struct cpu_spec* spec); |
6c712090 | 52 | extern void __setup_cpu_460sx(unsigned long offset, struct cpu_spec *spec); |
6edc323d | 53 | extern void __setup_cpu_apm821xx(unsigned long offset, struct cpu_spec *spec); |
400d2212 KG |
54 | extern void __setup_cpu_603(unsigned long offset, struct cpu_spec* spec); |
55 | extern void __setup_cpu_604(unsigned long offset, struct cpu_spec* spec); | |
56 | extern void __setup_cpu_750(unsigned long offset, struct cpu_spec* spec); | |
57 | extern void __setup_cpu_750cx(unsigned long offset, struct cpu_spec* spec); | |
58 | extern void __setup_cpu_750fx(unsigned long offset, struct cpu_spec* spec); | |
59 | extern void __setup_cpu_7400(unsigned long offset, struct cpu_spec* spec); | |
60 | extern void __setup_cpu_7410(unsigned long offset, struct cpu_spec* spec); | |
61 | extern void __setup_cpu_745x(unsigned long offset, struct cpu_spec* spec); | |
4920960f | 62 | #endif /* CONFIG_PPC32 */ |
f39b7a55 | 63 | #ifdef CONFIG_PPC64 |
400d2212 | 64 | extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec); |
5b43d20a | 65 | extern void __setup_cpu_ppc970MP(unsigned long offset, struct cpu_spec* spec); |
1199919b | 66 | extern void __setup_cpu_pa6t(unsigned long offset, struct cpu_spec* spec); |
40d244d6 | 67 | extern void __restore_cpu_pa6t(void); |
f39b7a55 | 68 | extern void __restore_cpu_ppc970(void); |
e952e6c4 MN |
69 | extern void __setup_cpu_power7(unsigned long offset, struct cpu_spec* spec); |
70 | extern void __restore_cpu_power7(void); | |
aec937b1 MN |
71 | extern void __setup_cpu_power8(unsigned long offset, struct cpu_spec* spec); |
72 | extern void __restore_cpu_power8(void); | |
c3ab300e MN |
73 | extern void __setup_cpu_power9(unsigned long offset, struct cpu_spec* spec); |
74 | extern void __restore_cpu_power9(void); | |
45706bb5 MS |
75 | extern void __flush_tlb_power7(unsigned int action); |
76 | extern void __flush_tlb_power8(unsigned int action); | |
c3ab300e | 77 | extern void __flush_tlb_power9(unsigned int action); |
e22a2274 | 78 | extern long __machine_check_early_realmode_p7(struct pt_regs *regs); |
ae744f34 | 79 | extern long __machine_check_early_realmode_p8(struct pt_regs *regs); |
7b9f71f9 | 80 | extern long __machine_check_early_realmode_p9(struct pt_regs *regs); |
f39b7a55 | 81 | #endif /* CONFIG_PPC64 */ |
4490c06b KG |
82 | #if defined(CONFIG_E500) |
83 | extern void __setup_cpu_e5500(unsigned long offset, struct cpu_spec* spec); | |
cd66cc2e | 84 | extern void __setup_cpu_e6500(unsigned long offset, struct cpu_spec* spec); |
4490c06b | 85 | extern void __restore_cpu_e5500(void); |
cd66cc2e | 86 | extern void __restore_cpu_e6500(void); |
4490c06b | 87 | #endif /* CONFIG_E500 */ |
1da177e4 | 88 | |
1da177e4 LT |
89 | /* This table only contains "desktop" CPUs, it need to be filled with embedded |
90 | * ones as well... | |
91 | */ | |
4920960f SR |
92 | #define COMMON_USER (PPC_FEATURE_32 | PPC_FEATURE_HAS_FPU | \ |
93 | PPC_FEATURE_HAS_MMU) | |
94 | #define COMMON_USER_PPC64 (COMMON_USER | PPC_FEATURE_64) | |
a7ddc5e8 | 95 | #define COMMON_USER_POWER4 (COMMON_USER_PPC64 | PPC_FEATURE_POWER4) |
aa5cb021 BH |
96 | #define COMMON_USER_POWER5 (COMMON_USER_PPC64 | PPC_FEATURE_POWER5 |\ |
97 | PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP) | |
98 | #define COMMON_USER_POWER5_PLUS (COMMON_USER_PPC64 | PPC_FEATURE_POWER5_PLUS|\ | |
99 | PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP) | |
03054d51 | 100 | #define COMMON_USER_POWER6 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_05 |\ |
fab5db97 | 101 | PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \ |
0f473314 NL |
102 | PPC_FEATURE_TRUE_LE | \ |
103 | PPC_FEATURE_PSERIES_PERFMON_COMPAT) | |
e952e6c4 MN |
104 | #define COMMON_USER_POWER7 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_06 |\ |
105 | PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \ | |
0f473314 NL |
106 | PPC_FEATURE_TRUE_LE | \ |
107 | PPC_FEATURE_PSERIES_PERFMON_COMPAT) | |
4a1ae4f3 | 108 | #define COMMON_USER2_POWER7 (PPC_FEATURE2_DSCR) |
71e18497 MN |
109 | #define COMMON_USER_POWER8 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_06 |\ |
110 | PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \ | |
111 | PPC_FEATURE_TRUE_LE | \ | |
112 | PPC_FEATURE_PSERIES_PERFMON_COMPAT) | |
748645bf | 113 | #define COMMON_USER2_POWER8 (PPC_FEATURE2_ARCH_2_07 | \ |
b4b56f9e S |
114 | PPC_FEATURE2_HTM_COMP | \ |
115 | PPC_FEATURE2_HTM_NOSC_COMP | \ | |
116 | PPC_FEATURE2_DSCR | \ | |
dd58a092 BH |
117 | PPC_FEATURE2_ISEL | PPC_FEATURE2_TAR | \ |
118 | PPC_FEATURE2_VEC_CRYPTO) | |
b3ebd1d8 OJ |
119 | #define COMMON_USER_PA6T (COMMON_USER_PPC64 | PPC_FEATURE_PA6T |\ |
120 | PPC_FEATURE_TRUE_LE | \ | |
121 | PPC_FEATURE_HAS_ALTIVEC_COMP) | |
c3ab300e MN |
122 | #define COMMON_USER_POWER9 COMMON_USER_POWER8 |
123 | #define COMMON_USER2_POWER9 (COMMON_USER2_POWER8 | \ | |
124 | PPC_FEATURE2_ARCH_3_00 | \ | |
125 | PPC_FEATURE2_HAS_IEEE128) | |
126 | ||
f45c4486 KG |
127 | #ifdef CONFIG_PPC_BOOK3E_64 |
128 | #define COMMON_USER_BOOKE (COMMON_USER_PPC64 | PPC_FEATURE_BOOKE) | |
129 | #else | |
80f15dc7 PM |
130 | #define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \ |
131 | PPC_FEATURE_BOOKE) | |
f45c4486 | 132 | #endif |
1da177e4 | 133 | |
87a72f9e | 134 | static struct cpu_spec __initdata cpu_specs[] = { |
2d27cfd3 | 135 | #ifdef CONFIG_PPC_BOOK3S_64 |
4920960f SR |
136 | { /* Power4 */ |
137 | .pvr_mask = 0xffff0000, | |
138 | .pvr_value = 0x00350000, | |
139 | .cpu_name = "POWER4 (gp)", | |
140 | .cpu_features = CPU_FTRS_POWER4, | |
a7ddc5e8 | 141 | .cpu_user_features = COMMON_USER_POWER4, |
accfad7d | 142 | .mmu_features = MMU_FTRS_POWER4 | MMU_FTR_TLBIE_CROP_VA, |
4920960f SR |
143 | .icache_bsize = 128, |
144 | .dcache_bsize = 128, | |
145 | .num_pmcs = 8, | |
1bd2e5ae | 146 | .pmc_type = PPC_PMC_IBM, |
4920960f | 147 | .oprofile_cpu_type = "ppc64/power4", |
7a45fb19 | 148 | .oprofile_type = PPC_OPROFILE_POWER4, |
80f15dc7 | 149 | .platform = "power4", |
4920960f SR |
150 | }, |
151 | { /* Power4+ */ | |
152 | .pvr_mask = 0xffff0000, | |
153 | .pvr_value = 0x00380000, | |
154 | .cpu_name = "POWER4+ (gq)", | |
155 | .cpu_features = CPU_FTRS_POWER4, | |
a7ddc5e8 | 156 | .cpu_user_features = COMMON_USER_POWER4, |
accfad7d | 157 | .mmu_features = MMU_FTRS_POWER4 | MMU_FTR_TLBIE_CROP_VA, |
4920960f SR |
158 | .icache_bsize = 128, |
159 | .dcache_bsize = 128, | |
160 | .num_pmcs = 8, | |
1bd2e5ae | 161 | .pmc_type = PPC_PMC_IBM, |
4920960f | 162 | .oprofile_cpu_type = "ppc64/power4", |
7a45fb19 | 163 | .oprofile_type = PPC_OPROFILE_POWER4, |
80f15dc7 | 164 | .platform = "power4", |
4920960f SR |
165 | }, |
166 | { /* PPC970 */ | |
167 | .pvr_mask = 0xffff0000, | |
168 | .pvr_value = 0x00390000, | |
169 | .cpu_name = "PPC970", | |
170 | .cpu_features = CPU_FTRS_PPC970, | |
a7ddc5e8 | 171 | .cpu_user_features = COMMON_USER_POWER4 | |
4920960f | 172 | PPC_FEATURE_HAS_ALTIVEC_COMP, |
44ae3ab3 | 173 | .mmu_features = MMU_FTRS_PPC970, |
4920960f SR |
174 | .icache_bsize = 128, |
175 | .dcache_bsize = 128, | |
176 | .num_pmcs = 8, | |
1bd2e5ae | 177 | .pmc_type = PPC_PMC_IBM, |
4920960f | 178 | .cpu_setup = __setup_cpu_ppc970, |
f39b7a55 | 179 | .cpu_restore = __restore_cpu_ppc970, |
4920960f | 180 | .oprofile_cpu_type = "ppc64/970", |
7a45fb19 | 181 | .oprofile_type = PPC_OPROFILE_POWER4, |
80f15dc7 | 182 | .platform = "ppc970", |
4920960f | 183 | }, |
4920960f SR |
184 | { /* PPC970FX */ |
185 | .pvr_mask = 0xffff0000, | |
186 | .pvr_value = 0x003c0000, | |
187 | .cpu_name = "PPC970FX", | |
4920960f | 188 | .cpu_features = CPU_FTRS_PPC970, |
a7ddc5e8 | 189 | .cpu_user_features = COMMON_USER_POWER4 | |
4920960f | 190 | PPC_FEATURE_HAS_ALTIVEC_COMP, |
44ae3ab3 | 191 | .mmu_features = MMU_FTRS_PPC970, |
4920960f SR |
192 | .icache_bsize = 128, |
193 | .dcache_bsize = 128, | |
194 | .num_pmcs = 8, | |
1bd2e5ae | 195 | .pmc_type = PPC_PMC_IBM, |
4920960f | 196 | .cpu_setup = __setup_cpu_ppc970, |
f39b7a55 | 197 | .cpu_restore = __restore_cpu_ppc970, |
4920960f | 198 | .oprofile_cpu_type = "ppc64/970", |
7a45fb19 | 199 | .oprofile_type = PPC_OPROFILE_POWER4, |
80f15dc7 | 200 | .platform = "ppc970", |
3546e811 OJ |
201 | }, |
202 | { /* PPC970MP DD1.0 - no DEEPNAP, use regular 970 init */ | |
203 | .pvr_mask = 0xffffffff, | |
204 | .pvr_value = 0x00440100, | |
205 | .cpu_name = "PPC970MP", | |
206 | .cpu_features = CPU_FTRS_PPC970, | |
207 | .cpu_user_features = COMMON_USER_POWER4 | | |
208 | PPC_FEATURE_HAS_ALTIVEC_COMP, | |
d63ac5f6 | 209 | .mmu_features = MMU_FTRS_PPC970, |
3546e811 OJ |
210 | .icache_bsize = 128, |
211 | .dcache_bsize = 128, | |
212 | .num_pmcs = 8, | |
2fae4985 | 213 | .pmc_type = PPC_PMC_IBM, |
3546e811 OJ |
214 | .cpu_setup = __setup_cpu_ppc970, |
215 | .cpu_restore = __restore_cpu_ppc970, | |
216 | .oprofile_cpu_type = "ppc64/970MP", | |
217 | .oprofile_type = PPC_OPROFILE_POWER4, | |
218 | .platform = "ppc970", | |
4920960f | 219 | }, |
4920960f SR |
220 | { /* PPC970MP */ |
221 | .pvr_mask = 0xffff0000, | |
222 | .pvr_value = 0x00440000, | |
223 | .cpu_name = "PPC970MP", | |
224 | .cpu_features = CPU_FTRS_PPC970, | |
a7ddc5e8 | 225 | .cpu_user_features = COMMON_USER_POWER4 | |
4920960f | 226 | PPC_FEATURE_HAS_ALTIVEC_COMP, |
44ae3ab3 | 227 | .mmu_features = MMU_FTRS_PPC970, |
4920960f SR |
228 | .icache_bsize = 128, |
229 | .dcache_bsize = 128, | |
87af41be | 230 | .num_pmcs = 8, |
2fae4985 | 231 | .pmc_type = PPC_PMC_IBM, |
5b43d20a | 232 | .cpu_setup = __setup_cpu_ppc970MP, |
f39b7a55 | 233 | .cpu_restore = __restore_cpu_ppc970, |
fecb352f | 234 | .oprofile_cpu_type = "ppc64/970MP", |
7a45fb19 | 235 | .oprofile_type = PPC_OPROFILE_POWER4, |
80f15dc7 | 236 | .platform = "ppc970", |
4920960f | 237 | }, |
362ff7b2 JM |
238 | { /* PPC970GX */ |
239 | .pvr_mask = 0xffff0000, | |
240 | .pvr_value = 0x00450000, | |
241 | .cpu_name = "PPC970GX", | |
242 | .cpu_features = CPU_FTRS_PPC970, | |
243 | .cpu_user_features = COMMON_USER_POWER4 | | |
244 | PPC_FEATURE_HAS_ALTIVEC_COMP, | |
44ae3ab3 | 245 | .mmu_features = MMU_FTRS_PPC970, |
362ff7b2 JM |
246 | .icache_bsize = 128, |
247 | .dcache_bsize = 128, | |
248 | .num_pmcs = 8, | |
1bd2e5ae | 249 | .pmc_type = PPC_PMC_IBM, |
362ff7b2 JM |
250 | .cpu_setup = __setup_cpu_ppc970, |
251 | .oprofile_cpu_type = "ppc64/970", | |
252 | .oprofile_type = PPC_OPROFILE_POWER4, | |
253 | .platform = "ppc970", | |
254 | }, | |
3c726f8d | 255 | { /* Power5 GR */ |
4920960f SR |
256 | .pvr_mask = 0xffff0000, |
257 | .pvr_value = 0x003a0000, | |
258 | .cpu_name = "POWER5 (gr)", | |
259 | .cpu_features = CPU_FTRS_POWER5, | |
a7ddc5e8 | 260 | .cpu_user_features = COMMON_USER_POWER5, |
44ae3ab3 | 261 | .mmu_features = MMU_FTRS_POWER5, |
4920960f SR |
262 | .icache_bsize = 128, |
263 | .dcache_bsize = 128, | |
264 | .num_pmcs = 6, | |
1bd2e5ae | 265 | .pmc_type = PPC_PMC_IBM, |
4920960f | 266 | .oprofile_cpu_type = "ppc64/power5", |
7a45fb19 | 267 | .oprofile_type = PPC_OPROFILE_POWER4, |
e78dbc80 MN |
268 | /* SIHV / SIPR bits are implemented on POWER4+ (GQ) |
269 | * and above but only works on POWER5 and above | |
270 | */ | |
271 | .oprofile_mmcra_sihv = MMCRA_SIHV, | |
272 | .oprofile_mmcra_sipr = MMCRA_SIPR, | |
80f15dc7 | 273 | .platform = "power5", |
4920960f | 274 | }, |
31a12cec MW |
275 | { /* Power5++ */ |
276 | .pvr_mask = 0xffffff00, | |
277 | .pvr_value = 0x003b0300, | |
278 | .cpu_name = "POWER5+ (gs)", | |
279 | .cpu_features = CPU_FTRS_POWER5, | |
280 | .cpu_user_features = COMMON_USER_POWER5_PLUS, | |
44ae3ab3 | 281 | .mmu_features = MMU_FTRS_POWER5, |
31a12cec MW |
282 | .icache_bsize = 128, |
283 | .dcache_bsize = 128, | |
284 | .num_pmcs = 6, | |
285 | .oprofile_cpu_type = "ppc64/power5++", | |
286 | .oprofile_type = PPC_OPROFILE_POWER4, | |
287 | .oprofile_mmcra_sihv = MMCRA_SIHV, | |
288 | .oprofile_mmcra_sipr = MMCRA_SIPR, | |
289 | .platform = "power5+", | |
290 | }, | |
3c726f8d | 291 | { /* Power5 GS */ |
4920960f SR |
292 | .pvr_mask = 0xffff0000, |
293 | .pvr_value = 0x003b0000, | |
834608f7 | 294 | .cpu_name = "POWER5+ (gs)", |
4920960f | 295 | .cpu_features = CPU_FTRS_POWER5, |
a7ddc5e8 | 296 | .cpu_user_features = COMMON_USER_POWER5_PLUS, |
44ae3ab3 | 297 | .mmu_features = MMU_FTRS_POWER5, |
4920960f SR |
298 | .icache_bsize = 128, |
299 | .dcache_bsize = 128, | |
300 | .num_pmcs = 6, | |
1bd2e5ae | 301 | .pmc_type = PPC_PMC_IBM, |
834608f7 | 302 | .oprofile_cpu_type = "ppc64/power5+", |
7a45fb19 | 303 | .oprofile_type = PPC_OPROFILE_POWER4, |
e78dbc80 MN |
304 | .oprofile_mmcra_sihv = MMCRA_SIHV, |
305 | .oprofile_mmcra_sipr = MMCRA_SIPR, | |
80f15dc7 | 306 | .platform = "power5+", |
4920960f | 307 | }, |
974a76f5 PM |
308 | { /* POWER6 in P5+ mode; 2.04-compliant processor */ |
309 | .pvr_mask = 0xffffffff, | |
310 | .pvr_value = 0x0f000001, | |
311 | .cpu_name = "POWER5+", | |
312 | .cpu_features = CPU_FTRS_POWER5, | |
313 | .cpu_user_features = COMMON_USER_POWER5_PLUS, | |
44ae3ab3 | 314 | .mmu_features = MMU_FTRS_POWER5, |
974a76f5 PM |
315 | .icache_bsize = 128, |
316 | .dcache_bsize = 128, | |
79af6c49 MW |
317 | .oprofile_cpu_type = "ppc64/ibm-compat-v1", |
318 | .oprofile_type = PPC_OPROFILE_POWER4, | |
974a76f5 PM |
319 | .platform = "power5+", |
320 | }, | |
03054d51 AB |
321 | { /* Power6 */ |
322 | .pvr_mask = 0xffff0000, | |
323 | .pvr_value = 0x003e0000, | |
974a76f5 PM |
324 | .cpu_name = "POWER6 (raw)", |
325 | .cpu_features = CPU_FTRS_POWER6, | |
326 | .cpu_user_features = COMMON_USER_POWER6 | | |
327 | PPC_FEATURE_POWER6_EXT, | |
44ae3ab3 | 328 | .mmu_features = MMU_FTRS_POWER6, |
974a76f5 PM |
329 | .icache_bsize = 128, |
330 | .dcache_bsize = 128, | |
331 | .num_pmcs = 6, | |
2fae4985 | 332 | .pmc_type = PPC_PMC_IBM, |
974a76f5 PM |
333 | .oprofile_cpu_type = "ppc64/power6", |
334 | .oprofile_type = PPC_OPROFILE_POWER4, | |
335 | .oprofile_mmcra_sihv = POWER6_MMCRA_SIHV, | |
336 | .oprofile_mmcra_sipr = POWER6_MMCRA_SIPR, | |
337 | .oprofile_mmcra_clear = POWER6_MMCRA_THRM | | |
338 | POWER6_MMCRA_OTHER, | |
339 | .platform = "power6x", | |
340 | }, | |
341 | { /* 2.05-compliant processor, i.e. Power6 "architected" mode */ | |
342 | .pvr_mask = 0xffffffff, | |
343 | .pvr_value = 0x0f000002, | |
344 | .cpu_name = "POWER6 (architected)", | |
03054d51 AB |
345 | .cpu_features = CPU_FTRS_POWER6, |
346 | .cpu_user_features = COMMON_USER_POWER6, | |
44ae3ab3 | 347 | .mmu_features = MMU_FTRS_POWER6, |
03054d51 AB |
348 | .icache_bsize = 128, |
349 | .dcache_bsize = 128, | |
79af6c49 MW |
350 | .oprofile_cpu_type = "ppc64/ibm-compat-v1", |
351 | .oprofile_type = PPC_OPROFILE_POWER4, | |
03054d51 AB |
352 | .platform = "power6", |
353 | }, | |
635f5a63 JS |
354 | { /* 2.06-compliant processor, i.e. Power7 "architected" mode */ |
355 | .pvr_mask = 0xffffffff, | |
356 | .pvr_value = 0x0f000003, | |
357 | .cpu_name = "POWER7 (architected)", | |
358 | .cpu_features = CPU_FTRS_POWER7, | |
359 | .cpu_user_features = COMMON_USER_POWER7, | |
4a1ae4f3 | 360 | .cpu_user_features2 = COMMON_USER2_POWER7, |
44ae3ab3 | 361 | .mmu_features = MMU_FTRS_POWER7, |
635f5a63 JS |
362 | .icache_bsize = 128, |
363 | .dcache_bsize = 128, | |
79af6c49 MW |
364 | .oprofile_type = PPC_OPROFILE_POWER4, |
365 | .oprofile_cpu_type = "ppc64/ibm-compat-v1", | |
24cc67de BH |
366 | .cpu_setup = __setup_cpu_power7, |
367 | .cpu_restore = __restore_cpu_power7, | |
04407050 | 368 | .flush_tlb = __flush_tlb_power7, |
e22a2274 | 369 | .machine_check_early = __machine_check_early_realmode_p7, |
635f5a63 JS |
370 | .platform = "power7", |
371 | }, | |
c674e703 MN |
372 | { /* 2.07-compliant processor, i.e. Power8 "architected" mode */ |
373 | .pvr_mask = 0xffffffff, | |
374 | .pvr_value = 0x0f000004, | |
375 | .cpu_name = "POWER8 (architected)", | |
376 | .cpu_features = CPU_FTRS_POWER8, | |
377 | .cpu_user_features = COMMON_USER_POWER8, | |
748645bf | 378 | .cpu_user_features2 = COMMON_USER2_POWER8, |
c674e703 MN |
379 | .mmu_features = MMU_FTRS_POWER8, |
380 | .icache_bsize = 128, | |
381 | .dcache_bsize = 128, | |
6a60f9e7 MN |
382 | .oprofile_type = PPC_OPROFILE_INVALID, |
383 | .oprofile_cpu_type = "ppc64/ibm-compat-v1", | |
c674e703 MN |
384 | .cpu_setup = __setup_cpu_power8, |
385 | .cpu_restore = __restore_cpu_power8, | |
04407050 | 386 | .flush_tlb = __flush_tlb_power8, |
ae744f34 | 387 | .machine_check_early = __machine_check_early_realmode_p8, |
c674e703 MN |
388 | .platform = "power8", |
389 | }, | |
6ae3f8ad RC |
390 | { /* 3.00-compliant processor, i.e. Power9 "architected" mode */ |
391 | .pvr_mask = 0xffffffff, | |
392 | .pvr_value = 0x0f000005, | |
393 | .cpu_name = "POWER9 (architected)", | |
394 | .cpu_features = CPU_FTRS_POWER9, | |
395 | .cpu_user_features = COMMON_USER_POWER9, | |
396 | .cpu_user_features2 = COMMON_USER2_POWER9, | |
397 | .mmu_features = MMU_FTRS_POWER9, | |
398 | .icache_bsize = 128, | |
399 | .dcache_bsize = 128, | |
400 | .oprofile_type = PPC_OPROFILE_INVALID, | |
401 | .oprofile_cpu_type = "ppc64/ibm-compat-v1", | |
402 | .cpu_setup = __setup_cpu_power9, | |
403 | .cpu_restore = __restore_cpu_power9, | |
404 | .flush_tlb = __flush_tlb_power9, | |
405 | .platform = "power9", | |
406 | }, | |
e952e6c4 MN |
407 | { /* Power7 */ |
408 | .pvr_mask = 0xffff0000, | |
409 | .pvr_value = 0x003f0000, | |
635f5a63 | 410 | .cpu_name = "POWER7 (raw)", |
e952e6c4 MN |
411 | .cpu_features = CPU_FTRS_POWER7, |
412 | .cpu_user_features = COMMON_USER_POWER7, | |
4a1ae4f3 | 413 | .cpu_user_features2 = COMMON_USER2_POWER7, |
44ae3ab3 | 414 | .mmu_features = MMU_FTRS_POWER7, |
e952e6c4 MN |
415 | .icache_bsize = 128, |
416 | .dcache_bsize = 128, | |
417 | .num_pmcs = 6, | |
418 | .pmc_type = PPC_PMC_IBM, | |
e952e6c4 MN |
419 | .oprofile_cpu_type = "ppc64/power7", |
420 | .oprofile_type = PPC_OPROFILE_POWER4, | |
24cc67de BH |
421 | .cpu_setup = __setup_cpu_power7, |
422 | .cpu_restore = __restore_cpu_power7, | |
04407050 | 423 | .flush_tlb = __flush_tlb_power7, |
e22a2274 | 424 | .machine_check_early = __machine_check_early_realmode_p7, |
e952e6c4 MN |
425 | .platform = "power7", |
426 | }, | |
6f08cb3b MN |
427 | { /* Power7+ */ |
428 | .pvr_mask = 0xffff0000, | |
429 | .pvr_value = 0x004A0000, | |
430 | .cpu_name = "POWER7+ (raw)", | |
431 | .cpu_features = CPU_FTRS_POWER7, | |
432 | .cpu_user_features = COMMON_USER_POWER7, | |
badec11b | 433 | .cpu_user_features2 = COMMON_USER2_POWER7, |
44ae3ab3 | 434 | .mmu_features = MMU_FTRS_POWER7, |
6f08cb3b MN |
435 | .icache_bsize = 128, |
436 | .dcache_bsize = 128, | |
437 | .num_pmcs = 6, | |
438 | .pmc_type = PPC_PMC_IBM, | |
439 | .oprofile_cpu_type = "ppc64/power7", | |
440 | .oprofile_type = PPC_OPROFILE_POWER4, | |
24cc67de BH |
441 | .cpu_setup = __setup_cpu_power7, |
442 | .cpu_restore = __restore_cpu_power7, | |
04407050 | 443 | .flush_tlb = __flush_tlb_power7, |
e22a2274 | 444 | .machine_check_early = __machine_check_early_realmode_p7, |
6f08cb3b MN |
445 | .platform = "power7+", |
446 | }, | |
33959f88 | 447 | { /* Power8E */ |
71e18497 MN |
448 | .pvr_mask = 0xffff0000, |
449 | .pvr_value = 0x004b0000, | |
33959f88 | 450 | .cpu_name = "POWER8E (raw)", |
68f2f0d4 | 451 | .cpu_features = CPU_FTRS_POWER8E, |
33959f88 | 452 | .cpu_user_features = COMMON_USER_POWER8, |
bd6ba351 JS |
453 | .cpu_user_features2 = COMMON_USER2_POWER8, |
454 | .mmu_features = MMU_FTRS_POWER8, | |
455 | .icache_bsize = 128, | |
456 | .dcache_bsize = 128, | |
457 | .num_pmcs = 6, | |
458 | .pmc_type = PPC_PMC_IBM, | |
459 | .oprofile_cpu_type = "ppc64/power8", | |
460 | .oprofile_type = PPC_OPROFILE_INVALID, | |
461 | .cpu_setup = __setup_cpu_power8, | |
462 | .cpu_restore = __restore_cpu_power8, | |
463 | .flush_tlb = __flush_tlb_power8, | |
464 | .machine_check_early = __machine_check_early_realmode_p8, | |
465 | .platform = "power8", | |
466 | }, | |
ddee09c0 BH |
467 | { /* Power8NVL */ |
468 | .pvr_mask = 0xffff0000, | |
469 | .pvr_value = 0x004c0000, | |
470 | .cpu_name = "POWER8NVL (raw)", | |
471 | .cpu_features = CPU_FTRS_POWER8, | |
472 | .cpu_user_features = COMMON_USER_POWER8, | |
473 | .cpu_user_features2 = COMMON_USER2_POWER8, | |
474 | .mmu_features = MMU_FTRS_POWER8, | |
475 | .icache_bsize = 128, | |
476 | .dcache_bsize = 128, | |
477 | .num_pmcs = 6, | |
478 | .pmc_type = PPC_PMC_IBM, | |
479 | .oprofile_cpu_type = "ppc64/power8", | |
480 | .oprofile_type = PPC_OPROFILE_INVALID, | |
481 | .cpu_setup = __setup_cpu_power8, | |
482 | .cpu_restore = __restore_cpu_power8, | |
483 | .flush_tlb = __flush_tlb_power8, | |
484 | .machine_check_early = __machine_check_early_realmode_p8, | |
485 | .platform = "power8", | |
486 | }, | |
bd6ba351 JS |
487 | { /* Power8 DD1: Does not support doorbell IPIs */ |
488 | .pvr_mask = 0xffffff00, | |
489 | .pvr_value = 0x004d0100, | |
490 | .cpu_name = "POWER8 (raw)", | |
491 | .cpu_features = CPU_FTRS_POWER8_DD1, | |
492 | .cpu_user_features = COMMON_USER_POWER8, | |
33959f88 MN |
493 | .cpu_user_features2 = COMMON_USER2_POWER8, |
494 | .mmu_features = MMU_FTRS_POWER8, | |
495 | .icache_bsize = 128, | |
496 | .dcache_bsize = 128, | |
497 | .num_pmcs = 6, | |
498 | .pmc_type = PPC_PMC_IBM, | |
499 | .oprofile_cpu_type = "ppc64/power8", | |
500 | .oprofile_type = PPC_OPROFILE_INVALID, | |
501 | .cpu_setup = __setup_cpu_power8, | |
502 | .cpu_restore = __restore_cpu_power8, | |
04407050 | 503 | .flush_tlb = __flush_tlb_power8, |
ae744f34 | 504 | .machine_check_early = __machine_check_early_realmode_p8, |
33959f88 MN |
505 | .platform = "power8", |
506 | }, | |
507 | { /* Power8 */ | |
508 | .pvr_mask = 0xffff0000, | |
509 | .pvr_value = 0x004d0000, | |
71e18497 MN |
510 | .cpu_name = "POWER8 (raw)", |
511 | .cpu_features = CPU_FTRS_POWER8, | |
512 | .cpu_user_features = COMMON_USER_POWER8, | |
748645bf | 513 | .cpu_user_features2 = COMMON_USER2_POWER8, |
71e18497 MN |
514 | .mmu_features = MMU_FTRS_POWER8, |
515 | .icache_bsize = 128, | |
516 | .dcache_bsize = 128, | |
517 | .num_pmcs = 6, | |
518 | .pmc_type = PPC_PMC_IBM, | |
6a60f9e7 MN |
519 | .oprofile_cpu_type = "ppc64/power8", |
520 | .oprofile_type = PPC_OPROFILE_INVALID, | |
71e18497 MN |
521 | .cpu_setup = __setup_cpu_power8, |
522 | .cpu_restore = __restore_cpu_power8, | |
04407050 | 523 | .flush_tlb = __flush_tlb_power8, |
ae744f34 | 524 | .machine_check_early = __machine_check_early_realmode_p8, |
71e18497 MN |
525 | .platform = "power8", |
526 | }, | |
7dccfbc3 AK |
527 | { /* Power9 DD1*/ |
528 | .pvr_mask = 0xffffff00, | |
529 | .pvr_value = 0x004e0100, | |
530 | .cpu_name = "POWER9 (raw)", | |
531 | .cpu_features = CPU_FTRS_POWER9_DD1, | |
532 | .cpu_user_features = COMMON_USER_POWER9, | |
533 | .cpu_user_features2 = COMMON_USER2_POWER9, | |
534 | .mmu_features = MMU_FTRS_POWER9, | |
535 | .icache_bsize = 128, | |
536 | .dcache_bsize = 128, | |
537 | .num_pmcs = 6, | |
538 | .pmc_type = PPC_PMC_IBM, | |
539 | .oprofile_cpu_type = "ppc64/power9", | |
540 | .oprofile_type = PPC_OPROFILE_INVALID, | |
541 | .cpu_setup = __setup_cpu_power9, | |
542 | .cpu_restore = __restore_cpu_power9, | |
543 | .flush_tlb = __flush_tlb_power9, | |
7b9f71f9 | 544 | .machine_check_early = __machine_check_early_realmode_p9, |
7dccfbc3 AK |
545 | .platform = "power9", |
546 | }, | |
c3ab300e MN |
547 | { /* Power9 */ |
548 | .pvr_mask = 0xffff0000, | |
549 | .pvr_value = 0x004e0000, | |
550 | .cpu_name = "POWER9 (raw)", | |
551 | .cpu_features = CPU_FTRS_POWER9, | |
552 | .cpu_user_features = COMMON_USER_POWER9, | |
553 | .cpu_user_features2 = COMMON_USER2_POWER9, | |
554 | .mmu_features = MMU_FTRS_POWER9, | |
555 | .icache_bsize = 128, | |
556 | .dcache_bsize = 128, | |
557 | .num_pmcs = 6, | |
558 | .pmc_type = PPC_PMC_IBM, | |
559 | .oprofile_cpu_type = "ppc64/power9", | |
560 | .oprofile_type = PPC_OPROFILE_INVALID, | |
561 | .cpu_setup = __setup_cpu_power9, | |
562 | .cpu_restore = __restore_cpu_power9, | |
563 | .flush_tlb = __flush_tlb_power9, | |
7b9f71f9 | 564 | .machine_check_early = __machine_check_early_realmode_p9, |
c3ab300e MN |
565 | .platform = "power9", |
566 | }, | |
c902be71 | 567 | { /* Cell Broadband Engine */ |
4920960f SR |
568 | .pvr_mask = 0xffff0000, |
569 | .pvr_value = 0x00700000, | |
570 | .cpu_name = "Cell Broadband Engine", | |
571 | .cpu_features = CPU_FTRS_CELL, | |
572 | .cpu_user_features = COMMON_USER_PPC64 | | |
aa5cb021 BH |
573 | PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP | |
574 | PPC_FEATURE_SMT, | |
44ae3ab3 | 575 | .mmu_features = MMU_FTRS_CELL, |
4920960f SR |
576 | .icache_bsize = 128, |
577 | .dcache_bsize = 128, | |
18f2190d | 578 | .num_pmcs = 4, |
1bd2e5ae | 579 | .pmc_type = PPC_PMC_IBM, |
18f2190d MJ |
580 | .oprofile_cpu_type = "ppc64/cell-be", |
581 | .oprofile_type = PPC_OPROFILE_CELL, | |
80f15dc7 | 582 | .platform = "ppc-cell-be", |
4920960f | 583 | }, |
b3ebd1d8 OJ |
584 | { /* PA Semi PA6T */ |
585 | .pvr_mask = 0x7fff0000, | |
586 | .pvr_value = 0x00900000, | |
587 | .cpu_name = "PA6T", | |
588 | .cpu_features = CPU_FTRS_PA6T, | |
589 | .cpu_user_features = COMMON_USER_PA6T, | |
44ae3ab3 | 590 | .mmu_features = MMU_FTRS_PA6T, |
b3ebd1d8 OJ |
591 | .icache_bsize = 64, |
592 | .dcache_bsize = 64, | |
593 | .num_pmcs = 6, | |
1bd2e5ae | 594 | .pmc_type = PPC_PMC_PA6T, |
1199919b OJ |
595 | .cpu_setup = __setup_cpu_pa6t, |
596 | .cpu_restore = __restore_cpu_pa6t, | |
25fc530e OJ |
597 | .oprofile_cpu_type = "ppc64/pa6t", |
598 | .oprofile_type = PPC_OPROFILE_PA6T, | |
b3ebd1d8 OJ |
599 | .platform = "pa6t", |
600 | }, | |
4920960f SR |
601 | { /* default match */ |
602 | .pvr_mask = 0x00000000, | |
603 | .pvr_value = 0x00000000, | |
604 | .cpu_name = "POWER4 (compatible)", | |
605 | .cpu_features = CPU_FTRS_COMPATIBLE, | |
606 | .cpu_user_features = COMMON_USER_PPC64, | |
44ae3ab3 | 607 | .mmu_features = MMU_FTRS_DEFAULT_HPTE_ARCH_V2, |
4920960f SR |
608 | .icache_bsize = 128, |
609 | .dcache_bsize = 128, | |
610 | .num_pmcs = 6, | |
1bd2e5ae | 611 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 612 | .platform = "power4", |
4920960f | 613 | } |
2d27cfd3 | 614 | #endif /* CONFIG_PPC_BOOK3S_64 */ |
2d27cfd3 | 615 | |
4920960f | 616 | #ifdef CONFIG_PPC32 |
1e07a0a0 | 617 | #ifdef CONFIG_PPC_BOOK3S_32 |
4920960f | 618 | { /* 601 */ |
1da177e4 LT |
619 | .pvr_mask = 0xffff0000, |
620 | .pvr_value = 0x00010000, | |
621 | .cpu_name = "601", | |
10b35d99 | 622 | .cpu_features = CPU_FTRS_PPC601, |
4920960f | 623 | .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR | |
d8e998c5 | 624 | PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB, |
7c03d653 | 625 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
626 | .icache_bsize = 32, |
627 | .dcache_bsize = 32, | |
47c0bd1a | 628 | .machine_check = machine_check_generic, |
80f15dc7 | 629 | .platform = "ppc601", |
1da177e4 LT |
630 | }, |
631 | { /* 603 */ | |
632 | .pvr_mask = 0xffff0000, | |
633 | .pvr_value = 0x00030000, | |
634 | .cpu_name = "603", | |
10b35d99 | 635 | .cpu_features = CPU_FTRS_603, |
fab5db97 | 636 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 637 | .mmu_features = 0, |
1da177e4 LT |
638 | .icache_bsize = 32, |
639 | .dcache_bsize = 32, | |
80f15dc7 | 640 | .cpu_setup = __setup_cpu_603, |
47c0bd1a | 641 | .machine_check = machine_check_generic, |
80f15dc7 | 642 | .platform = "ppc603", |
1da177e4 LT |
643 | }, |
644 | { /* 603e */ | |
645 | .pvr_mask = 0xffff0000, | |
646 | .pvr_value = 0x00060000, | |
647 | .cpu_name = "603e", | |
10b35d99 | 648 | .cpu_features = CPU_FTRS_603, |
fab5db97 | 649 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 650 | .mmu_features = 0, |
1da177e4 LT |
651 | .icache_bsize = 32, |
652 | .dcache_bsize = 32, | |
80f15dc7 | 653 | .cpu_setup = __setup_cpu_603, |
47c0bd1a | 654 | .machine_check = machine_check_generic, |
80f15dc7 | 655 | .platform = "ppc603", |
1da177e4 LT |
656 | }, |
657 | { /* 603ev */ | |
658 | .pvr_mask = 0xffff0000, | |
659 | .pvr_value = 0x00070000, | |
660 | .cpu_name = "603ev", | |
10b35d99 | 661 | .cpu_features = CPU_FTRS_603, |
fab5db97 | 662 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 663 | .mmu_features = 0, |
1da177e4 LT |
664 | .icache_bsize = 32, |
665 | .dcache_bsize = 32, | |
80f15dc7 | 666 | .cpu_setup = __setup_cpu_603, |
47c0bd1a | 667 | .machine_check = machine_check_generic, |
80f15dc7 | 668 | .platform = "ppc603", |
1da177e4 LT |
669 | }, |
670 | { /* 604 */ | |
671 | .pvr_mask = 0xffff0000, | |
672 | .pvr_value = 0x00040000, | |
673 | .cpu_name = "604", | |
10b35d99 | 674 | .cpu_features = CPU_FTRS_604, |
fab5db97 | 675 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 676 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
677 | .icache_bsize = 32, |
678 | .dcache_bsize = 32, | |
679 | .num_pmcs = 2, | |
80f15dc7 | 680 | .cpu_setup = __setup_cpu_604, |
47c0bd1a | 681 | .machine_check = machine_check_generic, |
80f15dc7 | 682 | .platform = "ppc604", |
1da177e4 LT |
683 | }, |
684 | { /* 604e */ | |
685 | .pvr_mask = 0xfffff000, | |
686 | .pvr_value = 0x00090000, | |
687 | .cpu_name = "604e", | |
10b35d99 | 688 | .cpu_features = CPU_FTRS_604, |
fab5db97 | 689 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 690 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
691 | .icache_bsize = 32, |
692 | .dcache_bsize = 32, | |
693 | .num_pmcs = 4, | |
80f15dc7 | 694 | .cpu_setup = __setup_cpu_604, |
47c0bd1a | 695 | .machine_check = machine_check_generic, |
80f15dc7 | 696 | .platform = "ppc604", |
1da177e4 LT |
697 | }, |
698 | { /* 604r */ | |
699 | .pvr_mask = 0xffff0000, | |
700 | .pvr_value = 0x00090000, | |
701 | .cpu_name = "604r", | |
10b35d99 | 702 | .cpu_features = CPU_FTRS_604, |
fab5db97 | 703 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 704 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
705 | .icache_bsize = 32, |
706 | .dcache_bsize = 32, | |
707 | .num_pmcs = 4, | |
80f15dc7 | 708 | .cpu_setup = __setup_cpu_604, |
47c0bd1a | 709 | .machine_check = machine_check_generic, |
80f15dc7 | 710 | .platform = "ppc604", |
1da177e4 LT |
711 | }, |
712 | { /* 604ev */ | |
713 | .pvr_mask = 0xffff0000, | |
714 | .pvr_value = 0x000a0000, | |
715 | .cpu_name = "604ev", | |
10b35d99 | 716 | .cpu_features = CPU_FTRS_604, |
fab5db97 | 717 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 718 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
719 | .icache_bsize = 32, |
720 | .dcache_bsize = 32, | |
721 | .num_pmcs = 4, | |
80f15dc7 | 722 | .cpu_setup = __setup_cpu_604, |
47c0bd1a | 723 | .machine_check = machine_check_generic, |
80f15dc7 | 724 | .platform = "ppc604", |
1da177e4 LT |
725 | }, |
726 | { /* 740/750 (0x4202, don't support TAU ?) */ | |
727 | .pvr_mask = 0xffffffff, | |
728 | .pvr_value = 0x00084202, | |
729 | .cpu_name = "740/750", | |
10b35d99 | 730 | .cpu_features = CPU_FTRS_740_NOTAU, |
fab5db97 | 731 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 732 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
733 | .icache_bsize = 32, |
734 | .dcache_bsize = 32, | |
735 | .num_pmcs = 4, | |
80f15dc7 | 736 | .cpu_setup = __setup_cpu_750, |
47c0bd1a | 737 | .machine_check = machine_check_generic, |
80f15dc7 | 738 | .platform = "ppc750", |
1da177e4 | 739 | }, |
1da177e4 LT |
740 | { /* 750CX (80100 and 8010x?) */ |
741 | .pvr_mask = 0xfffffff0, | |
742 | .pvr_value = 0x00080100, | |
743 | .cpu_name = "750CX", | |
10b35d99 | 744 | .cpu_features = CPU_FTRS_750, |
fab5db97 | 745 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 746 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
747 | .icache_bsize = 32, |
748 | .dcache_bsize = 32, | |
749 | .num_pmcs = 4, | |
80f15dc7 | 750 | .cpu_setup = __setup_cpu_750cx, |
47c0bd1a | 751 | .machine_check = machine_check_generic, |
80f15dc7 | 752 | .platform = "ppc750", |
1da177e4 LT |
753 | }, |
754 | { /* 750CX (82201 and 82202) */ | |
755 | .pvr_mask = 0xfffffff0, | |
756 | .pvr_value = 0x00082200, | |
757 | .cpu_name = "750CX", | |
10b35d99 | 758 | .cpu_features = CPU_FTRS_750, |
fab5db97 | 759 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 760 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
761 | .icache_bsize = 32, |
762 | .dcache_bsize = 32, | |
763 | .num_pmcs = 4, | |
b950bdd0 | 764 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 765 | .cpu_setup = __setup_cpu_750cx, |
47c0bd1a | 766 | .machine_check = machine_check_generic, |
80f15dc7 | 767 | .platform = "ppc750", |
1da177e4 LT |
768 | }, |
769 | { /* 750CXe (82214) */ | |
770 | .pvr_mask = 0xfffffff0, | |
771 | .pvr_value = 0x00082210, | |
772 | .cpu_name = "750CXe", | |
10b35d99 | 773 | .cpu_features = CPU_FTRS_750, |
fab5db97 | 774 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 775 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
776 | .icache_bsize = 32, |
777 | .dcache_bsize = 32, | |
778 | .num_pmcs = 4, | |
b950bdd0 | 779 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 780 | .cpu_setup = __setup_cpu_750cx, |
47c0bd1a | 781 | .machine_check = machine_check_generic, |
80f15dc7 | 782 | .platform = "ppc750", |
1da177e4 | 783 | }, |
7c31625a AO |
784 | { /* 750CXe "Gekko" (83214) */ |
785 | .pvr_mask = 0xffffffff, | |
786 | .pvr_value = 0x00083214, | |
787 | .cpu_name = "750CXe", | |
10b35d99 | 788 | .cpu_features = CPU_FTRS_750, |
fab5db97 | 789 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 790 | .mmu_features = MMU_FTR_HPTE_TABLE, |
7c31625a AO |
791 | .icache_bsize = 32, |
792 | .dcache_bsize = 32, | |
793 | .num_pmcs = 4, | |
b950bdd0 | 794 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 795 | .cpu_setup = __setup_cpu_750cx, |
47c0bd1a | 796 | .machine_check = machine_check_generic, |
80f15dc7 | 797 | .platform = "ppc750", |
7c31625a | 798 | }, |
45158dc7 AH |
799 | { /* 750CL (and "Broadway") */ |
800 | .pvr_mask = 0xfffff0e0, | |
801 | .pvr_value = 0x00087000, | |
cfbff8a3 | 802 | .cpu_name = "750CL", |
a14c4508 | 803 | .cpu_features = CPU_FTRS_750CL, |
cfbff8a3 | 804 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 805 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
cfbff8a3 JM |
806 | .icache_bsize = 32, |
807 | .dcache_bsize = 32, | |
808 | .num_pmcs = 4, | |
b950bdd0 | 809 | .pmc_type = PPC_PMC_IBM, |
a14c4508 | 810 | .cpu_setup = __setup_cpu_750, |
47c0bd1a | 811 | .machine_check = machine_check_generic, |
cfbff8a3 | 812 | .platform = "ppc750", |
04f56534 DT |
813 | .oprofile_cpu_type = "ppc/750", |
814 | .oprofile_type = PPC_OPROFILE_G4, | |
cfbff8a3 | 815 | }, |
ac1ff047 AO |
816 | { /* 745/755 */ |
817 | .pvr_mask = 0xfffff000, | |
818 | .pvr_value = 0x00083000, | |
819 | .cpu_name = "745/755", | |
10b35d99 | 820 | .cpu_features = CPU_FTRS_750, |
fab5db97 | 821 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 822 | .mmu_features = MMU_FTR_HPTE_TABLE, |
ac1ff047 AO |
823 | .icache_bsize = 32, |
824 | .dcache_bsize = 32, | |
825 | .num_pmcs = 4, | |
b950bdd0 | 826 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 827 | .cpu_setup = __setup_cpu_750, |
47c0bd1a | 828 | .machine_check = machine_check_generic, |
80f15dc7 | 829 | .platform = "ppc750", |
ac1ff047 | 830 | }, |
1da177e4 LT |
831 | { /* 750FX rev 1.x */ |
832 | .pvr_mask = 0xffffff00, | |
833 | .pvr_value = 0x70000100, | |
834 | .cpu_name = "750FX", | |
10b35d99 | 835 | .cpu_features = CPU_FTRS_750FX1, |
fab5db97 | 836 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 837 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
838 | .icache_bsize = 32, |
839 | .dcache_bsize = 32, | |
840 | .num_pmcs = 4, | |
b950bdd0 | 841 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 842 | .cpu_setup = __setup_cpu_750, |
47c0bd1a | 843 | .machine_check = machine_check_generic, |
80f15dc7 | 844 | .platform = "ppc750", |
7c9583a4 OP |
845 | .oprofile_cpu_type = "ppc/750", |
846 | .oprofile_type = PPC_OPROFILE_G4, | |
1da177e4 LT |
847 | }, |
848 | { /* 750FX rev 2.0 must disable HID0[DPM] */ | |
849 | .pvr_mask = 0xffffffff, | |
850 | .pvr_value = 0x70000200, | |
851 | .cpu_name = "750FX", | |
10b35d99 | 852 | .cpu_features = CPU_FTRS_750FX2, |
fab5db97 | 853 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 854 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
855 | .icache_bsize = 32, |
856 | .dcache_bsize = 32, | |
857 | .num_pmcs = 4, | |
b950bdd0 | 858 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 859 | .cpu_setup = __setup_cpu_750, |
47c0bd1a | 860 | .machine_check = machine_check_generic, |
80f15dc7 | 861 | .platform = "ppc750", |
7c9583a4 OP |
862 | .oprofile_cpu_type = "ppc/750", |
863 | .oprofile_type = PPC_OPROFILE_G4, | |
1da177e4 LT |
864 | }, |
865 | { /* 750FX (All revs except 2.0) */ | |
866 | .pvr_mask = 0xffff0000, | |
867 | .pvr_value = 0x70000000, | |
868 | .cpu_name = "750FX", | |
10b35d99 | 869 | .cpu_features = CPU_FTRS_750FX, |
fab5db97 | 870 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 871 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
872 | .icache_bsize = 32, |
873 | .dcache_bsize = 32, | |
874 | .num_pmcs = 4, | |
b950bdd0 | 875 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 876 | .cpu_setup = __setup_cpu_750fx, |
47c0bd1a | 877 | .machine_check = machine_check_generic, |
80f15dc7 | 878 | .platform = "ppc750", |
7c9583a4 OP |
879 | .oprofile_cpu_type = "ppc/750", |
880 | .oprofile_type = PPC_OPROFILE_G4, | |
1da177e4 LT |
881 | }, |
882 | { /* 750GX */ | |
883 | .pvr_mask = 0xffff0000, | |
884 | .pvr_value = 0x70020000, | |
885 | .cpu_name = "750GX", | |
10b35d99 | 886 | .cpu_features = CPU_FTRS_750GX, |
fab5db97 | 887 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 888 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
889 | .icache_bsize = 32, |
890 | .dcache_bsize = 32, | |
891 | .num_pmcs = 4, | |
b950bdd0 | 892 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 893 | .cpu_setup = __setup_cpu_750fx, |
47c0bd1a | 894 | .machine_check = machine_check_generic, |
80f15dc7 | 895 | .platform = "ppc750", |
7c9583a4 OP |
896 | .oprofile_cpu_type = "ppc/750", |
897 | .oprofile_type = PPC_OPROFILE_G4, | |
1da177e4 LT |
898 | }, |
899 | { /* 740/750 (L2CR bit need fixup for 740) */ | |
900 | .pvr_mask = 0xffff0000, | |
901 | .pvr_value = 0x00080000, | |
902 | .cpu_name = "740/750", | |
10b35d99 | 903 | .cpu_features = CPU_FTRS_740, |
fab5db97 | 904 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 905 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
906 | .icache_bsize = 32, |
907 | .dcache_bsize = 32, | |
908 | .num_pmcs = 4, | |
b950bdd0 | 909 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 910 | .cpu_setup = __setup_cpu_750, |
47c0bd1a | 911 | .machine_check = machine_check_generic, |
80f15dc7 | 912 | .platform = "ppc750", |
1da177e4 LT |
913 | }, |
914 | { /* 7400 rev 1.1 ? (no TAU) */ | |
915 | .pvr_mask = 0xffffffff, | |
916 | .pvr_value = 0x000c1101, | |
917 | .cpu_name = "7400 (1.1)", | |
10b35d99 | 918 | .cpu_features = CPU_FTRS_7400_NOTAU, |
fab5db97 PM |
919 | .cpu_user_features = COMMON_USER | |
920 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 921 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
922 | .icache_bsize = 32, |
923 | .dcache_bsize = 32, | |
924 | .num_pmcs = 4, | |
b950bdd0 | 925 | .pmc_type = PPC_PMC_G4, |
80f15dc7 | 926 | .cpu_setup = __setup_cpu_7400, |
47c0bd1a | 927 | .machine_check = machine_check_generic, |
80f15dc7 | 928 | .platform = "ppc7400", |
1da177e4 LT |
929 | }, |
930 | { /* 7400 */ | |
931 | .pvr_mask = 0xffff0000, | |
932 | .pvr_value = 0x000c0000, | |
933 | .cpu_name = "7400", | |
10b35d99 | 934 | .cpu_features = CPU_FTRS_7400, |
fab5db97 PM |
935 | .cpu_user_features = COMMON_USER | |
936 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 937 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
938 | .icache_bsize = 32, |
939 | .dcache_bsize = 32, | |
940 | .num_pmcs = 4, | |
b950bdd0 | 941 | .pmc_type = PPC_PMC_G4, |
80f15dc7 | 942 | .cpu_setup = __setup_cpu_7400, |
47c0bd1a | 943 | .machine_check = machine_check_generic, |
80f15dc7 | 944 | .platform = "ppc7400", |
1da177e4 LT |
945 | }, |
946 | { /* 7410 */ | |
947 | .pvr_mask = 0xffff0000, | |
948 | .pvr_value = 0x800c0000, | |
949 | .cpu_name = "7410", | |
10b35d99 | 950 | .cpu_features = CPU_FTRS_7400, |
fab5db97 PM |
951 | .cpu_user_features = COMMON_USER | |
952 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 953 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
954 | .icache_bsize = 32, |
955 | .dcache_bsize = 32, | |
956 | .num_pmcs = 4, | |
b950bdd0 | 957 | .pmc_type = PPC_PMC_G4, |
80f15dc7 | 958 | .cpu_setup = __setup_cpu_7410, |
47c0bd1a | 959 | .machine_check = machine_check_generic, |
80f15dc7 | 960 | .platform = "ppc7400", |
1da177e4 LT |
961 | }, |
962 | { /* 7450 2.0 - no doze/nap */ | |
963 | .pvr_mask = 0xffffffff, | |
964 | .pvr_value = 0x80000200, | |
965 | .cpu_name = "7450", | |
10b35d99 | 966 | .cpu_features = CPU_FTRS_7450_20, |
fab5db97 PM |
967 | .cpu_user_features = COMMON_USER | |
968 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 969 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
970 | .icache_bsize = 32, |
971 | .dcache_bsize = 32, | |
972 | .num_pmcs = 6, | |
b950bdd0 | 973 | .pmc_type = PPC_PMC_G4, |
555d97ac | 974 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 975 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 976 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 977 | .machine_check = machine_check_generic, |
80f15dc7 | 978 | .platform = "ppc7450", |
1da177e4 LT |
979 | }, |
980 | { /* 7450 2.1 */ | |
981 | .pvr_mask = 0xffffffff, | |
982 | .pvr_value = 0x80000201, | |
983 | .cpu_name = "7450", | |
10b35d99 | 984 | .cpu_features = CPU_FTRS_7450_21, |
fab5db97 PM |
985 | .cpu_user_features = COMMON_USER | |
986 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 987 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
988 | .icache_bsize = 32, |
989 | .dcache_bsize = 32, | |
990 | .num_pmcs = 6, | |
b950bdd0 | 991 | .pmc_type = PPC_PMC_G4, |
555d97ac | 992 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 993 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 994 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 995 | .machine_check = machine_check_generic, |
80f15dc7 | 996 | .platform = "ppc7450", |
1da177e4 LT |
997 | }, |
998 | { /* 7450 2.3 and newer */ | |
999 | .pvr_mask = 0xffff0000, | |
1000 | .pvr_value = 0x80000000, | |
1001 | .cpu_name = "7450", | |
10b35d99 | 1002 | .cpu_features = CPU_FTRS_7450_23, |
fab5db97 PM |
1003 | .cpu_user_features = COMMON_USER | |
1004 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 1005 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
1006 | .icache_bsize = 32, |
1007 | .dcache_bsize = 32, | |
1008 | .num_pmcs = 6, | |
b950bdd0 | 1009 | .pmc_type = PPC_PMC_G4, |
555d97ac | 1010 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 1011 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 1012 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 1013 | .machine_check = machine_check_generic, |
80f15dc7 | 1014 | .platform = "ppc7450", |
1da177e4 LT |
1015 | }, |
1016 | { /* 7455 rev 1.x */ | |
1017 | .pvr_mask = 0xffffff00, | |
1018 | .pvr_value = 0x80010100, | |
1019 | .cpu_name = "7455", | |
10b35d99 | 1020 | .cpu_features = CPU_FTRS_7455_1, |
fab5db97 PM |
1021 | .cpu_user_features = COMMON_USER | |
1022 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 1023 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
1024 | .icache_bsize = 32, |
1025 | .dcache_bsize = 32, | |
1026 | .num_pmcs = 6, | |
b950bdd0 | 1027 | .pmc_type = PPC_PMC_G4, |
555d97ac | 1028 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 1029 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 1030 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 1031 | .machine_check = machine_check_generic, |
80f15dc7 | 1032 | .platform = "ppc7450", |
1da177e4 LT |
1033 | }, |
1034 | { /* 7455 rev 2.0 */ | |
1035 | .pvr_mask = 0xffffffff, | |
1036 | .pvr_value = 0x80010200, | |
1037 | .cpu_name = "7455", | |
10b35d99 | 1038 | .cpu_features = CPU_FTRS_7455_20, |
fab5db97 PM |
1039 | .cpu_user_features = COMMON_USER | |
1040 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 1041 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
1042 | .icache_bsize = 32, |
1043 | .dcache_bsize = 32, | |
1044 | .num_pmcs = 6, | |
b950bdd0 | 1045 | .pmc_type = PPC_PMC_G4, |
555d97ac | 1046 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 1047 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 1048 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 1049 | .machine_check = machine_check_generic, |
80f15dc7 | 1050 | .platform = "ppc7450", |
1da177e4 LT |
1051 | }, |
1052 | { /* 7455 others */ | |
1053 | .pvr_mask = 0xffff0000, | |
1054 | .pvr_value = 0x80010000, | |
1055 | .cpu_name = "7455", | |
10b35d99 | 1056 | .cpu_features = CPU_FTRS_7455, |
fab5db97 PM |
1057 | .cpu_user_features = COMMON_USER | |
1058 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 1059 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
1060 | .icache_bsize = 32, |
1061 | .dcache_bsize = 32, | |
1062 | .num_pmcs = 6, | |
b950bdd0 | 1063 | .pmc_type = PPC_PMC_G4, |
555d97ac | 1064 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 1065 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 1066 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 1067 | .machine_check = machine_check_generic, |
80f15dc7 | 1068 | .platform = "ppc7450", |
1da177e4 LT |
1069 | }, |
1070 | { /* 7447/7457 Rev 1.0 */ | |
1071 | .pvr_mask = 0xffffffff, | |
1072 | .pvr_value = 0x80020100, | |
1073 | .cpu_name = "7447/7457", | |
10b35d99 | 1074 | .cpu_features = CPU_FTRS_7447_10, |
fab5db97 PM |
1075 | .cpu_user_features = COMMON_USER | |
1076 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 1077 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
1078 | .icache_bsize = 32, |
1079 | .dcache_bsize = 32, | |
1080 | .num_pmcs = 6, | |
b950bdd0 | 1081 | .pmc_type = PPC_PMC_G4, |
555d97ac | 1082 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 1083 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 1084 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 1085 | .machine_check = machine_check_generic, |
80f15dc7 | 1086 | .platform = "ppc7450", |
1da177e4 LT |
1087 | }, |
1088 | { /* 7447/7457 Rev 1.1 */ | |
1089 | .pvr_mask = 0xffffffff, | |
1090 | .pvr_value = 0x80020101, | |
1091 | .cpu_name = "7447/7457", | |
10b35d99 | 1092 | .cpu_features = CPU_FTRS_7447_10, |
fab5db97 PM |
1093 | .cpu_user_features = COMMON_USER | |
1094 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 1095 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
1096 | .icache_bsize = 32, |
1097 | .dcache_bsize = 32, | |
1098 | .num_pmcs = 6, | |
b950bdd0 | 1099 | .pmc_type = PPC_PMC_G4, |
555d97ac | 1100 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 1101 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 1102 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 1103 | .machine_check = machine_check_generic, |
80f15dc7 | 1104 | .platform = "ppc7450", |
1da177e4 LT |
1105 | }, |
1106 | { /* 7447/7457 Rev 1.2 and later */ | |
1107 | .pvr_mask = 0xffff0000, | |
1108 | .pvr_value = 0x80020000, | |
1109 | .cpu_name = "7447/7457", | |
10b35d99 | 1110 | .cpu_features = CPU_FTRS_7447, |
fab5db97 | 1111 | .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, |
7c03d653 | 1112 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
1113 | .icache_bsize = 32, |
1114 | .dcache_bsize = 32, | |
1115 | .num_pmcs = 6, | |
b950bdd0 | 1116 | .pmc_type = PPC_PMC_G4, |
555d97ac | 1117 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 1118 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 1119 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 1120 | .machine_check = machine_check_generic, |
80f15dc7 | 1121 | .platform = "ppc7450", |
1da177e4 LT |
1122 | }, |
1123 | { /* 7447A */ | |
1124 | .pvr_mask = 0xffff0000, | |
1125 | .pvr_value = 0x80030000, | |
1126 | .cpu_name = "7447A", | |
10b35d99 | 1127 | .cpu_features = CPU_FTRS_7447A, |
fab5db97 PM |
1128 | .cpu_user_features = COMMON_USER | |
1129 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 1130 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
bbde630b KG |
1131 | .icache_bsize = 32, |
1132 | .dcache_bsize = 32, | |
1133 | .num_pmcs = 6, | |
b950bdd0 | 1134 | .pmc_type = PPC_PMC_G4, |
555d97ac | 1135 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 1136 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 1137 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 1138 | .machine_check = machine_check_generic, |
80f15dc7 | 1139 | .platform = "ppc7450", |
bbde630b KG |
1140 | }, |
1141 | { /* 7448 */ | |
1142 | .pvr_mask = 0xffff0000, | |
1143 | .pvr_value = 0x80040000, | |
1144 | .cpu_name = "7448", | |
3d372548 | 1145 | .cpu_features = CPU_FTRS_7448, |
fab5db97 PM |
1146 | .cpu_user_features = COMMON_USER | |
1147 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 1148 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
1149 | .icache_bsize = 32, |
1150 | .dcache_bsize = 32, | |
1151 | .num_pmcs = 6, | |
b950bdd0 | 1152 | .pmc_type = PPC_PMC_G4, |
555d97ac | 1153 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 1154 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 1155 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 1156 | .machine_check = machine_check_generic, |
80f15dc7 | 1157 | .platform = "ppc7450", |
1da177e4 LT |
1158 | }, |
1159 | { /* 82xx (8240, 8245, 8260 are all 603e cores) */ | |
1160 | .pvr_mask = 0x7fff0000, | |
1161 | .pvr_value = 0x00810000, | |
1162 | .cpu_name = "82xx", | |
10b35d99 | 1163 | .cpu_features = CPU_FTRS_82XX, |
4920960f | 1164 | .cpu_user_features = COMMON_USER, |
7c03d653 | 1165 | .mmu_features = 0, |
1da177e4 LT |
1166 | .icache_bsize = 32, |
1167 | .dcache_bsize = 32, | |
80f15dc7 | 1168 | .cpu_setup = __setup_cpu_603, |
47c0bd1a | 1169 | .machine_check = machine_check_generic, |
80f15dc7 | 1170 | .platform = "ppc603", |
1da177e4 LT |
1171 | }, |
1172 | { /* All G2_LE (603e core, plus some) have the same pvr */ | |
1173 | .pvr_mask = 0x7fff0000, | |
1174 | .pvr_value = 0x00820000, | |
1175 | .cpu_name = "G2_LE", | |
10b35d99 | 1176 | .cpu_features = CPU_FTRS_G2_LE, |
4920960f | 1177 | .cpu_user_features = COMMON_USER, |
7c03d653 | 1178 | .mmu_features = MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
1179 | .icache_bsize = 32, |
1180 | .dcache_bsize = 32, | |
80f15dc7 | 1181 | .cpu_setup = __setup_cpu_603, |
47c0bd1a | 1182 | .machine_check = machine_check_generic, |
80f15dc7 | 1183 | .platform = "ppc603", |
1da177e4 | 1184 | }, |
6c4a2501 | 1185 | { /* e300c1 (a 603e core, plus some) on 83xx */ |
1da177e4 LT |
1186 | .pvr_mask = 0x7fff0000, |
1187 | .pvr_value = 0x00830000, | |
6c4a2501 | 1188 | .cpu_name = "e300c1", |
10b35d99 | 1189 | .cpu_features = CPU_FTRS_E300, |
4920960f | 1190 | .cpu_user_features = COMMON_USER, |
7c03d653 | 1191 | .mmu_features = MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
1192 | .icache_bsize = 32, |
1193 | .dcache_bsize = 32, | |
80f15dc7 | 1194 | .cpu_setup = __setup_cpu_603, |
47c0bd1a | 1195 | .machine_check = machine_check_generic, |
80f15dc7 | 1196 | .platform = "ppc603", |
1da177e4 | 1197 | }, |
6c4a2501 KP |
1198 | { /* e300c2 (an e300c1 core, plus some, minus FPU) on 83xx */ |
1199 | .pvr_mask = 0x7fff0000, | |
1200 | .pvr_value = 0x00840000, | |
1201 | .cpu_name = "e300c2", | |
aa42c69c | 1202 | .cpu_features = CPU_FTRS_E300C2, |
6c4a2501 | 1203 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
2319f123 KG |
1204 | .mmu_features = MMU_FTR_USE_HIGH_BATS | |
1205 | MMU_FTR_NEED_DTLB_SW_LRU, | |
6c4a2501 KP |
1206 | .icache_bsize = 32, |
1207 | .dcache_bsize = 32, | |
1208 | .cpu_setup = __setup_cpu_603, | |
47c0bd1a | 1209 | .machine_check = machine_check_generic, |
6c4a2501 KP |
1210 | .platform = "ppc603", |
1211 | }, | |
a58d5244 | 1212 | { /* e300c3 (e300c1, plus one IU, half cache size) on 83xx */ |
57933f8f SW |
1213 | .pvr_mask = 0x7fff0000, |
1214 | .pvr_value = 0x00850000, | |
1215 | .cpu_name = "e300c3", | |
1216 | .cpu_features = CPU_FTRS_E300, | |
1217 | .cpu_user_features = COMMON_USER, | |
2319f123 KG |
1218 | .mmu_features = MMU_FTR_USE_HIGH_BATS | |
1219 | MMU_FTR_NEED_DTLB_SW_LRU, | |
57933f8f SW |
1220 | .icache_bsize = 32, |
1221 | .dcache_bsize = 32, | |
1222 | .cpu_setup = __setup_cpu_603, | |
974ff4e2 | 1223 | .machine_check = machine_check_generic, |
1347a2c1 AF |
1224 | .num_pmcs = 4, |
1225 | .oprofile_cpu_type = "ppc/e300", | |
1226 | .oprofile_type = PPC_OPROFILE_FSL_EMB, | |
57933f8f SW |
1227 | .platform = "ppc603", |
1228 | }, | |
a58d5244 LY |
1229 | { /* e300c4 (e300c1, plus one IU) */ |
1230 | .pvr_mask = 0x7fff0000, | |
1231 | .pvr_value = 0x00860000, | |
1232 | .cpu_name = "e300c4", | |
1233 | .cpu_features = CPU_FTRS_E300, | |
1234 | .cpu_user_features = COMMON_USER, | |
2319f123 KG |
1235 | .mmu_features = MMU_FTR_USE_HIGH_BATS | |
1236 | MMU_FTR_NEED_DTLB_SW_LRU, | |
a58d5244 LY |
1237 | .icache_bsize = 32, |
1238 | .dcache_bsize = 32, | |
1239 | .cpu_setup = __setup_cpu_603, | |
47c0bd1a | 1240 | .machine_check = machine_check_generic, |
1347a2c1 AF |
1241 | .num_pmcs = 4, |
1242 | .oprofile_cpu_type = "ppc/e300", | |
1243 | .oprofile_type = PPC_OPROFILE_FSL_EMB, | |
a58d5244 LY |
1244 | .platform = "ppc603", |
1245 | }, | |
1da177e4 LT |
1246 | { /* default match, we assume split I/D cache & TB (non-601)... */ |
1247 | .pvr_mask = 0x00000000, | |
1248 | .pvr_value = 0x00000000, | |
1249 | .cpu_name = "(generic PPC)", | |
10b35d99 | 1250 | .cpu_features = CPU_FTRS_CLASSIC32, |
4920960f | 1251 | .cpu_user_features = COMMON_USER, |
7c03d653 | 1252 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
1253 | .icache_bsize = 32, |
1254 | .dcache_bsize = 32, | |
47c0bd1a | 1255 | .machine_check = machine_check_generic, |
80f15dc7 | 1256 | .platform = "ppc603", |
1da177e4 | 1257 | }, |
1e07a0a0 | 1258 | #endif /* CONFIG_PPC_BOOK3S_32 */ |
1da177e4 LT |
1259 | #ifdef CONFIG_8xx |
1260 | { /* 8xx */ | |
1261 | .pvr_mask = 0xffff0000, | |
1262 | .pvr_value = 0x00500000, | |
1263 | .cpu_name = "8xx", | |
1264 | /* CPU_FTR_MAYBE_CAN_DOZE is possible, | |
1265 | * if the 8xx code is there.... */ | |
10b35d99 | 1266 | .cpu_features = CPU_FTRS_8XX, |
1da177e4 | 1267 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
7c03d653 | 1268 | .mmu_features = MMU_FTR_TYPE_8xx, |
1da177e4 LT |
1269 | .icache_bsize = 16, |
1270 | .dcache_bsize = 16, | |
e627f8dc | 1271 | .machine_check = machine_check_8xx, |
80f15dc7 | 1272 | .platform = "ppc823", |
1da177e4 LT |
1273 | }, |
1274 | #endif /* CONFIG_8xx */ | |
1275 | #ifdef CONFIG_40x | |
1276 | { /* 403GC */ | |
1277 | .pvr_mask = 0xffffff00, | |
1278 | .pvr_value = 0x00200200, | |
1279 | .cpu_name = "403GC", | |
10b35d99 | 1280 | .cpu_features = CPU_FTRS_40X, |
1da177e4 | 1281 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
7c03d653 | 1282 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1283 | .icache_bsize = 16, |
1284 | .dcache_bsize = 16, | |
47c0bd1a | 1285 | .machine_check = machine_check_4xx, |
80f15dc7 | 1286 | .platform = "ppc403", |
1da177e4 LT |
1287 | }, |
1288 | { /* 403GCX */ | |
1289 | .pvr_mask = 0xffffff00, | |
1290 | .pvr_value = 0x00201400, | |
1291 | .cpu_name = "403GCX", | |
10b35d99 | 1292 | .cpu_features = CPU_FTRS_40X, |
d8e998c5 BH |
1293 | .cpu_user_features = PPC_FEATURE_32 | |
1294 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB, | |
7c03d653 | 1295 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1296 | .icache_bsize = 16, |
1297 | .dcache_bsize = 16, | |
47c0bd1a | 1298 | .machine_check = machine_check_4xx, |
80f15dc7 | 1299 | .platform = "ppc403", |
1da177e4 LT |
1300 | }, |
1301 | { /* 403G ?? */ | |
1302 | .pvr_mask = 0xffff0000, | |
1303 | .pvr_value = 0x00200000, | |
1304 | .cpu_name = "403G ??", | |
10b35d99 | 1305 | .cpu_features = CPU_FTRS_40X, |
1da177e4 | 1306 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
7c03d653 | 1307 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1308 | .icache_bsize = 16, |
1309 | .dcache_bsize = 16, | |
47c0bd1a | 1310 | .machine_check = machine_check_4xx, |
80f15dc7 | 1311 | .platform = "ppc403", |
1da177e4 LT |
1312 | }, |
1313 | { /* 405GP */ | |
1314 | .pvr_mask = 0xffff0000, | |
1315 | .pvr_value = 0x40110000, | |
1316 | .cpu_name = "405GP", | |
10b35d99 | 1317 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1318 | .cpu_user_features = PPC_FEATURE_32 | |
1319 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1320 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1321 | .icache_bsize = 32, |
1322 | .dcache_bsize = 32, | |
47c0bd1a | 1323 | .machine_check = machine_check_4xx, |
80f15dc7 | 1324 | .platform = "ppc405", |
1da177e4 LT |
1325 | }, |
1326 | { /* STB 03xxx */ | |
1327 | .pvr_mask = 0xffff0000, | |
1328 | .pvr_value = 0x40130000, | |
1329 | .cpu_name = "STB03xxx", | |
10b35d99 | 1330 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1331 | .cpu_user_features = PPC_FEATURE_32 | |
1332 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1333 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1334 | .icache_bsize = 32, |
1335 | .dcache_bsize = 32, | |
47c0bd1a | 1336 | .machine_check = machine_check_4xx, |
80f15dc7 | 1337 | .platform = "ppc405", |
1da177e4 LT |
1338 | }, |
1339 | { /* STB 04xxx */ | |
1340 | .pvr_mask = 0xffff0000, | |
1341 | .pvr_value = 0x41810000, | |
1342 | .cpu_name = "STB04xxx", | |
10b35d99 | 1343 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1344 | .cpu_user_features = PPC_FEATURE_32 | |
1345 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1346 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1347 | .icache_bsize = 32, |
1348 | .dcache_bsize = 32, | |
47c0bd1a | 1349 | .machine_check = machine_check_4xx, |
80f15dc7 | 1350 | .platform = "ppc405", |
1da177e4 LT |
1351 | }, |
1352 | { /* NP405L */ | |
1353 | .pvr_mask = 0xffff0000, | |
1354 | .pvr_value = 0x41610000, | |
1355 | .cpu_name = "NP405L", | |
10b35d99 | 1356 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1357 | .cpu_user_features = PPC_FEATURE_32 | |
1358 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1359 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1360 | .icache_bsize = 32, |
1361 | .dcache_bsize = 32, | |
47c0bd1a | 1362 | .machine_check = machine_check_4xx, |
80f15dc7 | 1363 | .platform = "ppc405", |
1da177e4 LT |
1364 | }, |
1365 | { /* NP4GS3 */ | |
1366 | .pvr_mask = 0xffff0000, | |
1367 | .pvr_value = 0x40B10000, | |
1368 | .cpu_name = "NP4GS3", | |
10b35d99 | 1369 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1370 | .cpu_user_features = PPC_FEATURE_32 | |
1371 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1372 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1373 | .icache_bsize = 32, |
1374 | .dcache_bsize = 32, | |
47c0bd1a | 1375 | .machine_check = machine_check_4xx, |
80f15dc7 | 1376 | .platform = "ppc405", |
1da177e4 LT |
1377 | }, |
1378 | { /* NP405H */ | |
1379 | .pvr_mask = 0xffff0000, | |
1380 | .pvr_value = 0x41410000, | |
1381 | .cpu_name = "NP405H", | |
10b35d99 | 1382 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1383 | .cpu_user_features = PPC_FEATURE_32 | |
1384 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1385 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1386 | .icache_bsize = 32, |
1387 | .dcache_bsize = 32, | |
47c0bd1a | 1388 | .machine_check = machine_check_4xx, |
80f15dc7 | 1389 | .platform = "ppc405", |
1da177e4 LT |
1390 | }, |
1391 | { /* 405GPr */ | |
1392 | .pvr_mask = 0xffff0000, | |
1393 | .pvr_value = 0x50910000, | |
1394 | .cpu_name = "405GPr", | |
10b35d99 | 1395 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1396 | .cpu_user_features = PPC_FEATURE_32 | |
1397 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1398 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1399 | .icache_bsize = 32, |
1400 | .dcache_bsize = 32, | |
47c0bd1a | 1401 | .machine_check = machine_check_4xx, |
80f15dc7 | 1402 | .platform = "ppc405", |
1da177e4 LT |
1403 | }, |
1404 | { /* STBx25xx */ | |
1405 | .pvr_mask = 0xffff0000, | |
1406 | .pvr_value = 0x51510000, | |
1407 | .cpu_name = "STBx25xx", | |
10b35d99 | 1408 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1409 | .cpu_user_features = PPC_FEATURE_32 | |
1410 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1411 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1412 | .icache_bsize = 32, |
1413 | .dcache_bsize = 32, | |
47c0bd1a | 1414 | .machine_check = machine_check_4xx, |
80f15dc7 | 1415 | .platform = "ppc405", |
1da177e4 LT |
1416 | }, |
1417 | { /* 405LP */ | |
1418 | .pvr_mask = 0xffff0000, | |
1419 | .pvr_value = 0x41F10000, | |
1420 | .cpu_name = "405LP", | |
10b35d99 | 1421 | .cpu_features = CPU_FTRS_40X, |
1da177e4 | 1422 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
7c03d653 | 1423 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1424 | .icache_bsize = 32, |
1425 | .dcache_bsize = 32, | |
47c0bd1a | 1426 | .machine_check = machine_check_4xx, |
80f15dc7 | 1427 | .platform = "ppc405", |
1da177e4 LT |
1428 | }, |
1429 | { /* Xilinx Virtex-II Pro */ | |
72646c7f | 1430 | .pvr_mask = 0xfffff000, |
1da177e4 LT |
1431 | .pvr_value = 0x20010000, |
1432 | .cpu_name = "Virtex-II Pro", | |
10b35d99 | 1433 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1434 | .cpu_user_features = PPC_FEATURE_32 | |
1435 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1436 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1437 | .icache_bsize = 32, |
1438 | .dcache_bsize = 32, | |
47c0bd1a | 1439 | .machine_check = machine_check_4xx, |
80f15dc7 | 1440 | .platform = "ppc405", |
1da177e4 | 1441 | }, |
72646c7f GL |
1442 | { /* Xilinx Virtex-4 FX */ |
1443 | .pvr_mask = 0xfffff000, | |
1444 | .pvr_value = 0x20011000, | |
1445 | .cpu_name = "Virtex-4 FX", | |
1446 | .cpu_features = CPU_FTRS_40X, | |
1447 | .cpu_user_features = PPC_FEATURE_32 | | |
1448 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1449 | .mmu_features = MMU_FTR_TYPE_40x, |
72646c7f GL |
1450 | .icache_bsize = 32, |
1451 | .dcache_bsize = 32, | |
47c0bd1a | 1452 | .machine_check = machine_check_4xx, |
838fdb4d | 1453 | .platform = "ppc405", |
72646c7f | 1454 | }, |
ad95d609 ES |
1455 | { /* 405EP */ |
1456 | .pvr_mask = 0xffff0000, | |
1457 | .pvr_value = 0x51210000, | |
1458 | .cpu_name = "405EP", | |
10b35d99 | 1459 | .cpu_features = CPU_FTRS_40X, |
5d8476c8 SR |
1460 | .cpu_user_features = PPC_FEATURE_32 | |
1461 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1462 | .mmu_features = MMU_FTR_TYPE_40x, |
5d8476c8 SR |
1463 | .icache_bsize = 32, |
1464 | .dcache_bsize = 32, | |
47c0bd1a | 1465 | .machine_check = machine_check_4xx, |
5d8476c8 SR |
1466 | .platform = "ppc405", |
1467 | }, | |
ff349103 LN |
1468 | { /* 405EX Rev. A/B with Security */ |
1469 | .pvr_mask = 0xffff000f, | |
1470 | .pvr_value = 0x12910007, | |
1471 | .cpu_name = "405EX Rev. A/B", | |
5d8476c8 | 1472 | .cpu_features = CPU_FTRS_40X, |
ad95d609 ES |
1473 | .cpu_user_features = PPC_FEATURE_32 | |
1474 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1475 | .mmu_features = MMU_FTR_TYPE_40x, |
ad95d609 ES |
1476 | .icache_bsize = 32, |
1477 | .dcache_bsize = 32, | |
47c0bd1a | 1478 | .machine_check = machine_check_4xx, |
80f15dc7 | 1479 | .platform = "ppc405", |
ad95d609 | 1480 | }, |
ff349103 LN |
1481 | { /* 405EX Rev. C without Security */ |
1482 | .pvr_mask = 0xffff000f, | |
1483 | .pvr_value = 0x1291000d, | |
1484 | .cpu_name = "405EX Rev. C", | |
1485 | .cpu_features = CPU_FTRS_40X, | |
1486 | .cpu_user_features = PPC_FEATURE_32 | | |
1487 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
1488 | .mmu_features = MMU_FTR_TYPE_40x, | |
1489 | .icache_bsize = 32, | |
1490 | .dcache_bsize = 32, | |
1491 | .machine_check = machine_check_4xx, | |
1492 | .platform = "ppc405", | |
1493 | }, | |
1494 | { /* 405EX Rev. C with Security */ | |
1495 | .pvr_mask = 0xffff000f, | |
1496 | .pvr_value = 0x1291000f, | |
1497 | .cpu_name = "405EX Rev. C", | |
1498 | .cpu_features = CPU_FTRS_40X, | |
1499 | .cpu_user_features = PPC_FEATURE_32 | | |
1500 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
1501 | .mmu_features = MMU_FTR_TYPE_40x, | |
1502 | .icache_bsize = 32, | |
1503 | .dcache_bsize = 32, | |
1504 | .machine_check = machine_check_4xx, | |
1505 | .platform = "ppc405", | |
1506 | }, | |
1507 | { /* 405EX Rev. D without Security */ | |
1508 | .pvr_mask = 0xffff000f, | |
1509 | .pvr_value = 0x12910003, | |
1510 | .cpu_name = "405EX Rev. D", | |
1511 | .cpu_features = CPU_FTRS_40X, | |
1512 | .cpu_user_features = PPC_FEATURE_32 | | |
1513 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
1514 | .mmu_features = MMU_FTR_TYPE_40x, | |
1515 | .icache_bsize = 32, | |
1516 | .dcache_bsize = 32, | |
1517 | .machine_check = machine_check_4xx, | |
1518 | .platform = "ppc405", | |
1519 | }, | |
1520 | { /* 405EX Rev. D with Security */ | |
1521 | .pvr_mask = 0xffff000f, | |
1522 | .pvr_value = 0x12910005, | |
1523 | .cpu_name = "405EX Rev. D", | |
1524 | .cpu_features = CPU_FTRS_40X, | |
1525 | .cpu_user_features = PPC_FEATURE_32 | | |
1526 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
1527 | .mmu_features = MMU_FTR_TYPE_40x, | |
1528 | .icache_bsize = 32, | |
1529 | .dcache_bsize = 32, | |
1530 | .machine_check = machine_check_4xx, | |
1531 | .platform = "ppc405", | |
1532 | }, | |
1533 | { /* 405EXr Rev. A/B without Security */ | |
1534 | .pvr_mask = 0xffff000f, | |
1535 | .pvr_value = 0x12910001, | |
1536 | .cpu_name = "405EXr Rev. A/B", | |
1537 | .cpu_features = CPU_FTRS_40X, | |
1538 | .cpu_user_features = PPC_FEATURE_32 | | |
1539 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
1540 | .mmu_features = MMU_FTR_TYPE_40x, | |
1541 | .icache_bsize = 32, | |
1542 | .dcache_bsize = 32, | |
1543 | .machine_check = machine_check_4xx, | |
1544 | .platform = "ppc405", | |
1545 | }, | |
1546 | { /* 405EXr Rev. C without Security */ | |
1547 | .pvr_mask = 0xffff000f, | |
1548 | .pvr_value = 0x12910009, | |
1549 | .cpu_name = "405EXr Rev. C", | |
1550 | .cpu_features = CPU_FTRS_40X, | |
1551 | .cpu_user_features = PPC_FEATURE_32 | | |
1552 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
1553 | .mmu_features = MMU_FTR_TYPE_40x, | |
1554 | .icache_bsize = 32, | |
1555 | .dcache_bsize = 32, | |
1556 | .machine_check = machine_check_4xx, | |
1557 | .platform = "ppc405", | |
1558 | }, | |
1559 | { /* 405EXr Rev. C with Security */ | |
1560 | .pvr_mask = 0xffff000f, | |
1561 | .pvr_value = 0x1291000b, | |
1562 | .cpu_name = "405EXr Rev. C", | |
1563 | .cpu_features = CPU_FTRS_40X, | |
1564 | .cpu_user_features = PPC_FEATURE_32 | | |
1565 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
1566 | .mmu_features = MMU_FTR_TYPE_40x, | |
1567 | .icache_bsize = 32, | |
1568 | .dcache_bsize = 32, | |
1569 | .machine_check = machine_check_4xx, | |
1570 | .platform = "ppc405", | |
1571 | }, | |
1572 | { /* 405EXr Rev. D without Security */ | |
1573 | .pvr_mask = 0xffff000f, | |
b676d84e | 1574 | .pvr_value = 0x12910000, |
ff349103 LN |
1575 | .cpu_name = "405EXr Rev. D", |
1576 | .cpu_features = CPU_FTRS_40X, | |
1577 | .cpu_user_features = PPC_FEATURE_32 | | |
1578 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
1579 | .mmu_features = MMU_FTR_TYPE_40x, | |
1580 | .icache_bsize = 32, | |
1581 | .dcache_bsize = 32, | |
1582 | .machine_check = machine_check_4xx, | |
1583 | .platform = "ppc405", | |
1584 | }, | |
1585 | { /* 405EXr Rev. D with Security */ | |
1586 | .pvr_mask = 0xffff000f, | |
1587 | .pvr_value = 0x12910002, | |
1588 | .cpu_name = "405EXr Rev. D", | |
b676d84e SR |
1589 | .cpu_features = CPU_FTRS_40X, |
1590 | .cpu_user_features = PPC_FEATURE_32 | | |
1591 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1592 | .mmu_features = MMU_FTR_TYPE_40x, |
b676d84e SR |
1593 | .icache_bsize = 32, |
1594 | .dcache_bsize = 32, | |
1595 | .machine_check = machine_check_4xx, | |
1596 | .platform = "ppc405", | |
1597 | }, | |
df8f71fa JB |
1598 | { |
1599 | /* 405EZ */ | |
1600 | .pvr_mask = 0xffff0000, | |
1601 | .pvr_value = 0x41510000, | |
1602 | .cpu_name = "405EZ", | |
1603 | .cpu_features = CPU_FTRS_40X, | |
1604 | .cpu_user_features = PPC_FEATURE_32 | | |
1605 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1606 | .mmu_features = MMU_FTR_TYPE_40x, |
df8f71fa JB |
1607 | .icache_bsize = 32, |
1608 | .dcache_bsize = 32, | |
1609 | .machine_check = machine_check_4xx, | |
1610 | .platform = "ppc405", | |
1611 | }, | |
d5b9ee7b TI |
1612 | { /* APM8018X */ |
1613 | .pvr_mask = 0xffff0000, | |
1614 | .pvr_value = 0x7ff11432, | |
1615 | .cpu_name = "APM8018X", | |
1616 | .cpu_features = CPU_FTRS_40X, | |
1617 | .cpu_user_features = PPC_FEATURE_32 | | |
1618 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
1619 | .mmu_features = MMU_FTR_TYPE_40x, | |
1620 | .icache_bsize = 32, | |
1621 | .dcache_bsize = 32, | |
1622 | .machine_check = machine_check_4xx, | |
1623 | .platform = "ppc405", | |
1624 | }, | |
76bc080e BH |
1625 | { /* default match */ |
1626 | .pvr_mask = 0x00000000, | |
1627 | .pvr_value = 0x00000000, | |
1628 | .cpu_name = "(generic 40x PPC)", | |
1629 | .cpu_features = CPU_FTRS_40X, | |
1630 | .cpu_user_features = PPC_FEATURE_32 | | |
1631 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1632 | .mmu_features = MMU_FTR_TYPE_40x, |
76bc080e BH |
1633 | .icache_bsize = 32, |
1634 | .dcache_bsize = 32, | |
1635 | .machine_check = machine_check_4xx, | |
1636 | .platform = "ppc405", | |
1637 | } | |
1da177e4 LT |
1638 | |
1639 | #endif /* CONFIG_40x */ | |
1640 | #ifdef CONFIG_44x | |
c9cf73ae MP |
1641 | { |
1642 | .pvr_mask = 0xf0000fff, | |
1643 | .pvr_value = 0x40000850, | |
d1dfc35d VB |
1644 | .cpu_name = "440GR Rev. A", |
1645 | .cpu_features = CPU_FTRS_44X, | |
1646 | .cpu_user_features = COMMON_USER_BOOKE, | |
7c03d653 | 1647 | .mmu_features = MMU_FTR_TYPE_44x, |
d1dfc35d VB |
1648 | .icache_bsize = 32, |
1649 | .dcache_bsize = 32, | |
47c0bd1a | 1650 | .machine_check = machine_check_4xx, |
d1dfc35d VB |
1651 | .platform = "ppc440", |
1652 | }, | |
1653 | { /* Use logical PVR for 440EP (logical pvr = pvr | 0x8) */ | |
1654 | .pvr_mask = 0xf0000fff, | |
1655 | .pvr_value = 0x40000858, | |
c9cf73ae | 1656 | .cpu_name = "440EP Rev. A", |
10b35d99 | 1657 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1658 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, |
7c03d653 | 1659 | .mmu_features = MMU_FTR_TYPE_44x, |
c9cf73ae MP |
1660 | .icache_bsize = 32, |
1661 | .dcache_bsize = 32, | |
8112753b | 1662 | .cpu_setup = __setup_cpu_440ep, |
47c0bd1a | 1663 | .machine_check = machine_check_4xx, |
80f15dc7 | 1664 | .platform = "ppc440", |
c9cf73ae MP |
1665 | }, |
1666 | { | |
1667 | .pvr_mask = 0xf0000fff, | |
1668 | .pvr_value = 0x400008d3, | |
d1dfc35d | 1669 | .cpu_name = "440GR Rev. B", |
10b35d99 | 1670 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1671 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, |
7c03d653 | 1672 | .mmu_features = MMU_FTR_TYPE_44x, |
c9cf73ae MP |
1673 | .icache_bsize = 32, |
1674 | .dcache_bsize = 32, | |
47c0bd1a | 1675 | .machine_check = machine_check_4xx, |
80f15dc7 | 1676 | .platform = "ppc440", |
c9cf73ae | 1677 | }, |
3f8fc3e0 SM |
1678 | { /* Matches both physical and logical PVR for 440EP (logical pvr = pvr | 0x8) */ |
1679 | .pvr_mask = 0xf0000ff7, | |
1680 | .pvr_value = 0x400008d4, | |
1681 | .cpu_name = "440EP Rev. C", | |
1682 | .cpu_features = CPU_FTRS_44X, | |
1683 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, | |
7c03d653 | 1684 | .mmu_features = MMU_FTR_TYPE_44x, |
3f8fc3e0 SM |
1685 | .icache_bsize = 32, |
1686 | .dcache_bsize = 32, | |
1687 | .cpu_setup = __setup_cpu_440ep, | |
1688 | .machine_check = machine_check_4xx, | |
1689 | .platform = "ppc440", | |
1690 | }, | |
d1dfc35d VB |
1691 | { /* Use logical PVR for 440EP (logical pvr = pvr | 0x8) */ |
1692 | .pvr_mask = 0xf0000fff, | |
1693 | .pvr_value = 0x400008db, | |
1694 | .cpu_name = "440EP Rev. B", | |
15fc993e VB |
1695 | .cpu_features = CPU_FTRS_44X, |
1696 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, | |
7c03d653 | 1697 | .mmu_features = MMU_FTR_TYPE_44x, |
15fc993e VB |
1698 | .icache_bsize = 32, |
1699 | .dcache_bsize = 32, | |
d1dfc35d | 1700 | .cpu_setup = __setup_cpu_440ep, |
47c0bd1a | 1701 | .machine_check = machine_check_4xx, |
8112753b | 1702 | .platform = "ppc440", |
15fc993e VB |
1703 | }, |
1704 | { /* 440GRX */ | |
1705 | .pvr_mask = 0xf0000ffb, | |
d1dfc35d | 1706 | .pvr_value = 0x200008D0, |
15fc993e VB |
1707 | .cpu_name = "440GRX", |
1708 | .cpu_features = CPU_FTRS_44X, | |
1709 | .cpu_user_features = COMMON_USER_BOOKE, | |
7c03d653 | 1710 | .mmu_features = MMU_FTR_TYPE_44x, |
15fc993e VB |
1711 | .icache_bsize = 32, |
1712 | .dcache_bsize = 32, | |
340ffd26 | 1713 | .cpu_setup = __setup_cpu_440grx, |
b2be3b15 | 1714 | .machine_check = machine_check_440A, |
340ffd26 | 1715 | .platform = "ppc440", |
15fc993e | 1716 | }, |
d1dfc35d VB |
1717 | { /* Use logical PVR for 440EPx (logical pvr = pvr | 0x8) */ |
1718 | .pvr_mask = 0xf0000ffb, | |
1719 | .pvr_value = 0x200008D8, | |
1720 | .cpu_name = "440EPX", | |
1721 | .cpu_features = CPU_FTRS_44X, | |
1722 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, | |
7c03d653 | 1723 | .mmu_features = MMU_FTR_TYPE_44x, |
d1dfc35d VB |
1724 | .icache_bsize = 32, |
1725 | .dcache_bsize = 32, | |
1726 | .cpu_setup = __setup_cpu_440epx, | |
47c0bd1a | 1727 | .machine_check = machine_check_440A, |
d1dfc35d VB |
1728 | .platform = "ppc440", |
1729 | }, | |
4920960f | 1730 | { /* 440GP Rev. B */ |
1da177e4 LT |
1731 | .pvr_mask = 0xf0000fff, |
1732 | .pvr_value = 0x40000440, | |
1733 | .cpu_name = "440GP Rev. B", | |
10b35d99 | 1734 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1735 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1736 | .mmu_features = MMU_FTR_TYPE_44x, |
1da177e4 LT |
1737 | .icache_bsize = 32, |
1738 | .dcache_bsize = 32, | |
47c0bd1a | 1739 | .machine_check = machine_check_4xx, |
80f15dc7 | 1740 | .platform = "ppc440gp", |
1da177e4 | 1741 | }, |
4920960f | 1742 | { /* 440GP Rev. C */ |
1da177e4 LT |
1743 | .pvr_mask = 0xf0000fff, |
1744 | .pvr_value = 0x40000481, | |
1745 | .cpu_name = "440GP Rev. C", | |
10b35d99 | 1746 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1747 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1748 | .mmu_features = MMU_FTR_TYPE_44x, |
1da177e4 LT |
1749 | .icache_bsize = 32, |
1750 | .dcache_bsize = 32, | |
47c0bd1a | 1751 | .machine_check = machine_check_4xx, |
80f15dc7 | 1752 | .platform = "ppc440gp", |
1da177e4 LT |
1753 | }, |
1754 | { /* 440GX Rev. A */ | |
1755 | .pvr_mask = 0xf0000fff, | |
1756 | .pvr_value = 0x50000850, | |
1757 | .cpu_name = "440GX Rev. A", | |
10b35d99 | 1758 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1759 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1760 | .mmu_features = MMU_FTR_TYPE_44x, |
1da177e4 LT |
1761 | .icache_bsize = 32, |
1762 | .dcache_bsize = 32, | |
47c0bd1a BH |
1763 | .cpu_setup = __setup_cpu_440gx, |
1764 | .machine_check = machine_check_440A, | |
80f15dc7 | 1765 | .platform = "ppc440", |
1da177e4 LT |
1766 | }, |
1767 | { /* 440GX Rev. B */ | |
1768 | .pvr_mask = 0xf0000fff, | |
1769 | .pvr_value = 0x50000851, | |
1770 | .cpu_name = "440GX Rev. B", | |
10b35d99 | 1771 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1772 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1773 | .mmu_features = MMU_FTR_TYPE_44x, |
1da177e4 LT |
1774 | .icache_bsize = 32, |
1775 | .dcache_bsize = 32, | |
47c0bd1a BH |
1776 | .cpu_setup = __setup_cpu_440gx, |
1777 | .machine_check = machine_check_440A, | |
80f15dc7 | 1778 | .platform = "ppc440", |
1da177e4 LT |
1779 | }, |
1780 | { /* 440GX Rev. C */ | |
1781 | .pvr_mask = 0xf0000fff, | |
1782 | .pvr_value = 0x50000892, | |
1783 | .cpu_name = "440GX Rev. C", | |
10b35d99 | 1784 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1785 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1786 | .mmu_features = MMU_FTR_TYPE_44x, |
1da177e4 LT |
1787 | .icache_bsize = 32, |
1788 | .dcache_bsize = 32, | |
47c0bd1a BH |
1789 | .cpu_setup = __setup_cpu_440gx, |
1790 | .machine_check = machine_check_440A, | |
80f15dc7 | 1791 | .platform = "ppc440", |
1da177e4 | 1792 | }, |
9149fb3b ES |
1793 | { /* 440GX Rev. F */ |
1794 | .pvr_mask = 0xf0000fff, | |
1795 | .pvr_value = 0x50000894, | |
1796 | .cpu_name = "440GX Rev. F", | |
10b35d99 | 1797 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1798 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1799 | .mmu_features = MMU_FTR_TYPE_44x, |
9149fb3b ES |
1800 | .icache_bsize = 32, |
1801 | .dcache_bsize = 32, | |
47c0bd1a BH |
1802 | .cpu_setup = __setup_cpu_440gx, |
1803 | .machine_check = machine_check_440A, | |
80f15dc7 | 1804 | .platform = "ppc440", |
9149fb3b | 1805 | }, |
656de7e4 | 1806 | { /* 440SP Rev. A */ |
333e6154 RD |
1807 | .pvr_mask = 0xfff00fff, |
1808 | .pvr_value = 0x53200891, | |
656de7e4 | 1809 | .cpu_name = "440SP Rev. A", |
10b35d99 | 1810 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1811 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1812 | .mmu_features = MMU_FTR_TYPE_44x, |
656de7e4 MP |
1813 | .icache_bsize = 32, |
1814 | .dcache_bsize = 32, | |
47c0bd1a | 1815 | .machine_check = machine_check_4xx, |
80f15dc7 | 1816 | .platform = "ppc440", |
656de7e4 | 1817 | }, |
b0f7b8bc | 1818 | { /* 440SPe Rev. A */ |
333e6154 RD |
1819 | .pvr_mask = 0xfff00fff, |
1820 | .pvr_value = 0x53400890, | |
1821 | .cpu_name = "440SPe Rev. A", | |
1822 | .cpu_features = CPU_FTRS_44X, | |
1823 | .cpu_user_features = COMMON_USER_BOOKE, | |
7c03d653 | 1824 | .mmu_features = MMU_FTR_TYPE_44x, |
333e6154 RD |
1825 | .icache_bsize = 32, |
1826 | .dcache_bsize = 32, | |
47c0bd1a BH |
1827 | .cpu_setup = __setup_cpu_440spe, |
1828 | .machine_check = machine_check_440A, | |
333e6154 RD |
1829 | .platform = "ppc440", |
1830 | }, | |
1831 | { /* 440SPe Rev. B */ | |
1832 | .pvr_mask = 0xfff00fff, | |
1833 | .pvr_value = 0x53400891, | |
1834 | .cpu_name = "440SPe Rev. B", | |
a147c585 | 1835 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1836 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1837 | .mmu_features = MMU_FTR_TYPE_44x, |
b0f7b8bc RD |
1838 | .icache_bsize = 32, |
1839 | .dcache_bsize = 32, | |
47c0bd1a BH |
1840 | .cpu_setup = __setup_cpu_440spe, |
1841 | .machine_check = machine_check_440A, | |
80f15dc7 | 1842 | .platform = "ppc440", |
b0f7b8bc | 1843 | }, |
23e7237e JL |
1844 | { /* 440 in Xilinx Virtex-5 FXT */ |
1845 | .pvr_mask = 0xfffffff0, | |
1846 | .pvr_value = 0x7ff21910, | |
1847 | .cpu_name = "440 in Virtex-5 FXT", | |
1848 | .cpu_features = CPU_FTRS_44X, | |
1849 | .cpu_user_features = COMMON_USER_BOOKE, | |
7c03d653 | 1850 | .mmu_features = MMU_FTR_TYPE_44x, |
23e7237e JL |
1851 | .icache_bsize = 32, |
1852 | .dcache_bsize = 32, | |
640d17d6 GL |
1853 | .cpu_setup = __setup_cpu_440x5, |
1854 | .machine_check = machine_check_440A, | |
23e7237e JL |
1855 | .platform = "ppc440", |
1856 | }, | |
464076a4 | 1857 | { /* 460EX */ |
20d70345 | 1858 | .pvr_mask = 0xffff0006, |
464076a4 SR |
1859 | .pvr_value = 0x13020002, |
1860 | .cpu_name = "460EX", | |
6d2170be | 1861 | .cpu_features = CPU_FTRS_440x6, |
464076a4 | 1862 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, |
7c03d653 | 1863 | .mmu_features = MMU_FTR_TYPE_44x, |
464076a4 SR |
1864 | .icache_bsize = 32, |
1865 | .dcache_bsize = 32, | |
1866 | .cpu_setup = __setup_cpu_460ex, | |
1867 | .machine_check = machine_check_440A, | |
1868 | .platform = "ppc440", | |
1869 | }, | |
20d70345 SR |
1870 | { /* 460EX Rev B */ |
1871 | .pvr_mask = 0xffff0007, | |
1872 | .pvr_value = 0x13020004, | |
1873 | .cpu_name = "460EX Rev. B", | |
1874 | .cpu_features = CPU_FTRS_440x6, | |
1875 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, | |
1876 | .mmu_features = MMU_FTR_TYPE_44x, | |
1877 | .icache_bsize = 32, | |
1878 | .dcache_bsize = 32, | |
1879 | .cpu_setup = __setup_cpu_460ex, | |
1880 | .machine_check = machine_check_440A, | |
1881 | .platform = "ppc440", | |
1882 | }, | |
464076a4 | 1883 | { /* 460GT */ |
20d70345 | 1884 | .pvr_mask = 0xffff0006, |
464076a4 SR |
1885 | .pvr_value = 0x13020000, |
1886 | .cpu_name = "460GT", | |
6d2170be | 1887 | .cpu_features = CPU_FTRS_440x6, |
939e622c | 1888 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, |
7c03d653 | 1889 | .mmu_features = MMU_FTR_TYPE_44x, |
464076a4 SR |
1890 | .icache_bsize = 32, |
1891 | .dcache_bsize = 32, | |
939e622c | 1892 | .cpu_setup = __setup_cpu_460gt, |
464076a4 SR |
1893 | .machine_check = machine_check_440A, |
1894 | .platform = "ppc440", | |
1895 | }, | |
20d70345 SR |
1896 | { /* 460GT Rev B */ |
1897 | .pvr_mask = 0xffff0007, | |
1898 | .pvr_value = 0x13020005, | |
1899 | .cpu_name = "460GT Rev. B", | |
1900 | .cpu_features = CPU_FTRS_440x6, | |
1901 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, | |
1902 | .mmu_features = MMU_FTR_TYPE_44x, | |
1903 | .icache_bsize = 32, | |
1904 | .dcache_bsize = 32, | |
1905 | .cpu_setup = __setup_cpu_460gt, | |
1906 | .machine_check = machine_check_440A, | |
1907 | .platform = "ppc440", | |
1908 | }, | |
6c712090 MM |
1909 | { /* 460SX */ |
1910 | .pvr_mask = 0xffffff00, | |
1911 | .pvr_value = 0x13541800, | |
1912 | .cpu_name = "460SX", | |
1913 | .cpu_features = CPU_FTRS_44X, | |
1914 | .cpu_user_features = COMMON_USER_BOOKE, | |
1915 | .mmu_features = MMU_FTR_TYPE_44x, | |
1916 | .icache_bsize = 32, | |
1917 | .dcache_bsize = 32, | |
1918 | .cpu_setup = __setup_cpu_460sx, | |
1919 | .machine_check = machine_check_440A, | |
1920 | .platform = "ppc440", | |
1921 | }, | |
6edc323d | 1922 | { /* 464 in APM821xx */ |
7c801160 | 1923 | .pvr_mask = 0xfffffff0, |
6edc323d TM |
1924 | .pvr_value = 0x12C41C80, |
1925 | .cpu_name = "APM821XX", | |
1926 | .cpu_features = CPU_FTRS_44X, | |
1927 | .cpu_user_features = COMMON_USER_BOOKE | | |
1928 | PPC_FEATURE_HAS_FPU, | |
1929 | .mmu_features = MMU_FTR_TYPE_44x, | |
1930 | .icache_bsize = 32, | |
1931 | .dcache_bsize = 32, | |
1932 | .cpu_setup = __setup_cpu_apm821xx, | |
1933 | .machine_check = machine_check_440A, | |
1934 | .platform = "ppc440", | |
1935 | }, | |
c48d0dba DK |
1936 | { /* 476 DD2 core */ |
1937 | .pvr_mask = 0xffffffff, | |
1938 | .pvr_value = 0x11a52080, | |
e7f75ad0 | 1939 | .cpu_name = "476", |
c48d0dba | 1940 | .cpu_features = CPU_FTRS_47X | CPU_FTR_476_DD2, |
e7f75ad0 | 1941 | .cpu_user_features = COMMON_USER_BOOKE | |
df777bd3 TB |
1942 | PPC_FEATURE_HAS_FPU, |
1943 | .mmu_features = MMU_FTR_TYPE_47x | | |
1944 | MMU_FTR_USE_TLBIVAX_BCAST | MMU_FTR_LOCK_BCAST_INVAL, | |
1945 | .icache_bsize = 32, | |
1946 | .dcache_bsize = 128, | |
1947 | .machine_check = machine_check_47x, | |
1948 | .platform = "ppc470", | |
1949 | }, | |
1950 | { /* 476fpe */ | |
1951 | .pvr_mask = 0xffff0000, | |
1952 | .pvr_value = 0x7ff50000, | |
1953 | .cpu_name = "476fpe", | |
1954 | .cpu_features = CPU_FTRS_47X | CPU_FTR_476_DD2, | |
1955 | .cpu_user_features = COMMON_USER_BOOKE | | |
e7f75ad0 DK |
1956 | PPC_FEATURE_HAS_FPU, |
1957 | .mmu_features = MMU_FTR_TYPE_47x | | |
1958 | MMU_FTR_USE_TLBIVAX_BCAST | MMU_FTR_LOCK_BCAST_INVAL, | |
b4e8c8dd TS |
1959 | .icache_bsize = 32, |
1960 | .dcache_bsize = 128, | |
1961 | .machine_check = machine_check_47x, | |
1962 | .platform = "ppc470", | |
1963 | }, | |
1964 | { /* 476 iss */ | |
1965 | .pvr_mask = 0xffff0000, | |
1966 | .pvr_value = 0x00050000, | |
1967 | .cpu_name = "476", | |
1968 | .cpu_features = CPU_FTRS_47X, | |
1969 | .cpu_user_features = COMMON_USER_BOOKE | | |
1970 | PPC_FEATURE_HAS_FPU, | |
b4e8c8dd TS |
1971 | .mmu_features = MMU_FTR_TYPE_47x | |
1972 | MMU_FTR_USE_TLBIVAX_BCAST | MMU_FTR_LOCK_BCAST_INVAL, | |
e7f75ad0 DK |
1973 | .icache_bsize = 32, |
1974 | .dcache_bsize = 128, | |
fc5e7097 | 1975 | .machine_check = machine_check_47x, |
e7f75ad0 DK |
1976 | .platform = "ppc470", |
1977 | }, | |
c48d0dba DK |
1978 | { /* 476 others */ |
1979 | .pvr_mask = 0xffff0000, | |
1980 | .pvr_value = 0x11a50000, | |
1981 | .cpu_name = "476", | |
1982 | .cpu_features = CPU_FTRS_47X, | |
1983 | .cpu_user_features = COMMON_USER_BOOKE | | |
1984 | PPC_FEATURE_HAS_FPU, | |
1985 | .mmu_features = MMU_FTR_TYPE_47x | | |
1986 | MMU_FTR_USE_TLBIVAX_BCAST | MMU_FTR_LOCK_BCAST_INVAL, | |
1987 | .icache_bsize = 32, | |
1988 | .dcache_bsize = 128, | |
1989 | .machine_check = machine_check_47x, | |
1990 | .platform = "ppc470", | |
1991 | }, | |
76bc080e BH |
1992 | { /* default match */ |
1993 | .pvr_mask = 0x00000000, | |
1994 | .pvr_value = 0x00000000, | |
1995 | .cpu_name = "(generic 44x PPC)", | |
1996 | .cpu_features = CPU_FTRS_44X, | |
1997 | .cpu_user_features = COMMON_USER_BOOKE, | |
7c03d653 | 1998 | .mmu_features = MMU_FTR_TYPE_44x, |
76bc080e BH |
1999 | .icache_bsize = 32, |
2000 | .dcache_bsize = 32, | |
2001 | .machine_check = machine_check_4xx, | |
2002 | .platform = "ppc440", | |
2003 | } | |
1da177e4 | 2004 | #endif /* CONFIG_44x */ |
e3e414bc | 2005 | #ifdef CONFIG_E200 |
4920960f | 2006 | { /* e200z5 */ |
33d9e9b5 KG |
2007 | .pvr_mask = 0xfff00000, |
2008 | .pvr_value = 0x81000000, | |
2009 | .cpu_name = "e200z5", | |
2010 | /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */ | |
10b35d99 | 2011 | .cpu_features = CPU_FTRS_E200, |
80f15dc7 PM |
2012 | .cpu_user_features = COMMON_USER_BOOKE | |
2013 | PPC_FEATURE_HAS_EFP_SINGLE | | |
33d9e9b5 | 2014 | PPC_FEATURE_UNIFIED_CACHE, |
7c03d653 | 2015 | .mmu_features = MMU_FTR_TYPE_FSL_E, |
33d9e9b5 | 2016 | .dcache_bsize = 32, |
47c0bd1a | 2017 | .machine_check = machine_check_e200, |
80f15dc7 | 2018 | .platform = "ppc5554", |
33d9e9b5 | 2019 | }, |
4920960f | 2020 | { /* e200z6 */ |
33d9e9b5 KG |
2021 | .pvr_mask = 0xfff00000, |
2022 | .pvr_value = 0x81100000, | |
2023 | .cpu_name = "e200z6", | |
2024 | /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */ | |
10b35d99 | 2025 | .cpu_features = CPU_FTRS_E200, |
80f15dc7 | 2026 | .cpu_user_features = COMMON_USER_BOOKE | |
5e14d21e KG |
2027 | PPC_FEATURE_HAS_SPE_COMP | |
2028 | PPC_FEATURE_HAS_EFP_SINGLE_COMP | | |
33d9e9b5 | 2029 | PPC_FEATURE_UNIFIED_CACHE, |
7c03d653 | 2030 | .mmu_features = MMU_FTR_TYPE_FSL_E, |
33d9e9b5 | 2031 | .dcache_bsize = 32, |
47c0bd1a | 2032 | .machine_check = machine_check_e200, |
80f15dc7 | 2033 | .platform = "ppc5554", |
33d9e9b5 | 2034 | }, |
76bc080e BH |
2035 | { /* default match */ |
2036 | .pvr_mask = 0x00000000, | |
2037 | .pvr_value = 0x00000000, | |
2038 | .cpu_name = "(generic E200 PPC)", | |
2039 | .cpu_features = CPU_FTRS_E200, | |
2040 | .cpu_user_features = COMMON_USER_BOOKE | | |
2041 | PPC_FEATURE_HAS_EFP_SINGLE | | |
2042 | PPC_FEATURE_UNIFIED_CACHE, | |
7c03d653 | 2043 | .mmu_features = MMU_FTR_TYPE_FSL_E, |
76bc080e | 2044 | .dcache_bsize = 32, |
105c31df | 2045 | .cpu_setup = __setup_cpu_e200, |
76bc080e BH |
2046 | .machine_check = machine_check_e200, |
2047 | .platform = "ppc5554", | |
516c8be3 | 2048 | } |
76bc080e | 2049 | #endif /* CONFIG_E200 */ |
4490c06b | 2050 | #endif /* CONFIG_PPC32 */ |
76bc080e | 2051 | #ifdef CONFIG_E500 |
4490c06b | 2052 | #ifdef CONFIG_PPC32 |
3477e71d | 2053 | #ifndef CONFIG_PPC_E500MC |
4920960f | 2054 | { /* e500 */ |
1da177e4 LT |
2055 | .pvr_mask = 0xffff0000, |
2056 | .pvr_value = 0x80200000, | |
2057 | .cpu_name = "e500", | |
10b35d99 | 2058 | .cpu_features = CPU_FTRS_E500, |
80f15dc7 | 2059 | .cpu_user_features = COMMON_USER_BOOKE | |
5e14d21e KG |
2060 | PPC_FEATURE_HAS_SPE_COMP | |
2061 | PPC_FEATURE_HAS_EFP_SINGLE_COMP, | |
6c1bf482 | 2062 | .cpu_user_features2 = PPC_FEATURE2_ISEL, |
7c03d653 | 2063 | .mmu_features = MMU_FTR_TYPE_FSL_E, |
1da177e4 LT |
2064 | .icache_bsize = 32, |
2065 | .dcache_bsize = 32, | |
2066 | .num_pmcs = 4, | |
555d97ac | 2067 | .oprofile_cpu_type = "ppc/e500", |
39aef685 | 2068 | .oprofile_type = PPC_OPROFILE_FSL_EMB, |
105c31df | 2069 | .cpu_setup = __setup_cpu_e500v1, |
47c0bd1a | 2070 | .machine_check = machine_check_e500, |
80f15dc7 | 2071 | .platform = "ppc8540", |
1da177e4 | 2072 | }, |
4920960f | 2073 | { /* e500v2 */ |
5b37b700 KG |
2074 | .pvr_mask = 0xffff0000, |
2075 | .pvr_value = 0x80210000, | |
2076 | .cpu_name = "e500v2", | |
10b35d99 | 2077 | .cpu_features = CPU_FTRS_E500_2, |
80f15dc7 | 2078 | .cpu_user_features = COMMON_USER_BOOKE | |
5e14d21e KG |
2079 | PPC_FEATURE_HAS_SPE_COMP | |
2080 | PPC_FEATURE_HAS_EFP_SINGLE_COMP | | |
2081 | PPC_FEATURE_HAS_EFP_DOUBLE_COMP, | |
6c1bf482 | 2082 | .cpu_user_features2 = PPC_FEATURE2_ISEL, |
7c03d653 | 2083 | .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS, |
5b37b700 KG |
2084 | .icache_bsize = 32, |
2085 | .dcache_bsize = 32, | |
2086 | .num_pmcs = 4, | |
555d97ac | 2087 | .oprofile_cpu_type = "ppc/e500", |
39aef685 | 2088 | .oprofile_type = PPC_OPROFILE_FSL_EMB, |
105c31df | 2089 | .cpu_setup = __setup_cpu_e500v2, |
47c0bd1a | 2090 | .machine_check = machine_check_e500, |
80f15dc7 | 2091 | .platform = "ppc8548", |
e7affb1d | 2092 | .cpu_down_flush = cpu_down_flush_e500v2, |
5b37b700 | 2093 | }, |
3477e71d | 2094 | #else |
3dfa8773 KG |
2095 | { /* e500mc */ |
2096 | .pvr_mask = 0xffff0000, | |
2097 | .pvr_value = 0x80230000, | |
2098 | .cpu_name = "e500mc", | |
3dfa8773 KG |
2099 | .cpu_features = CPU_FTRS_E500MC, |
2100 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, | |
6c1bf482 | 2101 | .cpu_user_features2 = PPC_FEATURE2_ISEL, |
c3071951 | 2102 | .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS | |
323d23ae | 2103 | MMU_FTR_USE_TLBILX, |
3dfa8773 KG |
2104 | .icache_bsize = 64, |
2105 | .dcache_bsize = 64, | |
2106 | .num_pmcs = 4, | |
a1110654 | 2107 | .oprofile_cpu_type = "ppc/e500mc", |
3dfa8773 | 2108 | .oprofile_type = PPC_OPROFILE_FSL_EMB, |
105c31df | 2109 | .cpu_setup = __setup_cpu_e500mc, |
fe04b112 | 2110 | .machine_check = machine_check_e500mc, |
3dfa8773 | 2111 | .platform = "ppce500mc", |
e7affb1d | 2112 | .cpu_down_flush = cpu_down_flush_e500mc, |
3dfa8773 | 2113 | }, |
3477e71d | 2114 | #endif /* CONFIG_PPC_E500MC */ |
4490c06b | 2115 | #endif /* CONFIG_PPC32 */ |
3477e71d | 2116 | #ifdef CONFIG_PPC_E500MC |
4490c06b KG |
2117 | { /* e5500 */ |
2118 | .pvr_mask = 0xffff0000, | |
2119 | .pvr_value = 0x80240000, | |
2120 | .cpu_name = "e5500", | |
11ed0db9 | 2121 | .cpu_features = CPU_FTRS_E5500, |
fb9be234 | 2122 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, |
6c1bf482 | 2123 | .cpu_user_features2 = PPC_FEATURE2_ISEL, |
4490c06b KG |
2124 | .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS | |
2125 | MMU_FTR_USE_TLBILX, | |
2126 | .icache_bsize = 64, | |
2127 | .dcache_bsize = 64, | |
2128 | .num_pmcs = 4, | |
2129 | .oprofile_cpu_type = "ppc/e500mc", | |
2130 | .oprofile_type = PPC_OPROFILE_FSL_EMB, | |
2131 | .cpu_setup = __setup_cpu_e5500, | |
2c71b0cc | 2132 | #ifndef CONFIG_PPC32 |
4490c06b | 2133 | .cpu_restore = __restore_cpu_e5500, |
2c71b0cc | 2134 | #endif |
4490c06b KG |
2135 | .machine_check = machine_check_e500mc, |
2136 | .platform = "ppce5500", | |
e7affb1d | 2137 | .cpu_down_flush = cpu_down_flush_e5500, |
4490c06b | 2138 | }, |
10241842 KG |
2139 | { /* e6500 */ |
2140 | .pvr_mask = 0xffff0000, | |
2141 | .pvr_value = 0x80400000, | |
2142 | .cpu_name = "e6500", | |
2143 | .cpu_features = CPU_FTRS_E6500, | |
cd66cc2e KG |
2144 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU | |
2145 | PPC_FEATURE_HAS_ALTIVEC_COMP, | |
6c1bf482 | 2146 | .cpu_user_features2 = PPC_FEATURE2_ISEL, |
10241842 KG |
2147 | .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS | |
2148 | MMU_FTR_USE_TLBILX, | |
2149 | .icache_bsize = 64, | |
2150 | .dcache_bsize = 64, | |
5815c434 | 2151 | .num_pmcs = 6, |
10241842 KG |
2152 | .oprofile_cpu_type = "ppc/e6500", |
2153 | .oprofile_type = PPC_OPROFILE_FSL_EMB, | |
cd66cc2e | 2154 | .cpu_setup = __setup_cpu_e6500, |
2c71b0cc | 2155 | #ifndef CONFIG_PPC32 |
cd66cc2e | 2156 | .cpu_restore = __restore_cpu_e6500, |
2c71b0cc | 2157 | #endif |
10241842 KG |
2158 | .machine_check = machine_check_e500mc, |
2159 | .platform = "ppce6500", | |
e7affb1d | 2160 | .cpu_down_flush = cpu_down_flush_e6500, |
10241842 | 2161 | }, |
3477e71d | 2162 | #endif /* CONFIG_PPC_E500MC */ |
4490c06b | 2163 | #ifdef CONFIG_PPC32 |
1da177e4 LT |
2164 | { /* default match */ |
2165 | .pvr_mask = 0x00000000, | |
2166 | .pvr_value = 0x00000000, | |
76bc080e BH |
2167 | .cpu_name = "(generic E500 PPC)", |
2168 | .cpu_features = CPU_FTRS_E500, | |
2169 | .cpu_user_features = COMMON_USER_BOOKE | | |
2170 | PPC_FEATURE_HAS_SPE_COMP | | |
2171 | PPC_FEATURE_HAS_EFP_SINGLE_COMP, | |
7c03d653 | 2172 | .mmu_features = MMU_FTR_TYPE_FSL_E, |
1da177e4 LT |
2173 | .icache_bsize = 32, |
2174 | .dcache_bsize = 32, | |
76bc080e | 2175 | .machine_check = machine_check_e500, |
80f15dc7 | 2176 | .platform = "powerpc", |
516c8be3 | 2177 | } |
4920960f | 2178 | #endif /* CONFIG_PPC32 */ |
4490c06b | 2179 | #endif /* CONFIG_E500 */ |
1da177e4 | 2180 | }; |
42c4aaad | 2181 | |
87a72f9e PM |
2182 | static struct cpu_spec the_cpu_spec; |
2183 | ||
26ee9767 SW |
2184 | static struct cpu_spec * __init setup_cpu_spec(unsigned long offset, |
2185 | struct cpu_spec *s) | |
42c4aaad | 2186 | { |
87a72f9e | 2187 | struct cpu_spec *t = &the_cpu_spec; |
2657dd4e ME |
2188 | struct cpu_spec old; |
2189 | ||
87a72f9e | 2190 | t = PTRRELOC(t); |
2657dd4e ME |
2191 | old = *t; |
2192 | ||
2193 | /* Copy everything, then do fixups */ | |
2194 | *t = *s; | |
42c4aaad | 2195 | |
666435bb ME |
2196 | /* |
2197 | * If we are overriding a previous value derived from the real | |
2198 | * PVR with a new value obtained using a logical PVR value, | |
2199 | * don't modify the performance monitor fields. | |
2200 | */ | |
2657dd4e ME |
2201 | if (old.num_pmcs && !s->num_pmcs) { |
2202 | t->num_pmcs = old.num_pmcs; | |
2203 | t->pmc_type = old.pmc_type; | |
2204 | t->oprofile_type = old.oprofile_type; | |
2205 | t->oprofile_mmcra_sihv = old.oprofile_mmcra_sihv; | |
2206 | t->oprofile_mmcra_sipr = old.oprofile_mmcra_sipr; | |
2207 | t->oprofile_mmcra_clear = old.oprofile_mmcra_clear; | |
2208 | ||
666435bb ME |
2209 | /* |
2210 | * If we have passed through this logic once before and | |
2211 | * have pulled the default case because the real PVR was | |
2212 | * not found inside cpu_specs[], then we are possibly | |
2213 | * running in compatibility mode. In that case, let the | |
2214 | * oprofiler know which set of compatibility counters to | |
2215 | * pull from by making sure the oprofile_cpu_type string | |
2216 | * is set to that of compatibility mode. If the | |
2217 | * oprofile_cpu_type already has a value, then we are | |
2218 | * possibly overriding a real PVR with a logical one, | |
2219 | * and, in that case, keep the current value for | |
2220 | * oprofile_cpu_type. | |
2221 | */ | |
b173f03d | 2222 | if (old.oprofile_cpu_type != NULL) { |
0203d6ec BH |
2223 | t->oprofile_cpu_type = old.oprofile_cpu_type; |
2224 | t->oprofile_type = old.oprofile_type; | |
79af6c49 | 2225 | } |
2657dd4e | 2226 | } |
666435bb ME |
2227 | |
2228 | *PTRRELOC(&cur_cpu_spec) = &the_cpu_spec; | |
9115d134 | 2229 | |
666435bb ME |
2230 | /* |
2231 | * Set the base platform string once; assumes | |
2232 | * we're called with real pvr first. | |
2233 | */ | |
2234 | if (*PTRRELOC(&powerpc_base_platform) == NULL) | |
2235 | *PTRRELOC(&powerpc_base_platform) = t->platform; | |
9115d134 | 2236 | |
84e3ad5b | 2237 | #if defined(CONFIG_PPC64) || defined(CONFIG_BOOKE) |
666435bb ME |
2238 | /* ppc64 and booke expect identify_cpu to also call setup_cpu for |
2239 | * that processor. I will consolidate that at a later time, for now, | |
2240 | * just use #ifdef. We also don't need to PTRRELOC the function | |
2241 | * pointer on ppc64 and booke as we are running at 0 in real mode | |
2242 | * on ppc64 and reloc_offset is always 0 on booke. | |
2243 | */ | |
af9eef3c BH |
2244 | if (t->cpu_setup) { |
2245 | t->cpu_setup(offset, t); | |
666435bb | 2246 | } |
84e3ad5b | 2247 | #endif /* CONFIG_PPC64 || CONFIG_BOOKE */ |
26ee9767 SW |
2248 | |
2249 | return t; | |
666435bb ME |
2250 | } |
2251 | ||
2252 | struct cpu_spec * __init identify_cpu(unsigned long offset, unsigned int pvr) | |
2253 | { | |
2254 | struct cpu_spec *s = cpu_specs; | |
2255 | int i; | |
2256 | ||
2257 | s = PTRRELOC(s); | |
2258 | ||
2259 | for (i = 0; i < ARRAY_SIZE(cpu_specs); i++,s++) { | |
26ee9767 SW |
2260 | if ((pvr & s->pvr_mask) == s->pvr_value) |
2261 | return setup_cpu_spec(offset, s); | |
666435bb ME |
2262 | } |
2263 | ||
42c4aaad | 2264 | BUG(); |
666435bb | 2265 | |
42c4aaad BH |
2266 | return NULL; |
2267 | } | |
4db73271 KH |
2268 | |
2269 | #ifdef CONFIG_JUMP_LABEL_FEATURE_CHECKS | |
2270 | struct static_key_true cpu_feature_keys[NUM_CPU_FTR_KEYS] = { | |
2271 | [0 ... NUM_CPU_FTR_KEYS - 1] = STATIC_KEY_TRUE_INIT | |
2272 | }; | |
2273 | EXPORT_SYMBOL_GPL(cpu_feature_keys); | |
2274 | ||
2275 | void __init cpu_feature_keys_init(void) | |
2276 | { | |
2277 | int i; | |
2278 | ||
2279 | for (i = 0; i < NUM_CPU_FTR_KEYS; i++) { | |
2280 | unsigned long f = 1ul << i; | |
2281 | ||
2282 | if (!(cur_cpu_spec->cpu_features & f)) | |
2283 | static_branch_disable(&cpu_feature_keys[i]); | |
2284 | } | |
2285 | } | |
c12e6f24 KH |
2286 | |
2287 | struct static_key_true mmu_feature_keys[NUM_MMU_FTR_KEYS] = { | |
2288 | [0 ... NUM_MMU_FTR_KEYS - 1] = STATIC_KEY_TRUE_INIT | |
2289 | }; | |
2290 | EXPORT_SYMBOL_GPL(mmu_feature_keys); | |
2291 | ||
2292 | void __init mmu_feature_keys_init(void) | |
2293 | { | |
2294 | int i; | |
2295 | ||
2296 | for (i = 0; i < NUM_MMU_FTR_KEYS; i++) { | |
2297 | unsigned long f = 1ul << i; | |
2298 | ||
2299 | if (!(cur_cpu_spec->mmu_features & f)) | |
2300 | static_branch_disable(&mmu_feature_keys[i]); | |
2301 | } | |
2302 | } | |
4db73271 | 2303 | #endif |