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> | |
400d2212 KG |
17 | #include <linux/module.h> |
18 | ||
19 | #include <asm/oprofile_impl.h> | |
1da177e4 | 20 | #include <asm/cputable.h> |
42c4aaad | 21 | #include <asm/prom.h> /* for PTRRELOC on ARCH=ppc */ |
7c03d653 | 22 | #include <asm/mmu.h> |
1da177e4 | 23 | |
400d2212 | 24 | struct cpu_spec* cur_cpu_spec = NULL; |
4920960f | 25 | EXPORT_SYMBOL(cur_cpu_spec); |
1da177e4 | 26 | |
9115d134 NL |
27 | /* The platform string corresponding to the real PVR */ |
28 | const char *powerpc_base_platform; | |
29 | ||
4920960f SR |
30 | /* NOTE: |
31 | * Unlike ppc32, ppc64 will only call this once for the boot CPU, it's | |
32 | * the responsibility of the appropriate CPU save/restore functions to | |
33 | * eventually copy these settings over. Those save/restore aren't yet | |
34 | * part of the cputable though. That has to be fixed for both ppc32 | |
35 | * and ppc64 | |
36 | */ | |
b26f100d | 37 | #ifdef CONFIG_PPC32 |
105c31df KG |
38 | extern void __setup_cpu_e200(unsigned long offset, struct cpu_spec* spec); |
39 | extern void __setup_cpu_e500v1(unsigned long offset, struct cpu_spec* spec); | |
40 | extern void __setup_cpu_e500v2(unsigned long offset, struct cpu_spec* spec); | |
41 | extern void __setup_cpu_e500mc(unsigned long offset, struct cpu_spec* spec); | |
8112753b VB |
42 | extern void __setup_cpu_440ep(unsigned long offset, struct cpu_spec* spec); |
43 | extern void __setup_cpu_440epx(unsigned long offset, struct cpu_spec* spec); | |
47c0bd1a | 44 | extern void __setup_cpu_440gx(unsigned long offset, struct cpu_spec* spec); |
340ffd26 | 45 | extern void __setup_cpu_440grx(unsigned long offset, struct cpu_spec* spec); |
47c0bd1a | 46 | extern void __setup_cpu_440spe(unsigned long offset, struct cpu_spec* spec); |
640d17d6 | 47 | extern void __setup_cpu_440x5(unsigned long offset, struct cpu_spec* spec); |
464076a4 | 48 | extern void __setup_cpu_460ex(unsigned long offset, struct cpu_spec* spec); |
939e622c | 49 | extern void __setup_cpu_460gt(unsigned long offset, struct cpu_spec* spec); |
400d2212 KG |
50 | extern void __setup_cpu_603(unsigned long offset, struct cpu_spec* spec); |
51 | extern void __setup_cpu_604(unsigned long offset, struct cpu_spec* spec); | |
52 | extern void __setup_cpu_750(unsigned long offset, struct cpu_spec* spec); | |
53 | extern void __setup_cpu_750cx(unsigned long offset, struct cpu_spec* spec); | |
54 | extern void __setup_cpu_750fx(unsigned long offset, struct cpu_spec* spec); | |
55 | extern void __setup_cpu_7400(unsigned long offset, struct cpu_spec* spec); | |
56 | extern void __setup_cpu_7410(unsigned long offset, struct cpu_spec* spec); | |
57 | extern void __setup_cpu_745x(unsigned long offset, struct cpu_spec* spec); | |
4920960f | 58 | #endif /* CONFIG_PPC32 */ |
f39b7a55 | 59 | #ifdef CONFIG_PPC64 |
400d2212 | 60 | extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec); |
5b43d20a | 61 | extern void __setup_cpu_ppc970MP(unsigned long offset, struct cpu_spec* spec); |
1199919b | 62 | extern void __setup_cpu_pa6t(unsigned long offset, struct cpu_spec* spec); |
40d244d6 | 63 | extern void __restore_cpu_pa6t(void); |
f39b7a55 | 64 | extern void __restore_cpu_ppc970(void); |
e952e6c4 MN |
65 | extern void __setup_cpu_power7(unsigned long offset, struct cpu_spec* spec); |
66 | extern void __restore_cpu_power7(void); | |
f39b7a55 | 67 | #endif /* CONFIG_PPC64 */ |
1da177e4 | 68 | |
1da177e4 LT |
69 | /* This table only contains "desktop" CPUs, it need to be filled with embedded |
70 | * ones as well... | |
71 | */ | |
4920960f SR |
72 | #define COMMON_USER (PPC_FEATURE_32 | PPC_FEATURE_HAS_FPU | \ |
73 | PPC_FEATURE_HAS_MMU) | |
74 | #define COMMON_USER_PPC64 (COMMON_USER | PPC_FEATURE_64) | |
a7ddc5e8 | 75 | #define COMMON_USER_POWER4 (COMMON_USER_PPC64 | PPC_FEATURE_POWER4) |
aa5cb021 BH |
76 | #define COMMON_USER_POWER5 (COMMON_USER_PPC64 | PPC_FEATURE_POWER5 |\ |
77 | PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP) | |
78 | #define COMMON_USER_POWER5_PLUS (COMMON_USER_PPC64 | PPC_FEATURE_POWER5_PLUS|\ | |
79 | PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP) | |
03054d51 | 80 | #define COMMON_USER_POWER6 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_05 |\ |
fab5db97 | 81 | PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \ |
0f473314 NL |
82 | PPC_FEATURE_TRUE_LE | \ |
83 | PPC_FEATURE_PSERIES_PERFMON_COMPAT) | |
e952e6c4 MN |
84 | #define COMMON_USER_POWER7 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_06 |\ |
85 | PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \ | |
0f473314 NL |
86 | PPC_FEATURE_TRUE_LE | \ |
87 | PPC_FEATURE_PSERIES_PERFMON_COMPAT) | |
b3ebd1d8 OJ |
88 | #define COMMON_USER_PA6T (COMMON_USER_PPC64 | PPC_FEATURE_PA6T |\ |
89 | PPC_FEATURE_TRUE_LE | \ | |
90 | PPC_FEATURE_HAS_ALTIVEC_COMP) | |
80f15dc7 PM |
91 | #define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \ |
92 | PPC_FEATURE_BOOKE) | |
1da177e4 | 93 | |
87a72f9e | 94 | static struct cpu_spec __initdata cpu_specs[] = { |
4920960f SR |
95 | #ifdef CONFIG_PPC64 |
96 | { /* Power3 */ | |
97 | .pvr_mask = 0xffff0000, | |
98 | .pvr_value = 0x00400000, | |
99 | .cpu_name = "POWER3 (630)", | |
100 | .cpu_features = CPU_FTRS_POWER3, | |
fab5db97 | 101 | .cpu_user_features = COMMON_USER_PPC64|PPC_FEATURE_PPC_LE, |
7c03d653 | 102 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
103 | .icache_bsize = 128, |
104 | .dcache_bsize = 128, | |
105 | .num_pmcs = 8, | |
1bd2e5ae | 106 | .pmc_type = PPC_PMC_IBM, |
4920960f | 107 | .oprofile_cpu_type = "ppc64/power3", |
7a45fb19 | 108 | .oprofile_type = PPC_OPROFILE_RS64, |
47c0bd1a | 109 | .machine_check = machine_check_generic, |
80f15dc7 | 110 | .platform = "power3", |
4920960f SR |
111 | }, |
112 | { /* Power3+ */ | |
113 | .pvr_mask = 0xffff0000, | |
114 | .pvr_value = 0x00410000, | |
115 | .cpu_name = "POWER3 (630+)", | |
116 | .cpu_features = CPU_FTRS_POWER3, | |
fab5db97 | 117 | .cpu_user_features = COMMON_USER_PPC64|PPC_FEATURE_PPC_LE, |
7c03d653 | 118 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
119 | .icache_bsize = 128, |
120 | .dcache_bsize = 128, | |
121 | .num_pmcs = 8, | |
1bd2e5ae | 122 | .pmc_type = PPC_PMC_IBM, |
4920960f | 123 | .oprofile_cpu_type = "ppc64/power3", |
7a45fb19 | 124 | .oprofile_type = PPC_OPROFILE_RS64, |
47c0bd1a | 125 | .machine_check = machine_check_generic, |
80f15dc7 | 126 | .platform = "power3", |
4920960f SR |
127 | }, |
128 | { /* Northstar */ | |
129 | .pvr_mask = 0xffff0000, | |
130 | .pvr_value = 0x00330000, | |
131 | .cpu_name = "RS64-II (northstar)", | |
132 | .cpu_features = CPU_FTRS_RS64, | |
133 | .cpu_user_features = COMMON_USER_PPC64, | |
7c03d653 | 134 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
135 | .icache_bsize = 128, |
136 | .dcache_bsize = 128, | |
137 | .num_pmcs = 8, | |
1bd2e5ae | 138 | .pmc_type = PPC_PMC_IBM, |
4920960f | 139 | .oprofile_cpu_type = "ppc64/rs64", |
7a45fb19 | 140 | .oprofile_type = PPC_OPROFILE_RS64, |
47c0bd1a | 141 | .machine_check = machine_check_generic, |
80f15dc7 | 142 | .platform = "rs64", |
4920960f SR |
143 | }, |
144 | { /* Pulsar */ | |
145 | .pvr_mask = 0xffff0000, | |
146 | .pvr_value = 0x00340000, | |
147 | .cpu_name = "RS64-III (pulsar)", | |
148 | .cpu_features = CPU_FTRS_RS64, | |
149 | .cpu_user_features = COMMON_USER_PPC64, | |
7c03d653 | 150 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
151 | .icache_bsize = 128, |
152 | .dcache_bsize = 128, | |
153 | .num_pmcs = 8, | |
1bd2e5ae | 154 | .pmc_type = PPC_PMC_IBM, |
4920960f | 155 | .oprofile_cpu_type = "ppc64/rs64", |
7a45fb19 | 156 | .oprofile_type = PPC_OPROFILE_RS64, |
47c0bd1a | 157 | .machine_check = machine_check_generic, |
80f15dc7 | 158 | .platform = "rs64", |
4920960f SR |
159 | }, |
160 | { /* I-star */ | |
161 | .pvr_mask = 0xffff0000, | |
162 | .pvr_value = 0x00360000, | |
163 | .cpu_name = "RS64-III (icestar)", | |
164 | .cpu_features = CPU_FTRS_RS64, | |
165 | .cpu_user_features = COMMON_USER_PPC64, | |
7c03d653 | 166 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
167 | .icache_bsize = 128, |
168 | .dcache_bsize = 128, | |
169 | .num_pmcs = 8, | |
1bd2e5ae | 170 | .pmc_type = PPC_PMC_IBM, |
4920960f | 171 | .oprofile_cpu_type = "ppc64/rs64", |
7a45fb19 | 172 | .oprofile_type = PPC_OPROFILE_RS64, |
47c0bd1a | 173 | .machine_check = machine_check_generic, |
80f15dc7 | 174 | .platform = "rs64", |
4920960f SR |
175 | }, |
176 | { /* S-star */ | |
177 | .pvr_mask = 0xffff0000, | |
178 | .pvr_value = 0x00370000, | |
179 | .cpu_name = "RS64-IV (sstar)", | |
180 | .cpu_features = CPU_FTRS_RS64, | |
181 | .cpu_user_features = COMMON_USER_PPC64, | |
7c03d653 | 182 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
183 | .icache_bsize = 128, |
184 | .dcache_bsize = 128, | |
185 | .num_pmcs = 8, | |
1bd2e5ae | 186 | .pmc_type = PPC_PMC_IBM, |
4920960f | 187 | .oprofile_cpu_type = "ppc64/rs64", |
7a45fb19 | 188 | .oprofile_type = PPC_OPROFILE_RS64, |
47c0bd1a | 189 | .machine_check = machine_check_generic, |
80f15dc7 | 190 | .platform = "rs64", |
4920960f SR |
191 | }, |
192 | { /* Power4 */ | |
193 | .pvr_mask = 0xffff0000, | |
194 | .pvr_value = 0x00350000, | |
195 | .cpu_name = "POWER4 (gp)", | |
196 | .cpu_features = CPU_FTRS_POWER4, | |
a7ddc5e8 | 197 | .cpu_user_features = COMMON_USER_POWER4, |
7c03d653 | 198 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
199 | .icache_bsize = 128, |
200 | .dcache_bsize = 128, | |
201 | .num_pmcs = 8, | |
1bd2e5ae | 202 | .pmc_type = PPC_PMC_IBM, |
4920960f | 203 | .oprofile_cpu_type = "ppc64/power4", |
7a45fb19 | 204 | .oprofile_type = PPC_OPROFILE_POWER4, |
47c0bd1a | 205 | .machine_check = machine_check_generic, |
80f15dc7 | 206 | .platform = "power4", |
4920960f SR |
207 | }, |
208 | { /* Power4+ */ | |
209 | .pvr_mask = 0xffff0000, | |
210 | .pvr_value = 0x00380000, | |
211 | .cpu_name = "POWER4+ (gq)", | |
212 | .cpu_features = CPU_FTRS_POWER4, | |
a7ddc5e8 | 213 | .cpu_user_features = COMMON_USER_POWER4, |
7c03d653 | 214 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
215 | .icache_bsize = 128, |
216 | .dcache_bsize = 128, | |
217 | .num_pmcs = 8, | |
1bd2e5ae | 218 | .pmc_type = PPC_PMC_IBM, |
4920960f | 219 | .oprofile_cpu_type = "ppc64/power4", |
7a45fb19 | 220 | .oprofile_type = PPC_OPROFILE_POWER4, |
47c0bd1a | 221 | .machine_check = machine_check_generic, |
80f15dc7 | 222 | .platform = "power4", |
4920960f SR |
223 | }, |
224 | { /* PPC970 */ | |
225 | .pvr_mask = 0xffff0000, | |
226 | .pvr_value = 0x00390000, | |
227 | .cpu_name = "PPC970", | |
228 | .cpu_features = CPU_FTRS_PPC970, | |
a7ddc5e8 | 229 | .cpu_user_features = COMMON_USER_POWER4 | |
4920960f | 230 | PPC_FEATURE_HAS_ALTIVEC_COMP, |
7c03d653 | 231 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
232 | .icache_bsize = 128, |
233 | .dcache_bsize = 128, | |
234 | .num_pmcs = 8, | |
1bd2e5ae | 235 | .pmc_type = PPC_PMC_IBM, |
4920960f | 236 | .cpu_setup = __setup_cpu_ppc970, |
f39b7a55 | 237 | .cpu_restore = __restore_cpu_ppc970, |
4920960f | 238 | .oprofile_cpu_type = "ppc64/970", |
7a45fb19 | 239 | .oprofile_type = PPC_OPROFILE_POWER4, |
47c0bd1a | 240 | .machine_check = machine_check_generic, |
80f15dc7 | 241 | .platform = "ppc970", |
4920960f | 242 | }, |
4920960f SR |
243 | { /* PPC970FX */ |
244 | .pvr_mask = 0xffff0000, | |
245 | .pvr_value = 0x003c0000, | |
246 | .cpu_name = "PPC970FX", | |
4920960f | 247 | .cpu_features = CPU_FTRS_PPC970, |
a7ddc5e8 | 248 | .cpu_user_features = COMMON_USER_POWER4 | |
4920960f | 249 | PPC_FEATURE_HAS_ALTIVEC_COMP, |
7c03d653 | 250 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
251 | .icache_bsize = 128, |
252 | .dcache_bsize = 128, | |
253 | .num_pmcs = 8, | |
1bd2e5ae | 254 | .pmc_type = PPC_PMC_IBM, |
4920960f | 255 | .cpu_setup = __setup_cpu_ppc970, |
f39b7a55 | 256 | .cpu_restore = __restore_cpu_ppc970, |
4920960f | 257 | .oprofile_cpu_type = "ppc64/970", |
7a45fb19 | 258 | .oprofile_type = PPC_OPROFILE_POWER4, |
47c0bd1a | 259 | .machine_check = machine_check_generic, |
80f15dc7 | 260 | .platform = "ppc970", |
3546e811 OJ |
261 | }, |
262 | { /* PPC970MP DD1.0 - no DEEPNAP, use regular 970 init */ | |
263 | .pvr_mask = 0xffffffff, | |
264 | .pvr_value = 0x00440100, | |
265 | .cpu_name = "PPC970MP", | |
266 | .cpu_features = CPU_FTRS_PPC970, | |
267 | .cpu_user_features = COMMON_USER_POWER4 | | |
268 | PPC_FEATURE_HAS_ALTIVEC_COMP, | |
7c03d653 | 269 | .mmu_features = MMU_FTR_HPTE_TABLE, |
3546e811 OJ |
270 | .icache_bsize = 128, |
271 | .dcache_bsize = 128, | |
272 | .num_pmcs = 8, | |
2fae4985 | 273 | .pmc_type = PPC_PMC_IBM, |
3546e811 OJ |
274 | .cpu_setup = __setup_cpu_ppc970, |
275 | .cpu_restore = __restore_cpu_ppc970, | |
276 | .oprofile_cpu_type = "ppc64/970MP", | |
277 | .oprofile_type = PPC_OPROFILE_POWER4, | |
47c0bd1a | 278 | .machine_check = machine_check_generic, |
3546e811 | 279 | .platform = "ppc970", |
4920960f | 280 | }, |
4920960f SR |
281 | { /* PPC970MP */ |
282 | .pvr_mask = 0xffff0000, | |
283 | .pvr_value = 0x00440000, | |
284 | .cpu_name = "PPC970MP", | |
285 | .cpu_features = CPU_FTRS_PPC970, | |
a7ddc5e8 | 286 | .cpu_user_features = COMMON_USER_POWER4 | |
4920960f | 287 | PPC_FEATURE_HAS_ALTIVEC_COMP, |
7c03d653 | 288 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
289 | .icache_bsize = 128, |
290 | .dcache_bsize = 128, | |
87af41be | 291 | .num_pmcs = 8, |
2fae4985 | 292 | .pmc_type = PPC_PMC_IBM, |
5b43d20a | 293 | .cpu_setup = __setup_cpu_ppc970MP, |
f39b7a55 | 294 | .cpu_restore = __restore_cpu_ppc970, |
fecb352f | 295 | .oprofile_cpu_type = "ppc64/970MP", |
7a45fb19 | 296 | .oprofile_type = PPC_OPROFILE_POWER4, |
47c0bd1a | 297 | .machine_check = machine_check_generic, |
80f15dc7 | 298 | .platform = "ppc970", |
4920960f | 299 | }, |
362ff7b2 JM |
300 | { /* PPC970GX */ |
301 | .pvr_mask = 0xffff0000, | |
302 | .pvr_value = 0x00450000, | |
303 | .cpu_name = "PPC970GX", | |
304 | .cpu_features = CPU_FTRS_PPC970, | |
305 | .cpu_user_features = COMMON_USER_POWER4 | | |
306 | PPC_FEATURE_HAS_ALTIVEC_COMP, | |
7c03d653 | 307 | .mmu_features = MMU_FTR_HPTE_TABLE, |
362ff7b2 JM |
308 | .icache_bsize = 128, |
309 | .dcache_bsize = 128, | |
310 | .num_pmcs = 8, | |
1bd2e5ae | 311 | .pmc_type = PPC_PMC_IBM, |
362ff7b2 JM |
312 | .cpu_setup = __setup_cpu_ppc970, |
313 | .oprofile_cpu_type = "ppc64/970", | |
314 | .oprofile_type = PPC_OPROFILE_POWER4, | |
47c0bd1a | 315 | .machine_check = machine_check_generic, |
362ff7b2 JM |
316 | .platform = "ppc970", |
317 | }, | |
3c726f8d | 318 | { /* Power5 GR */ |
4920960f SR |
319 | .pvr_mask = 0xffff0000, |
320 | .pvr_value = 0x003a0000, | |
321 | .cpu_name = "POWER5 (gr)", | |
322 | .cpu_features = CPU_FTRS_POWER5, | |
a7ddc5e8 | 323 | .cpu_user_features = COMMON_USER_POWER5, |
7c03d653 | 324 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
325 | .icache_bsize = 128, |
326 | .dcache_bsize = 128, | |
327 | .num_pmcs = 6, | |
1bd2e5ae | 328 | .pmc_type = PPC_PMC_IBM, |
4920960f | 329 | .oprofile_cpu_type = "ppc64/power5", |
7a45fb19 | 330 | .oprofile_type = PPC_OPROFILE_POWER4, |
e78dbc80 MN |
331 | /* SIHV / SIPR bits are implemented on POWER4+ (GQ) |
332 | * and above but only works on POWER5 and above | |
333 | */ | |
334 | .oprofile_mmcra_sihv = MMCRA_SIHV, | |
335 | .oprofile_mmcra_sipr = MMCRA_SIPR, | |
47c0bd1a | 336 | .machine_check = machine_check_generic, |
80f15dc7 | 337 | .platform = "power5", |
4920960f | 338 | }, |
31a12cec MW |
339 | { /* Power5++ */ |
340 | .pvr_mask = 0xffffff00, | |
341 | .pvr_value = 0x003b0300, | |
342 | .cpu_name = "POWER5+ (gs)", | |
343 | .cpu_features = CPU_FTRS_POWER5, | |
344 | .cpu_user_features = COMMON_USER_POWER5_PLUS, | |
7c03d653 | 345 | .mmu_features = MMU_FTR_HPTE_TABLE, |
31a12cec MW |
346 | .icache_bsize = 128, |
347 | .dcache_bsize = 128, | |
348 | .num_pmcs = 6, | |
349 | .oprofile_cpu_type = "ppc64/power5++", | |
350 | .oprofile_type = PPC_OPROFILE_POWER4, | |
351 | .oprofile_mmcra_sihv = MMCRA_SIHV, | |
352 | .oprofile_mmcra_sipr = MMCRA_SIPR, | |
47c0bd1a | 353 | .machine_check = machine_check_generic, |
31a12cec MW |
354 | .platform = "power5+", |
355 | }, | |
3c726f8d | 356 | { /* Power5 GS */ |
4920960f SR |
357 | .pvr_mask = 0xffff0000, |
358 | .pvr_value = 0x003b0000, | |
834608f7 | 359 | .cpu_name = "POWER5+ (gs)", |
4920960f | 360 | .cpu_features = CPU_FTRS_POWER5, |
a7ddc5e8 | 361 | .cpu_user_features = COMMON_USER_POWER5_PLUS, |
7c03d653 | 362 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
363 | .icache_bsize = 128, |
364 | .dcache_bsize = 128, | |
365 | .num_pmcs = 6, | |
1bd2e5ae | 366 | .pmc_type = PPC_PMC_IBM, |
834608f7 | 367 | .oprofile_cpu_type = "ppc64/power5+", |
7a45fb19 | 368 | .oprofile_type = PPC_OPROFILE_POWER4, |
e78dbc80 MN |
369 | .oprofile_mmcra_sihv = MMCRA_SIHV, |
370 | .oprofile_mmcra_sipr = MMCRA_SIPR, | |
47c0bd1a | 371 | .machine_check = machine_check_generic, |
80f15dc7 | 372 | .platform = "power5+", |
4920960f | 373 | }, |
974a76f5 PM |
374 | { /* POWER6 in P5+ mode; 2.04-compliant processor */ |
375 | .pvr_mask = 0xffffffff, | |
376 | .pvr_value = 0x0f000001, | |
377 | .cpu_name = "POWER5+", | |
378 | .cpu_features = CPU_FTRS_POWER5, | |
379 | .cpu_user_features = COMMON_USER_POWER5_PLUS, | |
7c03d653 | 380 | .mmu_features = MMU_FTR_HPTE_TABLE, |
974a76f5 PM |
381 | .icache_bsize = 128, |
382 | .dcache_bsize = 128, | |
47c0bd1a | 383 | .machine_check = machine_check_generic, |
79e25bac | 384 | .oprofile_cpu_type = "ppc64/compat-power5+", |
974a76f5 PM |
385 | .platform = "power5+", |
386 | }, | |
03054d51 AB |
387 | { /* Power6 */ |
388 | .pvr_mask = 0xffff0000, | |
389 | .pvr_value = 0x003e0000, | |
974a76f5 PM |
390 | .cpu_name = "POWER6 (raw)", |
391 | .cpu_features = CPU_FTRS_POWER6, | |
392 | .cpu_user_features = COMMON_USER_POWER6 | | |
393 | PPC_FEATURE_POWER6_EXT, | |
7c03d653 | 394 | .mmu_features = MMU_FTR_HPTE_TABLE, |
974a76f5 PM |
395 | .icache_bsize = 128, |
396 | .dcache_bsize = 128, | |
397 | .num_pmcs = 6, | |
2fae4985 | 398 | .pmc_type = PPC_PMC_IBM, |
974a76f5 PM |
399 | .oprofile_cpu_type = "ppc64/power6", |
400 | .oprofile_type = PPC_OPROFILE_POWER4, | |
401 | .oprofile_mmcra_sihv = POWER6_MMCRA_SIHV, | |
402 | .oprofile_mmcra_sipr = POWER6_MMCRA_SIPR, | |
403 | .oprofile_mmcra_clear = POWER6_MMCRA_THRM | | |
404 | POWER6_MMCRA_OTHER, | |
47c0bd1a | 405 | .machine_check = machine_check_generic, |
974a76f5 PM |
406 | .platform = "power6x", |
407 | }, | |
408 | { /* 2.05-compliant processor, i.e. Power6 "architected" mode */ | |
409 | .pvr_mask = 0xffffffff, | |
410 | .pvr_value = 0x0f000002, | |
411 | .cpu_name = "POWER6 (architected)", | |
03054d51 AB |
412 | .cpu_features = CPU_FTRS_POWER6, |
413 | .cpu_user_features = COMMON_USER_POWER6, | |
7c03d653 | 414 | .mmu_features = MMU_FTR_HPTE_TABLE, |
03054d51 AB |
415 | .icache_bsize = 128, |
416 | .dcache_bsize = 128, | |
47c0bd1a | 417 | .machine_check = machine_check_generic, |
79e25bac | 418 | .oprofile_cpu_type = "ppc64/compat-power6", |
03054d51 AB |
419 | .platform = "power6", |
420 | }, | |
635f5a63 JS |
421 | { /* 2.06-compliant processor, i.e. Power7 "architected" mode */ |
422 | .pvr_mask = 0xffffffff, | |
423 | .pvr_value = 0x0f000003, | |
424 | .cpu_name = "POWER7 (architected)", | |
425 | .cpu_features = CPU_FTRS_POWER7, | |
426 | .cpu_user_features = COMMON_USER_POWER7, | |
7c03d653 | 427 | .mmu_features = MMU_FTR_HPTE_TABLE, |
635f5a63 JS |
428 | .icache_bsize = 128, |
429 | .dcache_bsize = 128, | |
430 | .machine_check = machine_check_generic, | |
79e25bac | 431 | .oprofile_cpu_type = "ppc64/compat-power7", |
635f5a63 JS |
432 | .platform = "power7", |
433 | }, | |
e952e6c4 MN |
434 | { /* Power7 */ |
435 | .pvr_mask = 0xffff0000, | |
436 | .pvr_value = 0x003f0000, | |
635f5a63 | 437 | .cpu_name = "POWER7 (raw)", |
e952e6c4 MN |
438 | .cpu_features = CPU_FTRS_POWER7, |
439 | .cpu_user_features = COMMON_USER_POWER7, | |
7c03d653 | 440 | .mmu_features = MMU_FTR_HPTE_TABLE, |
e952e6c4 MN |
441 | .icache_bsize = 128, |
442 | .dcache_bsize = 128, | |
443 | .num_pmcs = 6, | |
444 | .pmc_type = PPC_PMC_IBM, | |
445 | .cpu_setup = __setup_cpu_power7, | |
446 | .cpu_restore = __restore_cpu_power7, | |
447 | .oprofile_cpu_type = "ppc64/power7", | |
448 | .oprofile_type = PPC_OPROFILE_POWER4, | |
449 | .oprofile_mmcra_sihv = POWER6_MMCRA_SIHV, | |
450 | .oprofile_mmcra_sipr = POWER6_MMCRA_SIPR, | |
451 | .oprofile_mmcra_clear = POWER6_MMCRA_THRM | | |
452 | POWER6_MMCRA_OTHER, | |
453 | .platform = "power7", | |
454 | }, | |
c902be71 | 455 | { /* Cell Broadband Engine */ |
4920960f SR |
456 | .pvr_mask = 0xffff0000, |
457 | .pvr_value = 0x00700000, | |
458 | .cpu_name = "Cell Broadband Engine", | |
459 | .cpu_features = CPU_FTRS_CELL, | |
460 | .cpu_user_features = COMMON_USER_PPC64 | | |
aa5cb021 BH |
461 | PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP | |
462 | PPC_FEATURE_SMT, | |
7c03d653 | 463 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
464 | .icache_bsize = 128, |
465 | .dcache_bsize = 128, | |
18f2190d | 466 | .num_pmcs = 4, |
1bd2e5ae | 467 | .pmc_type = PPC_PMC_IBM, |
18f2190d MJ |
468 | .oprofile_cpu_type = "ppc64/cell-be", |
469 | .oprofile_type = PPC_OPROFILE_CELL, | |
47c0bd1a | 470 | .machine_check = machine_check_generic, |
80f15dc7 | 471 | .platform = "ppc-cell-be", |
4920960f | 472 | }, |
b3ebd1d8 OJ |
473 | { /* PA Semi PA6T */ |
474 | .pvr_mask = 0x7fff0000, | |
475 | .pvr_value = 0x00900000, | |
476 | .cpu_name = "PA6T", | |
477 | .cpu_features = CPU_FTRS_PA6T, | |
478 | .cpu_user_features = COMMON_USER_PA6T, | |
7c03d653 | 479 | .mmu_features = MMU_FTR_HPTE_TABLE, |
b3ebd1d8 OJ |
480 | .icache_bsize = 64, |
481 | .dcache_bsize = 64, | |
482 | .num_pmcs = 6, | |
1bd2e5ae | 483 | .pmc_type = PPC_PMC_PA6T, |
1199919b OJ |
484 | .cpu_setup = __setup_cpu_pa6t, |
485 | .cpu_restore = __restore_cpu_pa6t, | |
25fc530e OJ |
486 | .oprofile_cpu_type = "ppc64/pa6t", |
487 | .oprofile_type = PPC_OPROFILE_PA6T, | |
47c0bd1a | 488 | .machine_check = machine_check_generic, |
b3ebd1d8 OJ |
489 | .platform = "pa6t", |
490 | }, | |
4920960f SR |
491 | { /* default match */ |
492 | .pvr_mask = 0x00000000, | |
493 | .pvr_value = 0x00000000, | |
494 | .cpu_name = "POWER4 (compatible)", | |
495 | .cpu_features = CPU_FTRS_COMPATIBLE, | |
496 | .cpu_user_features = COMMON_USER_PPC64, | |
7c03d653 | 497 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
498 | .icache_bsize = 128, |
499 | .dcache_bsize = 128, | |
500 | .num_pmcs = 6, | |
1bd2e5ae | 501 | .pmc_type = PPC_PMC_IBM, |
47c0bd1a | 502 | .machine_check = machine_check_generic, |
80f15dc7 | 503 | .platform = "power4", |
4920960f SR |
504 | } |
505 | #endif /* CONFIG_PPC64 */ | |
506 | #ifdef CONFIG_PPC32 | |
1da177e4 | 507 | #if CLASSIC_PPC |
4920960f | 508 | { /* 601 */ |
1da177e4 LT |
509 | .pvr_mask = 0xffff0000, |
510 | .pvr_value = 0x00010000, | |
511 | .cpu_name = "601", | |
10b35d99 | 512 | .cpu_features = CPU_FTRS_PPC601, |
4920960f | 513 | .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR | |
d8e998c5 | 514 | PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB, |
7c03d653 | 515 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
516 | .icache_bsize = 32, |
517 | .dcache_bsize = 32, | |
47c0bd1a | 518 | .machine_check = machine_check_generic, |
80f15dc7 | 519 | .platform = "ppc601", |
1da177e4 LT |
520 | }, |
521 | { /* 603 */ | |
522 | .pvr_mask = 0xffff0000, | |
523 | .pvr_value = 0x00030000, | |
524 | .cpu_name = "603", | |
10b35d99 | 525 | .cpu_features = CPU_FTRS_603, |
fab5db97 | 526 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 527 | .mmu_features = 0, |
1da177e4 LT |
528 | .icache_bsize = 32, |
529 | .dcache_bsize = 32, | |
80f15dc7 | 530 | .cpu_setup = __setup_cpu_603, |
47c0bd1a | 531 | .machine_check = machine_check_generic, |
80f15dc7 | 532 | .platform = "ppc603", |
1da177e4 LT |
533 | }, |
534 | { /* 603e */ | |
535 | .pvr_mask = 0xffff0000, | |
536 | .pvr_value = 0x00060000, | |
537 | .cpu_name = "603e", | |
10b35d99 | 538 | .cpu_features = CPU_FTRS_603, |
fab5db97 | 539 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 540 | .mmu_features = 0, |
1da177e4 LT |
541 | .icache_bsize = 32, |
542 | .dcache_bsize = 32, | |
80f15dc7 | 543 | .cpu_setup = __setup_cpu_603, |
47c0bd1a | 544 | .machine_check = machine_check_generic, |
80f15dc7 | 545 | .platform = "ppc603", |
1da177e4 LT |
546 | }, |
547 | { /* 603ev */ | |
548 | .pvr_mask = 0xffff0000, | |
549 | .pvr_value = 0x00070000, | |
550 | .cpu_name = "603ev", | |
10b35d99 | 551 | .cpu_features = CPU_FTRS_603, |
fab5db97 | 552 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 553 | .mmu_features = 0, |
1da177e4 LT |
554 | .icache_bsize = 32, |
555 | .dcache_bsize = 32, | |
80f15dc7 | 556 | .cpu_setup = __setup_cpu_603, |
47c0bd1a | 557 | .machine_check = machine_check_generic, |
80f15dc7 | 558 | .platform = "ppc603", |
1da177e4 LT |
559 | }, |
560 | { /* 604 */ | |
561 | .pvr_mask = 0xffff0000, | |
562 | .pvr_value = 0x00040000, | |
563 | .cpu_name = "604", | |
10b35d99 | 564 | .cpu_features = CPU_FTRS_604, |
fab5db97 | 565 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 566 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
567 | .icache_bsize = 32, |
568 | .dcache_bsize = 32, | |
569 | .num_pmcs = 2, | |
80f15dc7 | 570 | .cpu_setup = __setup_cpu_604, |
47c0bd1a | 571 | .machine_check = machine_check_generic, |
80f15dc7 | 572 | .platform = "ppc604", |
1da177e4 LT |
573 | }, |
574 | { /* 604e */ | |
575 | .pvr_mask = 0xfffff000, | |
576 | .pvr_value = 0x00090000, | |
577 | .cpu_name = "604e", | |
10b35d99 | 578 | .cpu_features = CPU_FTRS_604, |
fab5db97 | 579 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 580 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
581 | .icache_bsize = 32, |
582 | .dcache_bsize = 32, | |
583 | .num_pmcs = 4, | |
80f15dc7 | 584 | .cpu_setup = __setup_cpu_604, |
47c0bd1a | 585 | .machine_check = machine_check_generic, |
80f15dc7 | 586 | .platform = "ppc604", |
1da177e4 LT |
587 | }, |
588 | { /* 604r */ | |
589 | .pvr_mask = 0xffff0000, | |
590 | .pvr_value = 0x00090000, | |
591 | .cpu_name = "604r", | |
10b35d99 | 592 | .cpu_features = CPU_FTRS_604, |
fab5db97 | 593 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 594 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
595 | .icache_bsize = 32, |
596 | .dcache_bsize = 32, | |
597 | .num_pmcs = 4, | |
80f15dc7 | 598 | .cpu_setup = __setup_cpu_604, |
47c0bd1a | 599 | .machine_check = machine_check_generic, |
80f15dc7 | 600 | .platform = "ppc604", |
1da177e4 LT |
601 | }, |
602 | { /* 604ev */ | |
603 | .pvr_mask = 0xffff0000, | |
604 | .pvr_value = 0x000a0000, | |
605 | .cpu_name = "604ev", | |
10b35d99 | 606 | .cpu_features = CPU_FTRS_604, |
fab5db97 | 607 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 608 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
609 | .icache_bsize = 32, |
610 | .dcache_bsize = 32, | |
611 | .num_pmcs = 4, | |
80f15dc7 | 612 | .cpu_setup = __setup_cpu_604, |
47c0bd1a | 613 | .machine_check = machine_check_generic, |
80f15dc7 | 614 | .platform = "ppc604", |
1da177e4 LT |
615 | }, |
616 | { /* 740/750 (0x4202, don't support TAU ?) */ | |
617 | .pvr_mask = 0xffffffff, | |
618 | .pvr_value = 0x00084202, | |
619 | .cpu_name = "740/750", | |
10b35d99 | 620 | .cpu_features = CPU_FTRS_740_NOTAU, |
fab5db97 | 621 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 622 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
623 | .icache_bsize = 32, |
624 | .dcache_bsize = 32, | |
625 | .num_pmcs = 4, | |
80f15dc7 | 626 | .cpu_setup = __setup_cpu_750, |
47c0bd1a | 627 | .machine_check = machine_check_generic, |
80f15dc7 | 628 | .platform = "ppc750", |
1da177e4 | 629 | }, |
1da177e4 LT |
630 | { /* 750CX (80100 and 8010x?) */ |
631 | .pvr_mask = 0xfffffff0, | |
632 | .pvr_value = 0x00080100, | |
633 | .cpu_name = "750CX", | |
10b35d99 | 634 | .cpu_features = CPU_FTRS_750, |
fab5db97 | 635 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 636 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
637 | .icache_bsize = 32, |
638 | .dcache_bsize = 32, | |
639 | .num_pmcs = 4, | |
80f15dc7 | 640 | .cpu_setup = __setup_cpu_750cx, |
47c0bd1a | 641 | .machine_check = machine_check_generic, |
80f15dc7 | 642 | .platform = "ppc750", |
1da177e4 LT |
643 | }, |
644 | { /* 750CX (82201 and 82202) */ | |
645 | .pvr_mask = 0xfffffff0, | |
646 | .pvr_value = 0x00082200, | |
647 | .cpu_name = "750CX", | |
10b35d99 | 648 | .cpu_features = CPU_FTRS_750, |
fab5db97 | 649 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 650 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
651 | .icache_bsize = 32, |
652 | .dcache_bsize = 32, | |
653 | .num_pmcs = 4, | |
b950bdd0 | 654 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 655 | .cpu_setup = __setup_cpu_750cx, |
47c0bd1a | 656 | .machine_check = machine_check_generic, |
80f15dc7 | 657 | .platform = "ppc750", |
1da177e4 LT |
658 | }, |
659 | { /* 750CXe (82214) */ | |
660 | .pvr_mask = 0xfffffff0, | |
661 | .pvr_value = 0x00082210, | |
662 | .cpu_name = "750CXe", | |
10b35d99 | 663 | .cpu_features = CPU_FTRS_750, |
fab5db97 | 664 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 665 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
666 | .icache_bsize = 32, |
667 | .dcache_bsize = 32, | |
668 | .num_pmcs = 4, | |
b950bdd0 | 669 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 670 | .cpu_setup = __setup_cpu_750cx, |
47c0bd1a | 671 | .machine_check = machine_check_generic, |
80f15dc7 | 672 | .platform = "ppc750", |
1da177e4 | 673 | }, |
7c31625a AO |
674 | { /* 750CXe "Gekko" (83214) */ |
675 | .pvr_mask = 0xffffffff, | |
676 | .pvr_value = 0x00083214, | |
677 | .cpu_name = "750CXe", | |
10b35d99 | 678 | .cpu_features = CPU_FTRS_750, |
fab5db97 | 679 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 680 | .mmu_features = MMU_FTR_HPTE_TABLE, |
7c31625a AO |
681 | .icache_bsize = 32, |
682 | .dcache_bsize = 32, | |
683 | .num_pmcs = 4, | |
b950bdd0 | 684 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 685 | .cpu_setup = __setup_cpu_750cx, |
47c0bd1a | 686 | .machine_check = machine_check_generic, |
80f15dc7 | 687 | .platform = "ppc750", |
7c31625a | 688 | }, |
cfbff8a3 JM |
689 | { /* 750CL */ |
690 | .pvr_mask = 0xfffff0f0, | |
691 | .pvr_value = 0x00087010, | |
692 | .cpu_name = "750CL", | |
a14c4508 | 693 | .cpu_features = CPU_FTRS_750CL, |
cfbff8a3 | 694 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 695 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
cfbff8a3 JM |
696 | .icache_bsize = 32, |
697 | .dcache_bsize = 32, | |
698 | .num_pmcs = 4, | |
b950bdd0 | 699 | .pmc_type = PPC_PMC_IBM, |
a14c4508 | 700 | .cpu_setup = __setup_cpu_750, |
47c0bd1a | 701 | .machine_check = machine_check_generic, |
cfbff8a3 JM |
702 | .platform = "ppc750", |
703 | }, | |
ac1ff047 AO |
704 | { /* 745/755 */ |
705 | .pvr_mask = 0xfffff000, | |
706 | .pvr_value = 0x00083000, | |
707 | .cpu_name = "745/755", | |
10b35d99 | 708 | .cpu_features = CPU_FTRS_750, |
fab5db97 | 709 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 710 | .mmu_features = MMU_FTR_HPTE_TABLE, |
ac1ff047 AO |
711 | .icache_bsize = 32, |
712 | .dcache_bsize = 32, | |
713 | .num_pmcs = 4, | |
b950bdd0 | 714 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 715 | .cpu_setup = __setup_cpu_750, |
47c0bd1a | 716 | .machine_check = machine_check_generic, |
80f15dc7 | 717 | .platform = "ppc750", |
ac1ff047 | 718 | }, |
1da177e4 LT |
719 | { /* 750FX rev 1.x */ |
720 | .pvr_mask = 0xffffff00, | |
721 | .pvr_value = 0x70000100, | |
722 | .cpu_name = "750FX", | |
10b35d99 | 723 | .cpu_features = CPU_FTRS_750FX1, |
fab5db97 | 724 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 725 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
726 | .icache_bsize = 32, |
727 | .dcache_bsize = 32, | |
728 | .num_pmcs = 4, | |
b950bdd0 | 729 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 730 | .cpu_setup = __setup_cpu_750, |
47c0bd1a | 731 | .machine_check = machine_check_generic, |
80f15dc7 | 732 | .platform = "ppc750", |
1da177e4 LT |
733 | }, |
734 | { /* 750FX rev 2.0 must disable HID0[DPM] */ | |
735 | .pvr_mask = 0xffffffff, | |
736 | .pvr_value = 0x70000200, | |
737 | .cpu_name = "750FX", | |
10b35d99 | 738 | .cpu_features = CPU_FTRS_750FX2, |
fab5db97 | 739 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 740 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
741 | .icache_bsize = 32, |
742 | .dcache_bsize = 32, | |
743 | .num_pmcs = 4, | |
b950bdd0 | 744 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 745 | .cpu_setup = __setup_cpu_750, |
47c0bd1a | 746 | .machine_check = machine_check_generic, |
80f15dc7 | 747 | .platform = "ppc750", |
1da177e4 LT |
748 | }, |
749 | { /* 750FX (All revs except 2.0) */ | |
750 | .pvr_mask = 0xffff0000, | |
751 | .pvr_value = 0x70000000, | |
752 | .cpu_name = "750FX", | |
10b35d99 | 753 | .cpu_features = CPU_FTRS_750FX, |
fab5db97 | 754 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 755 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
756 | .icache_bsize = 32, |
757 | .dcache_bsize = 32, | |
758 | .num_pmcs = 4, | |
b950bdd0 | 759 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 760 | .cpu_setup = __setup_cpu_750fx, |
47c0bd1a | 761 | .machine_check = machine_check_generic, |
80f15dc7 | 762 | .platform = "ppc750", |
1da177e4 LT |
763 | }, |
764 | { /* 750GX */ | |
765 | .pvr_mask = 0xffff0000, | |
766 | .pvr_value = 0x70020000, | |
767 | .cpu_name = "750GX", | |
10b35d99 | 768 | .cpu_features = CPU_FTRS_750GX, |
fab5db97 | 769 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 770 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
771 | .icache_bsize = 32, |
772 | .dcache_bsize = 32, | |
773 | .num_pmcs = 4, | |
b950bdd0 | 774 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 775 | .cpu_setup = __setup_cpu_750fx, |
47c0bd1a | 776 | .machine_check = machine_check_generic, |
80f15dc7 | 777 | .platform = "ppc750", |
1da177e4 LT |
778 | }, |
779 | { /* 740/750 (L2CR bit need fixup for 740) */ | |
780 | .pvr_mask = 0xffff0000, | |
781 | .pvr_value = 0x00080000, | |
782 | .cpu_name = "740/750", | |
10b35d99 | 783 | .cpu_features = CPU_FTRS_740, |
fab5db97 | 784 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 785 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
786 | .icache_bsize = 32, |
787 | .dcache_bsize = 32, | |
788 | .num_pmcs = 4, | |
b950bdd0 | 789 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 790 | .cpu_setup = __setup_cpu_750, |
47c0bd1a | 791 | .machine_check = machine_check_generic, |
80f15dc7 | 792 | .platform = "ppc750", |
1da177e4 LT |
793 | }, |
794 | { /* 7400 rev 1.1 ? (no TAU) */ | |
795 | .pvr_mask = 0xffffffff, | |
796 | .pvr_value = 0x000c1101, | |
797 | .cpu_name = "7400 (1.1)", | |
10b35d99 | 798 | .cpu_features = CPU_FTRS_7400_NOTAU, |
fab5db97 PM |
799 | .cpu_user_features = COMMON_USER | |
800 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 801 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
802 | .icache_bsize = 32, |
803 | .dcache_bsize = 32, | |
804 | .num_pmcs = 4, | |
b950bdd0 | 805 | .pmc_type = PPC_PMC_G4, |
80f15dc7 | 806 | .cpu_setup = __setup_cpu_7400, |
47c0bd1a | 807 | .machine_check = machine_check_generic, |
80f15dc7 | 808 | .platform = "ppc7400", |
1da177e4 LT |
809 | }, |
810 | { /* 7400 */ | |
811 | .pvr_mask = 0xffff0000, | |
812 | .pvr_value = 0x000c0000, | |
813 | .cpu_name = "7400", | |
10b35d99 | 814 | .cpu_features = CPU_FTRS_7400, |
fab5db97 PM |
815 | .cpu_user_features = COMMON_USER | |
816 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 817 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
818 | .icache_bsize = 32, |
819 | .dcache_bsize = 32, | |
820 | .num_pmcs = 4, | |
b950bdd0 | 821 | .pmc_type = PPC_PMC_G4, |
80f15dc7 | 822 | .cpu_setup = __setup_cpu_7400, |
47c0bd1a | 823 | .machine_check = machine_check_generic, |
80f15dc7 | 824 | .platform = "ppc7400", |
1da177e4 LT |
825 | }, |
826 | { /* 7410 */ | |
827 | .pvr_mask = 0xffff0000, | |
828 | .pvr_value = 0x800c0000, | |
829 | .cpu_name = "7410", | |
10b35d99 | 830 | .cpu_features = CPU_FTRS_7400, |
fab5db97 PM |
831 | .cpu_user_features = COMMON_USER | |
832 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 833 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
834 | .icache_bsize = 32, |
835 | .dcache_bsize = 32, | |
836 | .num_pmcs = 4, | |
b950bdd0 | 837 | .pmc_type = PPC_PMC_G4, |
80f15dc7 | 838 | .cpu_setup = __setup_cpu_7410, |
47c0bd1a | 839 | .machine_check = machine_check_generic, |
80f15dc7 | 840 | .platform = "ppc7400", |
1da177e4 LT |
841 | }, |
842 | { /* 7450 2.0 - no doze/nap */ | |
843 | .pvr_mask = 0xffffffff, | |
844 | .pvr_value = 0x80000200, | |
845 | .cpu_name = "7450", | |
10b35d99 | 846 | .cpu_features = CPU_FTRS_7450_20, |
fab5db97 PM |
847 | .cpu_user_features = COMMON_USER | |
848 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 849 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
850 | .icache_bsize = 32, |
851 | .dcache_bsize = 32, | |
852 | .num_pmcs = 6, | |
b950bdd0 | 853 | .pmc_type = PPC_PMC_G4, |
555d97ac | 854 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 855 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 856 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 857 | .machine_check = machine_check_generic, |
80f15dc7 | 858 | .platform = "ppc7450", |
1da177e4 LT |
859 | }, |
860 | { /* 7450 2.1 */ | |
861 | .pvr_mask = 0xffffffff, | |
862 | .pvr_value = 0x80000201, | |
863 | .cpu_name = "7450", | |
10b35d99 | 864 | .cpu_features = CPU_FTRS_7450_21, |
fab5db97 PM |
865 | .cpu_user_features = COMMON_USER | |
866 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 867 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
868 | .icache_bsize = 32, |
869 | .dcache_bsize = 32, | |
870 | .num_pmcs = 6, | |
b950bdd0 | 871 | .pmc_type = PPC_PMC_G4, |
555d97ac | 872 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 873 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 874 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 875 | .machine_check = machine_check_generic, |
80f15dc7 | 876 | .platform = "ppc7450", |
1da177e4 LT |
877 | }, |
878 | { /* 7450 2.3 and newer */ | |
879 | .pvr_mask = 0xffff0000, | |
880 | .pvr_value = 0x80000000, | |
881 | .cpu_name = "7450", | |
10b35d99 | 882 | .cpu_features = CPU_FTRS_7450_23, |
fab5db97 PM |
883 | .cpu_user_features = COMMON_USER | |
884 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 885 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
886 | .icache_bsize = 32, |
887 | .dcache_bsize = 32, | |
888 | .num_pmcs = 6, | |
b950bdd0 | 889 | .pmc_type = PPC_PMC_G4, |
555d97ac | 890 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 891 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 892 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 893 | .machine_check = machine_check_generic, |
80f15dc7 | 894 | .platform = "ppc7450", |
1da177e4 LT |
895 | }, |
896 | { /* 7455 rev 1.x */ | |
897 | .pvr_mask = 0xffffff00, | |
898 | .pvr_value = 0x80010100, | |
899 | .cpu_name = "7455", | |
10b35d99 | 900 | .cpu_features = CPU_FTRS_7455_1, |
fab5db97 PM |
901 | .cpu_user_features = COMMON_USER | |
902 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 903 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
904 | .icache_bsize = 32, |
905 | .dcache_bsize = 32, | |
906 | .num_pmcs = 6, | |
b950bdd0 | 907 | .pmc_type = PPC_PMC_G4, |
555d97ac | 908 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 909 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 910 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 911 | .machine_check = machine_check_generic, |
80f15dc7 | 912 | .platform = "ppc7450", |
1da177e4 LT |
913 | }, |
914 | { /* 7455 rev 2.0 */ | |
915 | .pvr_mask = 0xffffffff, | |
916 | .pvr_value = 0x80010200, | |
917 | .cpu_name = "7455", | |
10b35d99 | 918 | .cpu_features = CPU_FTRS_7455_20, |
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 | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
922 | .icache_bsize = 32, |
923 | .dcache_bsize = 32, | |
924 | .num_pmcs = 6, | |
b950bdd0 | 925 | .pmc_type = PPC_PMC_G4, |
555d97ac | 926 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 927 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 928 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 929 | .machine_check = machine_check_generic, |
80f15dc7 | 930 | .platform = "ppc7450", |
1da177e4 LT |
931 | }, |
932 | { /* 7455 others */ | |
933 | .pvr_mask = 0xffff0000, | |
934 | .pvr_value = 0x80010000, | |
935 | .cpu_name = "7455", | |
10b35d99 | 936 | .cpu_features = CPU_FTRS_7455, |
fab5db97 PM |
937 | .cpu_user_features = COMMON_USER | |
938 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 939 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
940 | .icache_bsize = 32, |
941 | .dcache_bsize = 32, | |
942 | .num_pmcs = 6, | |
b950bdd0 | 943 | .pmc_type = PPC_PMC_G4, |
555d97ac | 944 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 945 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 946 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 947 | .machine_check = machine_check_generic, |
80f15dc7 | 948 | .platform = "ppc7450", |
1da177e4 LT |
949 | }, |
950 | { /* 7447/7457 Rev 1.0 */ | |
951 | .pvr_mask = 0xffffffff, | |
952 | .pvr_value = 0x80020100, | |
953 | .cpu_name = "7447/7457", | |
10b35d99 | 954 | .cpu_features = CPU_FTRS_7447_10, |
fab5db97 PM |
955 | .cpu_user_features = COMMON_USER | |
956 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 957 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
958 | .icache_bsize = 32, |
959 | .dcache_bsize = 32, | |
960 | .num_pmcs = 6, | |
b950bdd0 | 961 | .pmc_type = PPC_PMC_G4, |
555d97ac | 962 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 963 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 964 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 965 | .machine_check = machine_check_generic, |
80f15dc7 | 966 | .platform = "ppc7450", |
1da177e4 LT |
967 | }, |
968 | { /* 7447/7457 Rev 1.1 */ | |
969 | .pvr_mask = 0xffffffff, | |
970 | .pvr_value = 0x80020101, | |
971 | .cpu_name = "7447/7457", | |
10b35d99 | 972 | .cpu_features = CPU_FTRS_7447_10, |
fab5db97 PM |
973 | .cpu_user_features = COMMON_USER | |
974 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 975 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
976 | .icache_bsize = 32, |
977 | .dcache_bsize = 32, | |
978 | .num_pmcs = 6, | |
b950bdd0 | 979 | .pmc_type = PPC_PMC_G4, |
555d97ac | 980 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 981 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 982 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 983 | .machine_check = machine_check_generic, |
80f15dc7 | 984 | .platform = "ppc7450", |
1da177e4 LT |
985 | }, |
986 | { /* 7447/7457 Rev 1.2 and later */ | |
987 | .pvr_mask = 0xffff0000, | |
988 | .pvr_value = 0x80020000, | |
989 | .cpu_name = "7447/7457", | |
10b35d99 | 990 | .cpu_features = CPU_FTRS_7447, |
fab5db97 | 991 | .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, |
7c03d653 | 992 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
993 | .icache_bsize = 32, |
994 | .dcache_bsize = 32, | |
995 | .num_pmcs = 6, | |
b950bdd0 | 996 | .pmc_type = PPC_PMC_G4, |
555d97ac | 997 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 998 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 999 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 1000 | .machine_check = machine_check_generic, |
80f15dc7 | 1001 | .platform = "ppc7450", |
1da177e4 LT |
1002 | }, |
1003 | { /* 7447A */ | |
1004 | .pvr_mask = 0xffff0000, | |
1005 | .pvr_value = 0x80030000, | |
1006 | .cpu_name = "7447A", | |
10b35d99 | 1007 | .cpu_features = CPU_FTRS_7447A, |
fab5db97 PM |
1008 | .cpu_user_features = COMMON_USER | |
1009 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 1010 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
bbde630b KG |
1011 | .icache_bsize = 32, |
1012 | .dcache_bsize = 32, | |
1013 | .num_pmcs = 6, | |
b950bdd0 | 1014 | .pmc_type = PPC_PMC_G4, |
555d97ac | 1015 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 1016 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 1017 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 1018 | .machine_check = machine_check_generic, |
80f15dc7 | 1019 | .platform = "ppc7450", |
bbde630b KG |
1020 | }, |
1021 | { /* 7448 */ | |
1022 | .pvr_mask = 0xffff0000, | |
1023 | .pvr_value = 0x80040000, | |
1024 | .cpu_name = "7448", | |
3d372548 | 1025 | .cpu_features = CPU_FTRS_7448, |
fab5db97 PM |
1026 | .cpu_user_features = COMMON_USER | |
1027 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 1028 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
1029 | .icache_bsize = 32, |
1030 | .dcache_bsize = 32, | |
1031 | .num_pmcs = 6, | |
b950bdd0 | 1032 | .pmc_type = PPC_PMC_G4, |
555d97ac | 1033 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 1034 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 1035 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 1036 | .machine_check = machine_check_generic, |
80f15dc7 | 1037 | .platform = "ppc7450", |
1da177e4 LT |
1038 | }, |
1039 | { /* 82xx (8240, 8245, 8260 are all 603e cores) */ | |
1040 | .pvr_mask = 0x7fff0000, | |
1041 | .pvr_value = 0x00810000, | |
1042 | .cpu_name = "82xx", | |
10b35d99 | 1043 | .cpu_features = CPU_FTRS_82XX, |
4920960f | 1044 | .cpu_user_features = COMMON_USER, |
7c03d653 | 1045 | .mmu_features = 0, |
1da177e4 LT |
1046 | .icache_bsize = 32, |
1047 | .dcache_bsize = 32, | |
80f15dc7 | 1048 | .cpu_setup = __setup_cpu_603, |
47c0bd1a | 1049 | .machine_check = machine_check_generic, |
80f15dc7 | 1050 | .platform = "ppc603", |
1da177e4 LT |
1051 | }, |
1052 | { /* All G2_LE (603e core, plus some) have the same pvr */ | |
1053 | .pvr_mask = 0x7fff0000, | |
1054 | .pvr_value = 0x00820000, | |
1055 | .cpu_name = "G2_LE", | |
10b35d99 | 1056 | .cpu_features = CPU_FTRS_G2_LE, |
4920960f | 1057 | .cpu_user_features = COMMON_USER, |
7c03d653 | 1058 | .mmu_features = MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
1059 | .icache_bsize = 32, |
1060 | .dcache_bsize = 32, | |
80f15dc7 | 1061 | .cpu_setup = __setup_cpu_603, |
47c0bd1a | 1062 | .machine_check = machine_check_generic, |
80f15dc7 | 1063 | .platform = "ppc603", |
1da177e4 | 1064 | }, |
6c4a2501 | 1065 | { /* e300c1 (a 603e core, plus some) on 83xx */ |
1da177e4 LT |
1066 | .pvr_mask = 0x7fff0000, |
1067 | .pvr_value = 0x00830000, | |
6c4a2501 | 1068 | .cpu_name = "e300c1", |
10b35d99 | 1069 | .cpu_features = CPU_FTRS_E300, |
4920960f | 1070 | .cpu_user_features = COMMON_USER, |
7c03d653 | 1071 | .mmu_features = MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
1072 | .icache_bsize = 32, |
1073 | .dcache_bsize = 32, | |
80f15dc7 | 1074 | .cpu_setup = __setup_cpu_603, |
47c0bd1a | 1075 | .machine_check = machine_check_generic, |
80f15dc7 | 1076 | .platform = "ppc603", |
1da177e4 | 1077 | }, |
6c4a2501 KP |
1078 | { /* e300c2 (an e300c1 core, plus some, minus FPU) on 83xx */ |
1079 | .pvr_mask = 0x7fff0000, | |
1080 | .pvr_value = 0x00840000, | |
1081 | .cpu_name = "e300c2", | |
aa42c69c | 1082 | .cpu_features = CPU_FTRS_E300C2, |
6c4a2501 | 1083 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
7c03d653 | 1084 | .mmu_features = MMU_FTR_USE_HIGH_BATS, |
6c4a2501 KP |
1085 | .icache_bsize = 32, |
1086 | .dcache_bsize = 32, | |
1087 | .cpu_setup = __setup_cpu_603, | |
47c0bd1a | 1088 | .machine_check = machine_check_generic, |
6c4a2501 KP |
1089 | .platform = "ppc603", |
1090 | }, | |
a58d5244 | 1091 | { /* e300c3 (e300c1, plus one IU, half cache size) on 83xx */ |
57933f8f SW |
1092 | .pvr_mask = 0x7fff0000, |
1093 | .pvr_value = 0x00850000, | |
1094 | .cpu_name = "e300c3", | |
1095 | .cpu_features = CPU_FTRS_E300, | |
1096 | .cpu_user_features = COMMON_USER, | |
7c03d653 | 1097 | .mmu_features = MMU_FTR_USE_HIGH_BATS, |
57933f8f SW |
1098 | .icache_bsize = 32, |
1099 | .dcache_bsize = 32, | |
1100 | .cpu_setup = __setup_cpu_603, | |
1347a2c1 AF |
1101 | .num_pmcs = 4, |
1102 | .oprofile_cpu_type = "ppc/e300", | |
1103 | .oprofile_type = PPC_OPROFILE_FSL_EMB, | |
57933f8f SW |
1104 | .platform = "ppc603", |
1105 | }, | |
a58d5244 LY |
1106 | { /* e300c4 (e300c1, plus one IU) */ |
1107 | .pvr_mask = 0x7fff0000, | |
1108 | .pvr_value = 0x00860000, | |
1109 | .cpu_name = "e300c4", | |
1110 | .cpu_features = CPU_FTRS_E300, | |
1111 | .cpu_user_features = COMMON_USER, | |
7c03d653 | 1112 | .mmu_features = MMU_FTR_USE_HIGH_BATS, |
a58d5244 LY |
1113 | .icache_bsize = 32, |
1114 | .dcache_bsize = 32, | |
1115 | .cpu_setup = __setup_cpu_603, | |
47c0bd1a | 1116 | .machine_check = machine_check_generic, |
1347a2c1 AF |
1117 | .num_pmcs = 4, |
1118 | .oprofile_cpu_type = "ppc/e300", | |
1119 | .oprofile_type = PPC_OPROFILE_FSL_EMB, | |
a58d5244 LY |
1120 | .platform = "ppc603", |
1121 | }, | |
1da177e4 LT |
1122 | { /* default match, we assume split I/D cache & TB (non-601)... */ |
1123 | .pvr_mask = 0x00000000, | |
1124 | .pvr_value = 0x00000000, | |
1125 | .cpu_name = "(generic PPC)", | |
10b35d99 | 1126 | .cpu_features = CPU_FTRS_CLASSIC32, |
4920960f | 1127 | .cpu_user_features = COMMON_USER, |
7c03d653 | 1128 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
1129 | .icache_bsize = 32, |
1130 | .dcache_bsize = 32, | |
47c0bd1a | 1131 | .machine_check = machine_check_generic, |
80f15dc7 | 1132 | .platform = "ppc603", |
1da177e4 LT |
1133 | }, |
1134 | #endif /* CLASSIC_PPC */ | |
1da177e4 LT |
1135 | #ifdef CONFIG_8xx |
1136 | { /* 8xx */ | |
1137 | .pvr_mask = 0xffff0000, | |
1138 | .pvr_value = 0x00500000, | |
1139 | .cpu_name = "8xx", | |
1140 | /* CPU_FTR_MAYBE_CAN_DOZE is possible, | |
1141 | * if the 8xx code is there.... */ | |
10b35d99 | 1142 | .cpu_features = CPU_FTRS_8XX, |
1da177e4 | 1143 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
7c03d653 | 1144 | .mmu_features = MMU_FTR_TYPE_8xx, |
1da177e4 LT |
1145 | .icache_bsize = 16, |
1146 | .dcache_bsize = 16, | |
80f15dc7 | 1147 | .platform = "ppc823", |
1da177e4 LT |
1148 | }, |
1149 | #endif /* CONFIG_8xx */ | |
1150 | #ifdef CONFIG_40x | |
1151 | { /* 403GC */ | |
1152 | .pvr_mask = 0xffffff00, | |
1153 | .pvr_value = 0x00200200, | |
1154 | .cpu_name = "403GC", | |
10b35d99 | 1155 | .cpu_features = CPU_FTRS_40X, |
1da177e4 | 1156 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
7c03d653 | 1157 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1158 | .icache_bsize = 16, |
1159 | .dcache_bsize = 16, | |
47c0bd1a | 1160 | .machine_check = machine_check_4xx, |
80f15dc7 | 1161 | .platform = "ppc403", |
1da177e4 LT |
1162 | }, |
1163 | { /* 403GCX */ | |
1164 | .pvr_mask = 0xffffff00, | |
1165 | .pvr_value = 0x00201400, | |
1166 | .cpu_name = "403GCX", | |
10b35d99 | 1167 | .cpu_features = CPU_FTRS_40X, |
d8e998c5 BH |
1168 | .cpu_user_features = PPC_FEATURE_32 | |
1169 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB, | |
7c03d653 | 1170 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1171 | .icache_bsize = 16, |
1172 | .dcache_bsize = 16, | |
47c0bd1a | 1173 | .machine_check = machine_check_4xx, |
80f15dc7 | 1174 | .platform = "ppc403", |
1da177e4 LT |
1175 | }, |
1176 | { /* 403G ?? */ | |
1177 | .pvr_mask = 0xffff0000, | |
1178 | .pvr_value = 0x00200000, | |
1179 | .cpu_name = "403G ??", | |
10b35d99 | 1180 | .cpu_features = CPU_FTRS_40X, |
1da177e4 | 1181 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
7c03d653 | 1182 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1183 | .icache_bsize = 16, |
1184 | .dcache_bsize = 16, | |
47c0bd1a | 1185 | .machine_check = machine_check_4xx, |
80f15dc7 | 1186 | .platform = "ppc403", |
1da177e4 LT |
1187 | }, |
1188 | { /* 405GP */ | |
1189 | .pvr_mask = 0xffff0000, | |
1190 | .pvr_value = 0x40110000, | |
1191 | .cpu_name = "405GP", | |
10b35d99 | 1192 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1193 | .cpu_user_features = PPC_FEATURE_32 | |
1194 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1195 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1196 | .icache_bsize = 32, |
1197 | .dcache_bsize = 32, | |
47c0bd1a | 1198 | .machine_check = machine_check_4xx, |
80f15dc7 | 1199 | .platform = "ppc405", |
1da177e4 LT |
1200 | }, |
1201 | { /* STB 03xxx */ | |
1202 | .pvr_mask = 0xffff0000, | |
1203 | .pvr_value = 0x40130000, | |
1204 | .cpu_name = "STB03xxx", | |
10b35d99 | 1205 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1206 | .cpu_user_features = PPC_FEATURE_32 | |
1207 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1208 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1209 | .icache_bsize = 32, |
1210 | .dcache_bsize = 32, | |
47c0bd1a | 1211 | .machine_check = machine_check_4xx, |
80f15dc7 | 1212 | .platform = "ppc405", |
1da177e4 LT |
1213 | }, |
1214 | { /* STB 04xxx */ | |
1215 | .pvr_mask = 0xffff0000, | |
1216 | .pvr_value = 0x41810000, | |
1217 | .cpu_name = "STB04xxx", | |
10b35d99 | 1218 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1219 | .cpu_user_features = PPC_FEATURE_32 | |
1220 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1221 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1222 | .icache_bsize = 32, |
1223 | .dcache_bsize = 32, | |
47c0bd1a | 1224 | .machine_check = machine_check_4xx, |
80f15dc7 | 1225 | .platform = "ppc405", |
1da177e4 LT |
1226 | }, |
1227 | { /* NP405L */ | |
1228 | .pvr_mask = 0xffff0000, | |
1229 | .pvr_value = 0x41610000, | |
1230 | .cpu_name = "NP405L", | |
10b35d99 | 1231 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1232 | .cpu_user_features = PPC_FEATURE_32 | |
1233 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1234 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1235 | .icache_bsize = 32, |
1236 | .dcache_bsize = 32, | |
47c0bd1a | 1237 | .machine_check = machine_check_4xx, |
80f15dc7 | 1238 | .platform = "ppc405", |
1da177e4 LT |
1239 | }, |
1240 | { /* NP4GS3 */ | |
1241 | .pvr_mask = 0xffff0000, | |
1242 | .pvr_value = 0x40B10000, | |
1243 | .cpu_name = "NP4GS3", | |
10b35d99 | 1244 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1245 | .cpu_user_features = PPC_FEATURE_32 | |
1246 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1247 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1248 | .icache_bsize = 32, |
1249 | .dcache_bsize = 32, | |
47c0bd1a | 1250 | .machine_check = machine_check_4xx, |
80f15dc7 | 1251 | .platform = "ppc405", |
1da177e4 LT |
1252 | }, |
1253 | { /* NP405H */ | |
1254 | .pvr_mask = 0xffff0000, | |
1255 | .pvr_value = 0x41410000, | |
1256 | .cpu_name = "NP405H", | |
10b35d99 | 1257 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1258 | .cpu_user_features = PPC_FEATURE_32 | |
1259 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1260 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1261 | .icache_bsize = 32, |
1262 | .dcache_bsize = 32, | |
47c0bd1a | 1263 | .machine_check = machine_check_4xx, |
80f15dc7 | 1264 | .platform = "ppc405", |
1da177e4 LT |
1265 | }, |
1266 | { /* 405GPr */ | |
1267 | .pvr_mask = 0xffff0000, | |
1268 | .pvr_value = 0x50910000, | |
1269 | .cpu_name = "405GPr", | |
10b35d99 | 1270 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1271 | .cpu_user_features = PPC_FEATURE_32 | |
1272 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1273 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1274 | .icache_bsize = 32, |
1275 | .dcache_bsize = 32, | |
47c0bd1a | 1276 | .machine_check = machine_check_4xx, |
80f15dc7 | 1277 | .platform = "ppc405", |
1da177e4 LT |
1278 | }, |
1279 | { /* STBx25xx */ | |
1280 | .pvr_mask = 0xffff0000, | |
1281 | .pvr_value = 0x51510000, | |
1282 | .cpu_name = "STBx25xx", | |
10b35d99 | 1283 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1284 | .cpu_user_features = PPC_FEATURE_32 | |
1285 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1286 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1287 | .icache_bsize = 32, |
1288 | .dcache_bsize = 32, | |
47c0bd1a | 1289 | .machine_check = machine_check_4xx, |
80f15dc7 | 1290 | .platform = "ppc405", |
1da177e4 LT |
1291 | }, |
1292 | { /* 405LP */ | |
1293 | .pvr_mask = 0xffff0000, | |
1294 | .pvr_value = 0x41F10000, | |
1295 | .cpu_name = "405LP", | |
10b35d99 | 1296 | .cpu_features = CPU_FTRS_40X, |
1da177e4 | 1297 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
7c03d653 | 1298 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1299 | .icache_bsize = 32, |
1300 | .dcache_bsize = 32, | |
47c0bd1a | 1301 | .machine_check = machine_check_4xx, |
80f15dc7 | 1302 | .platform = "ppc405", |
1da177e4 LT |
1303 | }, |
1304 | { /* Xilinx Virtex-II Pro */ | |
72646c7f | 1305 | .pvr_mask = 0xfffff000, |
1da177e4 LT |
1306 | .pvr_value = 0x20010000, |
1307 | .cpu_name = "Virtex-II Pro", | |
10b35d99 | 1308 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1309 | .cpu_user_features = PPC_FEATURE_32 | |
1310 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1311 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1312 | .icache_bsize = 32, |
1313 | .dcache_bsize = 32, | |
47c0bd1a | 1314 | .machine_check = machine_check_4xx, |
80f15dc7 | 1315 | .platform = "ppc405", |
1da177e4 | 1316 | }, |
72646c7f GL |
1317 | { /* Xilinx Virtex-4 FX */ |
1318 | .pvr_mask = 0xfffff000, | |
1319 | .pvr_value = 0x20011000, | |
1320 | .cpu_name = "Virtex-4 FX", | |
1321 | .cpu_features = CPU_FTRS_40X, | |
1322 | .cpu_user_features = PPC_FEATURE_32 | | |
1323 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1324 | .mmu_features = MMU_FTR_TYPE_40x, |
72646c7f GL |
1325 | .icache_bsize = 32, |
1326 | .dcache_bsize = 32, | |
47c0bd1a | 1327 | .machine_check = machine_check_4xx, |
838fdb4d | 1328 | .platform = "ppc405", |
72646c7f | 1329 | }, |
ad95d609 ES |
1330 | { /* 405EP */ |
1331 | .pvr_mask = 0xffff0000, | |
1332 | .pvr_value = 0x51210000, | |
1333 | .cpu_name = "405EP", | |
10b35d99 | 1334 | .cpu_features = CPU_FTRS_40X, |
5d8476c8 SR |
1335 | .cpu_user_features = PPC_FEATURE_32 | |
1336 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1337 | .mmu_features = MMU_FTR_TYPE_40x, |
5d8476c8 SR |
1338 | .icache_bsize = 32, |
1339 | .dcache_bsize = 32, | |
47c0bd1a | 1340 | .machine_check = machine_check_4xx, |
5d8476c8 SR |
1341 | .platform = "ppc405", |
1342 | }, | |
1343 | { /* 405EX */ | |
b676d84e SR |
1344 | .pvr_mask = 0xffff0004, |
1345 | .pvr_value = 0x12910004, | |
5d8476c8 SR |
1346 | .cpu_name = "405EX", |
1347 | .cpu_features = CPU_FTRS_40X, | |
ad95d609 ES |
1348 | .cpu_user_features = PPC_FEATURE_32 | |
1349 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1350 | .mmu_features = MMU_FTR_TYPE_40x, |
ad95d609 ES |
1351 | .icache_bsize = 32, |
1352 | .dcache_bsize = 32, | |
47c0bd1a | 1353 | .machine_check = machine_check_4xx, |
80f15dc7 | 1354 | .platform = "ppc405", |
ad95d609 | 1355 | }, |
b676d84e SR |
1356 | { /* 405EXr */ |
1357 | .pvr_mask = 0xffff0004, | |
1358 | .pvr_value = 0x12910000, | |
1359 | .cpu_name = "405EXr", | |
1360 | .cpu_features = CPU_FTRS_40X, | |
1361 | .cpu_user_features = PPC_FEATURE_32 | | |
1362 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1363 | .mmu_features = MMU_FTR_TYPE_40x, |
b676d84e SR |
1364 | .icache_bsize = 32, |
1365 | .dcache_bsize = 32, | |
1366 | .machine_check = machine_check_4xx, | |
1367 | .platform = "ppc405", | |
1368 | }, | |
df8f71fa JB |
1369 | { |
1370 | /* 405EZ */ | |
1371 | .pvr_mask = 0xffff0000, | |
1372 | .pvr_value = 0x41510000, | |
1373 | .cpu_name = "405EZ", | |
1374 | .cpu_features = CPU_FTRS_40X, | |
1375 | .cpu_user_features = PPC_FEATURE_32 | | |
1376 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1377 | .mmu_features = MMU_FTR_TYPE_40x, |
df8f71fa JB |
1378 | .icache_bsize = 32, |
1379 | .dcache_bsize = 32, | |
1380 | .machine_check = machine_check_4xx, | |
1381 | .platform = "ppc405", | |
1382 | }, | |
76bc080e BH |
1383 | { /* default match */ |
1384 | .pvr_mask = 0x00000000, | |
1385 | .pvr_value = 0x00000000, | |
1386 | .cpu_name = "(generic 40x PPC)", | |
1387 | .cpu_features = CPU_FTRS_40X, | |
1388 | .cpu_user_features = PPC_FEATURE_32 | | |
1389 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1390 | .mmu_features = MMU_FTR_TYPE_40x, |
76bc080e BH |
1391 | .icache_bsize = 32, |
1392 | .dcache_bsize = 32, | |
1393 | .machine_check = machine_check_4xx, | |
1394 | .platform = "ppc405", | |
1395 | } | |
1da177e4 LT |
1396 | |
1397 | #endif /* CONFIG_40x */ | |
1398 | #ifdef CONFIG_44x | |
c9cf73ae MP |
1399 | { |
1400 | .pvr_mask = 0xf0000fff, | |
1401 | .pvr_value = 0x40000850, | |
d1dfc35d VB |
1402 | .cpu_name = "440GR Rev. A", |
1403 | .cpu_features = CPU_FTRS_44X, | |
1404 | .cpu_user_features = COMMON_USER_BOOKE, | |
7c03d653 | 1405 | .mmu_features = MMU_FTR_TYPE_44x, |
d1dfc35d VB |
1406 | .icache_bsize = 32, |
1407 | .dcache_bsize = 32, | |
47c0bd1a | 1408 | .machine_check = machine_check_4xx, |
d1dfc35d VB |
1409 | .platform = "ppc440", |
1410 | }, | |
1411 | { /* Use logical PVR for 440EP (logical pvr = pvr | 0x8) */ | |
1412 | .pvr_mask = 0xf0000fff, | |
1413 | .pvr_value = 0x40000858, | |
c9cf73ae | 1414 | .cpu_name = "440EP Rev. A", |
10b35d99 | 1415 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1416 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, |
7c03d653 | 1417 | .mmu_features = MMU_FTR_TYPE_44x, |
c9cf73ae MP |
1418 | .icache_bsize = 32, |
1419 | .dcache_bsize = 32, | |
8112753b | 1420 | .cpu_setup = __setup_cpu_440ep, |
47c0bd1a | 1421 | .machine_check = machine_check_4xx, |
80f15dc7 | 1422 | .platform = "ppc440", |
c9cf73ae MP |
1423 | }, |
1424 | { | |
1425 | .pvr_mask = 0xf0000fff, | |
1426 | .pvr_value = 0x400008d3, | |
d1dfc35d | 1427 | .cpu_name = "440GR Rev. B", |
10b35d99 | 1428 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1429 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, |
7c03d653 | 1430 | .mmu_features = MMU_FTR_TYPE_44x, |
c9cf73ae MP |
1431 | .icache_bsize = 32, |
1432 | .dcache_bsize = 32, | |
47c0bd1a | 1433 | .machine_check = machine_check_4xx, |
80f15dc7 | 1434 | .platform = "ppc440", |
c9cf73ae | 1435 | }, |
3f8fc3e0 SM |
1436 | { /* Matches both physical and logical PVR for 440EP (logical pvr = pvr | 0x8) */ |
1437 | .pvr_mask = 0xf0000ff7, | |
1438 | .pvr_value = 0x400008d4, | |
1439 | .cpu_name = "440EP Rev. C", | |
1440 | .cpu_features = CPU_FTRS_44X, | |
1441 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, | |
7c03d653 | 1442 | .mmu_features = MMU_FTR_TYPE_44x, |
3f8fc3e0 SM |
1443 | .icache_bsize = 32, |
1444 | .dcache_bsize = 32, | |
1445 | .cpu_setup = __setup_cpu_440ep, | |
1446 | .machine_check = machine_check_4xx, | |
1447 | .platform = "ppc440", | |
1448 | }, | |
d1dfc35d VB |
1449 | { /* Use logical PVR for 440EP (logical pvr = pvr | 0x8) */ |
1450 | .pvr_mask = 0xf0000fff, | |
1451 | .pvr_value = 0x400008db, | |
1452 | .cpu_name = "440EP Rev. B", | |
15fc993e VB |
1453 | .cpu_features = CPU_FTRS_44X, |
1454 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, | |
7c03d653 | 1455 | .mmu_features = MMU_FTR_TYPE_44x, |
15fc993e VB |
1456 | .icache_bsize = 32, |
1457 | .dcache_bsize = 32, | |
d1dfc35d | 1458 | .cpu_setup = __setup_cpu_440ep, |
47c0bd1a | 1459 | .machine_check = machine_check_4xx, |
8112753b | 1460 | .platform = "ppc440", |
15fc993e VB |
1461 | }, |
1462 | { /* 440GRX */ | |
1463 | .pvr_mask = 0xf0000ffb, | |
d1dfc35d | 1464 | .pvr_value = 0x200008D0, |
15fc993e VB |
1465 | .cpu_name = "440GRX", |
1466 | .cpu_features = CPU_FTRS_44X, | |
1467 | .cpu_user_features = COMMON_USER_BOOKE, | |
7c03d653 | 1468 | .mmu_features = MMU_FTR_TYPE_44x, |
15fc993e VB |
1469 | .icache_bsize = 32, |
1470 | .dcache_bsize = 32, | |
340ffd26 | 1471 | .cpu_setup = __setup_cpu_440grx, |
b2be3b15 | 1472 | .machine_check = machine_check_440A, |
340ffd26 | 1473 | .platform = "ppc440", |
15fc993e | 1474 | }, |
d1dfc35d VB |
1475 | { /* Use logical PVR for 440EPx (logical pvr = pvr | 0x8) */ |
1476 | .pvr_mask = 0xf0000ffb, | |
1477 | .pvr_value = 0x200008D8, | |
1478 | .cpu_name = "440EPX", | |
1479 | .cpu_features = CPU_FTRS_44X, | |
1480 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, | |
7c03d653 | 1481 | .mmu_features = MMU_FTR_TYPE_44x, |
d1dfc35d VB |
1482 | .icache_bsize = 32, |
1483 | .dcache_bsize = 32, | |
1484 | .cpu_setup = __setup_cpu_440epx, | |
47c0bd1a | 1485 | .machine_check = machine_check_440A, |
d1dfc35d VB |
1486 | .platform = "ppc440", |
1487 | }, | |
4920960f | 1488 | { /* 440GP Rev. B */ |
1da177e4 LT |
1489 | .pvr_mask = 0xf0000fff, |
1490 | .pvr_value = 0x40000440, | |
1491 | .cpu_name = "440GP Rev. B", | |
10b35d99 | 1492 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1493 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1494 | .mmu_features = MMU_FTR_TYPE_44x, |
1da177e4 LT |
1495 | .icache_bsize = 32, |
1496 | .dcache_bsize = 32, | |
47c0bd1a | 1497 | .machine_check = machine_check_4xx, |
80f15dc7 | 1498 | .platform = "ppc440gp", |
1da177e4 | 1499 | }, |
4920960f | 1500 | { /* 440GP Rev. C */ |
1da177e4 LT |
1501 | .pvr_mask = 0xf0000fff, |
1502 | .pvr_value = 0x40000481, | |
1503 | .cpu_name = "440GP Rev. C", | |
10b35d99 | 1504 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1505 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1506 | .mmu_features = MMU_FTR_TYPE_44x, |
1da177e4 LT |
1507 | .icache_bsize = 32, |
1508 | .dcache_bsize = 32, | |
47c0bd1a | 1509 | .machine_check = machine_check_4xx, |
80f15dc7 | 1510 | .platform = "ppc440gp", |
1da177e4 LT |
1511 | }, |
1512 | { /* 440GX Rev. A */ | |
1513 | .pvr_mask = 0xf0000fff, | |
1514 | .pvr_value = 0x50000850, | |
1515 | .cpu_name = "440GX Rev. A", | |
10b35d99 | 1516 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1517 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1518 | .mmu_features = MMU_FTR_TYPE_44x, |
1da177e4 LT |
1519 | .icache_bsize = 32, |
1520 | .dcache_bsize = 32, | |
47c0bd1a BH |
1521 | .cpu_setup = __setup_cpu_440gx, |
1522 | .machine_check = machine_check_440A, | |
80f15dc7 | 1523 | .platform = "ppc440", |
1da177e4 LT |
1524 | }, |
1525 | { /* 440GX Rev. B */ | |
1526 | .pvr_mask = 0xf0000fff, | |
1527 | .pvr_value = 0x50000851, | |
1528 | .cpu_name = "440GX Rev. B", | |
10b35d99 | 1529 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1530 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1531 | .mmu_features = MMU_FTR_TYPE_44x, |
1da177e4 LT |
1532 | .icache_bsize = 32, |
1533 | .dcache_bsize = 32, | |
47c0bd1a BH |
1534 | .cpu_setup = __setup_cpu_440gx, |
1535 | .machine_check = machine_check_440A, | |
80f15dc7 | 1536 | .platform = "ppc440", |
1da177e4 LT |
1537 | }, |
1538 | { /* 440GX Rev. C */ | |
1539 | .pvr_mask = 0xf0000fff, | |
1540 | .pvr_value = 0x50000892, | |
1541 | .cpu_name = "440GX Rev. C", | |
10b35d99 | 1542 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1543 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1544 | .mmu_features = MMU_FTR_TYPE_44x, |
1da177e4 LT |
1545 | .icache_bsize = 32, |
1546 | .dcache_bsize = 32, | |
47c0bd1a BH |
1547 | .cpu_setup = __setup_cpu_440gx, |
1548 | .machine_check = machine_check_440A, | |
80f15dc7 | 1549 | .platform = "ppc440", |
1da177e4 | 1550 | }, |
9149fb3b ES |
1551 | { /* 440GX Rev. F */ |
1552 | .pvr_mask = 0xf0000fff, | |
1553 | .pvr_value = 0x50000894, | |
1554 | .cpu_name = "440GX Rev. F", | |
10b35d99 | 1555 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1556 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1557 | .mmu_features = MMU_FTR_TYPE_44x, |
9149fb3b ES |
1558 | .icache_bsize = 32, |
1559 | .dcache_bsize = 32, | |
47c0bd1a BH |
1560 | .cpu_setup = __setup_cpu_440gx, |
1561 | .machine_check = machine_check_440A, | |
80f15dc7 | 1562 | .platform = "ppc440", |
9149fb3b | 1563 | }, |
656de7e4 | 1564 | { /* 440SP Rev. A */ |
333e6154 RD |
1565 | .pvr_mask = 0xfff00fff, |
1566 | .pvr_value = 0x53200891, | |
656de7e4 | 1567 | .cpu_name = "440SP Rev. A", |
10b35d99 | 1568 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1569 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1570 | .mmu_features = MMU_FTR_TYPE_44x, |
656de7e4 MP |
1571 | .icache_bsize = 32, |
1572 | .dcache_bsize = 32, | |
47c0bd1a | 1573 | .machine_check = machine_check_4xx, |
80f15dc7 | 1574 | .platform = "ppc440", |
656de7e4 | 1575 | }, |
b0f7b8bc | 1576 | { /* 440SPe Rev. A */ |
333e6154 RD |
1577 | .pvr_mask = 0xfff00fff, |
1578 | .pvr_value = 0x53400890, | |
1579 | .cpu_name = "440SPe Rev. A", | |
1580 | .cpu_features = CPU_FTRS_44X, | |
1581 | .cpu_user_features = COMMON_USER_BOOKE, | |
7c03d653 | 1582 | .mmu_features = MMU_FTR_TYPE_44x, |
333e6154 RD |
1583 | .icache_bsize = 32, |
1584 | .dcache_bsize = 32, | |
47c0bd1a BH |
1585 | .cpu_setup = __setup_cpu_440spe, |
1586 | .machine_check = machine_check_440A, | |
333e6154 RD |
1587 | .platform = "ppc440", |
1588 | }, | |
1589 | { /* 440SPe Rev. B */ | |
1590 | .pvr_mask = 0xfff00fff, | |
1591 | .pvr_value = 0x53400891, | |
1592 | .cpu_name = "440SPe Rev. B", | |
a147c585 | 1593 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1594 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1595 | .mmu_features = MMU_FTR_TYPE_44x, |
b0f7b8bc RD |
1596 | .icache_bsize = 32, |
1597 | .dcache_bsize = 32, | |
47c0bd1a BH |
1598 | .cpu_setup = __setup_cpu_440spe, |
1599 | .machine_check = machine_check_440A, | |
80f15dc7 | 1600 | .platform = "ppc440", |
b0f7b8bc | 1601 | }, |
23e7237e JL |
1602 | { /* 440 in Xilinx Virtex-5 FXT */ |
1603 | .pvr_mask = 0xfffffff0, | |
1604 | .pvr_value = 0x7ff21910, | |
1605 | .cpu_name = "440 in Virtex-5 FXT", | |
1606 | .cpu_features = CPU_FTRS_44X, | |
1607 | .cpu_user_features = COMMON_USER_BOOKE, | |
7c03d653 | 1608 | .mmu_features = MMU_FTR_TYPE_44x, |
23e7237e JL |
1609 | .icache_bsize = 32, |
1610 | .dcache_bsize = 32, | |
640d17d6 GL |
1611 | .cpu_setup = __setup_cpu_440x5, |
1612 | .machine_check = machine_check_440A, | |
23e7237e JL |
1613 | .platform = "ppc440", |
1614 | }, | |
464076a4 SR |
1615 | { /* 460EX */ |
1616 | .pvr_mask = 0xffff0002, | |
1617 | .pvr_value = 0x13020002, | |
1618 | .cpu_name = "460EX", | |
6d2170be | 1619 | .cpu_features = CPU_FTRS_440x6, |
464076a4 | 1620 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, |
7c03d653 | 1621 | .mmu_features = MMU_FTR_TYPE_44x, |
464076a4 SR |
1622 | .icache_bsize = 32, |
1623 | .dcache_bsize = 32, | |
1624 | .cpu_setup = __setup_cpu_460ex, | |
1625 | .machine_check = machine_check_440A, | |
1626 | .platform = "ppc440", | |
1627 | }, | |
1628 | { /* 460GT */ | |
1629 | .pvr_mask = 0xffff0002, | |
1630 | .pvr_value = 0x13020000, | |
1631 | .cpu_name = "460GT", | |
6d2170be | 1632 | .cpu_features = CPU_FTRS_440x6, |
939e622c | 1633 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, |
7c03d653 | 1634 | .mmu_features = MMU_FTR_TYPE_44x, |
464076a4 SR |
1635 | .icache_bsize = 32, |
1636 | .dcache_bsize = 32, | |
939e622c | 1637 | .cpu_setup = __setup_cpu_460gt, |
464076a4 SR |
1638 | .machine_check = machine_check_440A, |
1639 | .platform = "ppc440", | |
1640 | }, | |
76bc080e BH |
1641 | { /* default match */ |
1642 | .pvr_mask = 0x00000000, | |
1643 | .pvr_value = 0x00000000, | |
1644 | .cpu_name = "(generic 44x PPC)", | |
1645 | .cpu_features = CPU_FTRS_44X, | |
1646 | .cpu_user_features = COMMON_USER_BOOKE, | |
7c03d653 | 1647 | .mmu_features = MMU_FTR_TYPE_44x, |
76bc080e BH |
1648 | .icache_bsize = 32, |
1649 | .dcache_bsize = 32, | |
1650 | .machine_check = machine_check_4xx, | |
1651 | .platform = "ppc440", | |
1652 | } | |
1da177e4 | 1653 | #endif /* CONFIG_44x */ |
e3e414bc | 1654 | #ifdef CONFIG_E200 |
4920960f | 1655 | { /* e200z5 */ |
33d9e9b5 KG |
1656 | .pvr_mask = 0xfff00000, |
1657 | .pvr_value = 0x81000000, | |
1658 | .cpu_name = "e200z5", | |
1659 | /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */ | |
10b35d99 | 1660 | .cpu_features = CPU_FTRS_E200, |
80f15dc7 PM |
1661 | .cpu_user_features = COMMON_USER_BOOKE | |
1662 | PPC_FEATURE_HAS_EFP_SINGLE | | |
33d9e9b5 | 1663 | PPC_FEATURE_UNIFIED_CACHE, |
7c03d653 | 1664 | .mmu_features = MMU_FTR_TYPE_FSL_E, |
33d9e9b5 | 1665 | .dcache_bsize = 32, |
47c0bd1a | 1666 | .machine_check = machine_check_e200, |
80f15dc7 | 1667 | .platform = "ppc5554", |
33d9e9b5 | 1668 | }, |
4920960f | 1669 | { /* e200z6 */ |
33d9e9b5 KG |
1670 | .pvr_mask = 0xfff00000, |
1671 | .pvr_value = 0x81100000, | |
1672 | .cpu_name = "e200z6", | |
1673 | /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */ | |
10b35d99 | 1674 | .cpu_features = CPU_FTRS_E200, |
80f15dc7 | 1675 | .cpu_user_features = COMMON_USER_BOOKE | |
5e14d21e KG |
1676 | PPC_FEATURE_HAS_SPE_COMP | |
1677 | PPC_FEATURE_HAS_EFP_SINGLE_COMP | | |
33d9e9b5 | 1678 | PPC_FEATURE_UNIFIED_CACHE, |
7c03d653 | 1679 | .mmu_features = MMU_FTR_TYPE_FSL_E, |
33d9e9b5 | 1680 | .dcache_bsize = 32, |
47c0bd1a | 1681 | .machine_check = machine_check_e200, |
80f15dc7 | 1682 | .platform = "ppc5554", |
33d9e9b5 | 1683 | }, |
76bc080e BH |
1684 | { /* default match */ |
1685 | .pvr_mask = 0x00000000, | |
1686 | .pvr_value = 0x00000000, | |
1687 | .cpu_name = "(generic E200 PPC)", | |
1688 | .cpu_features = CPU_FTRS_E200, | |
1689 | .cpu_user_features = COMMON_USER_BOOKE | | |
1690 | PPC_FEATURE_HAS_EFP_SINGLE | | |
1691 | PPC_FEATURE_UNIFIED_CACHE, | |
7c03d653 | 1692 | .mmu_features = MMU_FTR_TYPE_FSL_E, |
76bc080e | 1693 | .dcache_bsize = 32, |
105c31df | 1694 | .cpu_setup = __setup_cpu_e200, |
76bc080e BH |
1695 | .machine_check = machine_check_e200, |
1696 | .platform = "ppc5554", | |
516c8be3 | 1697 | } |
76bc080e BH |
1698 | #endif /* CONFIG_E200 */ |
1699 | #ifdef CONFIG_E500 | |
4920960f | 1700 | { /* e500 */ |
1da177e4 LT |
1701 | .pvr_mask = 0xffff0000, |
1702 | .pvr_value = 0x80200000, | |
1703 | .cpu_name = "e500", | |
10b35d99 | 1704 | .cpu_features = CPU_FTRS_E500, |
80f15dc7 | 1705 | .cpu_user_features = COMMON_USER_BOOKE | |
5e14d21e KG |
1706 | PPC_FEATURE_HAS_SPE_COMP | |
1707 | PPC_FEATURE_HAS_EFP_SINGLE_COMP, | |
7c03d653 | 1708 | .mmu_features = MMU_FTR_TYPE_FSL_E, |
1da177e4 LT |
1709 | .icache_bsize = 32, |
1710 | .dcache_bsize = 32, | |
1711 | .num_pmcs = 4, | |
555d97ac | 1712 | .oprofile_cpu_type = "ppc/e500", |
39aef685 | 1713 | .oprofile_type = PPC_OPROFILE_FSL_EMB, |
105c31df | 1714 | .cpu_setup = __setup_cpu_e500v1, |
47c0bd1a | 1715 | .machine_check = machine_check_e500, |
80f15dc7 | 1716 | .platform = "ppc8540", |
1da177e4 | 1717 | }, |
4920960f | 1718 | { /* e500v2 */ |
5b37b700 KG |
1719 | .pvr_mask = 0xffff0000, |
1720 | .pvr_value = 0x80210000, | |
1721 | .cpu_name = "e500v2", | |
10b35d99 | 1722 | .cpu_features = CPU_FTRS_E500_2, |
80f15dc7 | 1723 | .cpu_user_features = COMMON_USER_BOOKE | |
5e14d21e KG |
1724 | PPC_FEATURE_HAS_SPE_COMP | |
1725 | PPC_FEATURE_HAS_EFP_SINGLE_COMP | | |
1726 | PPC_FEATURE_HAS_EFP_DOUBLE_COMP, | |
7c03d653 | 1727 | .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS, |
5b37b700 KG |
1728 | .icache_bsize = 32, |
1729 | .dcache_bsize = 32, | |
1730 | .num_pmcs = 4, | |
555d97ac | 1731 | .oprofile_cpu_type = "ppc/e500", |
39aef685 | 1732 | .oprofile_type = PPC_OPROFILE_FSL_EMB, |
105c31df | 1733 | .cpu_setup = __setup_cpu_e500v2, |
47c0bd1a | 1734 | .machine_check = machine_check_e500, |
80f15dc7 | 1735 | .platform = "ppc8548", |
5b37b700 | 1736 | }, |
3dfa8773 KG |
1737 | { /* e500mc */ |
1738 | .pvr_mask = 0xffff0000, | |
1739 | .pvr_value = 0x80230000, | |
1740 | .cpu_name = "e500mc", | |
3dfa8773 KG |
1741 | .cpu_features = CPU_FTRS_E500MC, |
1742 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, | |
7c03d653 | 1743 | .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS, |
3dfa8773 KG |
1744 | .icache_bsize = 64, |
1745 | .dcache_bsize = 64, | |
1746 | .num_pmcs = 4, | |
1747 | .oprofile_cpu_type = "ppc/e500", /* xxx - galak, e500mc? */ | |
1748 | .oprofile_type = PPC_OPROFILE_FSL_EMB, | |
105c31df | 1749 | .cpu_setup = __setup_cpu_e500mc, |
3dfa8773 KG |
1750 | .machine_check = machine_check_e500, |
1751 | .platform = "ppce500mc", | |
1752 | }, | |
1da177e4 LT |
1753 | { /* default match */ |
1754 | .pvr_mask = 0x00000000, | |
1755 | .pvr_value = 0x00000000, | |
76bc080e BH |
1756 | .cpu_name = "(generic E500 PPC)", |
1757 | .cpu_features = CPU_FTRS_E500, | |
1758 | .cpu_user_features = COMMON_USER_BOOKE | | |
1759 | PPC_FEATURE_HAS_SPE_COMP | | |
1760 | PPC_FEATURE_HAS_EFP_SINGLE_COMP, | |
7c03d653 | 1761 | .mmu_features = MMU_FTR_TYPE_FSL_E, |
1da177e4 LT |
1762 | .icache_bsize = 32, |
1763 | .dcache_bsize = 32, | |
76bc080e | 1764 | .machine_check = machine_check_e500, |
80f15dc7 | 1765 | .platform = "powerpc", |
516c8be3 | 1766 | } |
76bc080e | 1767 | #endif /* CONFIG_E500 */ |
4920960f | 1768 | #endif /* CONFIG_PPC32 */ |
1da177e4 | 1769 | }; |
42c4aaad | 1770 | |
87a72f9e PM |
1771 | static struct cpu_spec the_cpu_spec; |
1772 | ||
1773 | struct cpu_spec * __init identify_cpu(unsigned long offset, unsigned int pvr) | |
42c4aaad BH |
1774 | { |
1775 | struct cpu_spec *s = cpu_specs; | |
87a72f9e | 1776 | struct cpu_spec *t = &the_cpu_spec; |
42c4aaad BH |
1777 | int i; |
1778 | ||
1779 | s = PTRRELOC(s); | |
87a72f9e | 1780 | t = PTRRELOC(t); |
42c4aaad | 1781 | |
42c4aaad BH |
1782 | for (i = 0; i < ARRAY_SIZE(cpu_specs); i++,s++) |
1783 | if ((pvr & s->pvr_mask) == s->pvr_value) { | |
87a72f9e PM |
1784 | /* |
1785 | * If we are overriding a previous value derived | |
1786 | * from the real PVR with a new value obtained | |
1787 | * using a logical PVR value, don't modify the | |
1788 | * performance monitor fields. | |
1789 | */ | |
1790 | if (t->num_pmcs && !s->num_pmcs) { | |
1791 | t->cpu_name = s->cpu_name; | |
1792 | t->cpu_features = s->cpu_features; | |
1793 | t->cpu_user_features = s->cpu_user_features; | |
1794 | t->icache_bsize = s->icache_bsize; | |
1795 | t->dcache_bsize = s->dcache_bsize; | |
1796 | t->cpu_setup = s->cpu_setup; | |
1797 | t->cpu_restore = s->cpu_restore; | |
1798 | t->platform = s->platform; | |
79e25bac TS |
1799 | /* |
1800 | * If we have passed through this logic once | |
1801 | * before and have pulled the default case | |
1802 | * because the real PVR was not found inside | |
1803 | * cpu_specs[], then we are possibly running in | |
1804 | * compatibility mode. In that case, let the | |
1805 | * oprofiler know which set of compatibility | |
1806 | * counters to pull from by making sure the | |
1807 | * oprofile_cpu_type string is set to that of | |
1808 | * compatibility mode. If the oprofile_cpu_type | |
1809 | * already has a value, then we are possibly | |
1810 | * overriding a real PVR with a logical one, and, | |
1811 | * in that case, keep the current value for | |
1812 | * oprofile_cpu_type. | |
1813 | */ | |
1814 | if (t->oprofile_cpu_type == NULL) | |
1815 | t->oprofile_cpu_type = s->oprofile_cpu_type; | |
87a72f9e PM |
1816 | } else |
1817 | *t = *s; | |
1818 | *PTRRELOC(&cur_cpu_spec) = &the_cpu_spec; | |
9115d134 NL |
1819 | |
1820 | /* | |
1821 | * Set the base platform string once; assumes | |
1822 | * we're called with real pvr first. | |
1823 | */ | |
fc532f81 NL |
1824 | if (*PTRRELOC(&powerpc_base_platform) == NULL) |
1825 | *PTRRELOC(&powerpc_base_platform) = t->platform; | |
9115d134 | 1826 | |
84e3ad5b | 1827 | #if defined(CONFIG_PPC64) || defined(CONFIG_BOOKE) |
464076a4 | 1828 | /* ppc64 and booke expect identify_cpu to also call |
84e3ad5b VB |
1829 | * setup_cpu for that processor. I will consolidate |
1830 | * that at a later time, for now, just use #ifdef. | |
42c4aaad | 1831 | * we also don't need to PTRRELOC the function pointer |
84e3ad5b VB |
1832 | * on ppc64 and booke as we are running at 0 in real |
1833 | * mode on ppc64 and reloc_offset is always 0 on booke. | |
42c4aaad BH |
1834 | */ |
1835 | if (s->cpu_setup) { | |
1836 | s->cpu_setup(offset, s); | |
1837 | } | |
84e3ad5b | 1838 | #endif /* CONFIG_PPC64 || CONFIG_BOOKE */ |
42c4aaad BH |
1839 | return s; |
1840 | } | |
1841 | BUG(); | |
1842 | return NULL; | |
1843 | } |