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