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