[PATCH] Add a prctl to change the endianness of a process.
[deliverable/linux.git] / arch / powerpc / kernel / cputable.c
CommitLineData
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
13#include <linux/config.h>
14#include <linux/string.h>
15#include <linux/sched.h>
16#include <linux/threads.h>
17#include <linux/init.h>
400d2212
KG
18#include <linux/module.h>
19
20#include <asm/oprofile_impl.h>
1da177e4
LT
21#include <asm/cputable.h>
22
400d2212 23struct cpu_spec* cur_cpu_spec = NULL;
4920960f 24EXPORT_SYMBOL(cur_cpu_spec);
1da177e4 25
4920960f
SR
26/* NOTE:
27 * Unlike ppc32, ppc64 will only call this once for the boot CPU, it's
28 * the responsibility of the appropriate CPU save/restore functions to
29 * eventually copy these settings over. Those save/restore aren't yet
30 * part of the cputable though. That has to be fixed for both ppc32
31 * and ppc64
32 */
b26f100d 33#ifdef CONFIG_PPC32
400d2212
KG
34extern void __setup_cpu_603(unsigned long offset, struct cpu_spec* spec);
35extern void __setup_cpu_604(unsigned long offset, struct cpu_spec* spec);
36extern void __setup_cpu_750(unsigned long offset, struct cpu_spec* spec);
37extern void __setup_cpu_750cx(unsigned long offset, struct cpu_spec* spec);
38extern void __setup_cpu_750fx(unsigned long offset, struct cpu_spec* spec);
39extern void __setup_cpu_7400(unsigned long offset, struct cpu_spec* spec);
40extern void __setup_cpu_7410(unsigned long offset, struct cpu_spec* spec);
41extern void __setup_cpu_745x(unsigned long offset, struct cpu_spec* spec);
4920960f 42#endif /* CONFIG_PPC32 */
400d2212 43extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec);
1da177e4 44
1da177e4
LT
45/* This table only contains "desktop" CPUs, it need to be filled with embedded
46 * ones as well...
47 */
4920960f
SR
48#define COMMON_USER (PPC_FEATURE_32 | PPC_FEATURE_HAS_FPU | \
49 PPC_FEATURE_HAS_MMU)
50#define COMMON_USER_PPC64 (COMMON_USER | PPC_FEATURE_64)
a7ddc5e8 51#define COMMON_USER_POWER4 (COMMON_USER_PPC64 | PPC_FEATURE_POWER4)
aa5cb021
BH
52#define COMMON_USER_POWER5 (COMMON_USER_PPC64 | PPC_FEATURE_POWER5 |\
53 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
54#define COMMON_USER_POWER5_PLUS (COMMON_USER_PPC64 | PPC_FEATURE_POWER5_PLUS|\
55 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
03054d51
AB
56#define COMMON_USER_POWER6 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_05 |\
57 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
80f15dc7
PM
58#define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \
59 PPC_FEATURE_BOOKE)
1da177e4 60
1da177e4
LT
61/* We only set the spe features if the kernel was compiled with
62 * spe support
63 */
64#ifdef CONFIG_SPE
4920960f 65#define PPC_FEATURE_SPE_COMP PPC_FEATURE_HAS_SPE
1da177e4 66#else
4920960f 67#define PPC_FEATURE_SPE_COMP 0
1da177e4
LT
68#endif
69
1da177e4 70struct cpu_spec cpu_specs[] = {
4920960f
SR
71#ifdef CONFIG_PPC64
72 { /* Power3 */
73 .pvr_mask = 0xffff0000,
74 .pvr_value = 0x00400000,
75 .cpu_name = "POWER3 (630)",
76 .cpu_features = CPU_FTRS_POWER3,
77 .cpu_user_features = COMMON_USER_PPC64,
78 .icache_bsize = 128,
79 .dcache_bsize = 128,
80 .num_pmcs = 8,
4920960f 81 .oprofile_cpu_type = "ppc64/power3",
7a45fb19 82 .oprofile_type = PPC_OPROFILE_RS64,
80f15dc7 83 .platform = "power3",
4920960f
SR
84 },
85 { /* Power3+ */
86 .pvr_mask = 0xffff0000,
87 .pvr_value = 0x00410000,
88 .cpu_name = "POWER3 (630+)",
89 .cpu_features = CPU_FTRS_POWER3,
90 .cpu_user_features = COMMON_USER_PPC64,
91 .icache_bsize = 128,
92 .dcache_bsize = 128,
93 .num_pmcs = 8,
4920960f 94 .oprofile_cpu_type = "ppc64/power3",
7a45fb19 95 .oprofile_type = PPC_OPROFILE_RS64,
80f15dc7 96 .platform = "power3",
4920960f
SR
97 },
98 { /* Northstar */
99 .pvr_mask = 0xffff0000,
100 .pvr_value = 0x00330000,
101 .cpu_name = "RS64-II (northstar)",
102 .cpu_features = CPU_FTRS_RS64,
103 .cpu_user_features = COMMON_USER_PPC64,
104 .icache_bsize = 128,
105 .dcache_bsize = 128,
106 .num_pmcs = 8,
4920960f 107 .oprofile_cpu_type = "ppc64/rs64",
7a45fb19 108 .oprofile_type = PPC_OPROFILE_RS64,
80f15dc7 109 .platform = "rs64",
4920960f
SR
110 },
111 { /* Pulsar */
112 .pvr_mask = 0xffff0000,
113 .pvr_value = 0x00340000,
114 .cpu_name = "RS64-III (pulsar)",
115 .cpu_features = CPU_FTRS_RS64,
116 .cpu_user_features = COMMON_USER_PPC64,
117 .icache_bsize = 128,
118 .dcache_bsize = 128,
119 .num_pmcs = 8,
4920960f 120 .oprofile_cpu_type = "ppc64/rs64",
7a45fb19 121 .oprofile_type = PPC_OPROFILE_RS64,
80f15dc7 122 .platform = "rs64",
4920960f
SR
123 },
124 { /* I-star */
125 .pvr_mask = 0xffff0000,
126 .pvr_value = 0x00360000,
127 .cpu_name = "RS64-III (icestar)",
128 .cpu_features = CPU_FTRS_RS64,
129 .cpu_user_features = COMMON_USER_PPC64,
130 .icache_bsize = 128,
131 .dcache_bsize = 128,
132 .num_pmcs = 8,
4920960f 133 .oprofile_cpu_type = "ppc64/rs64",
7a45fb19 134 .oprofile_type = PPC_OPROFILE_RS64,
80f15dc7 135 .platform = "rs64",
4920960f
SR
136 },
137 { /* S-star */
138 .pvr_mask = 0xffff0000,
139 .pvr_value = 0x00370000,
140 .cpu_name = "RS64-IV (sstar)",
141 .cpu_features = CPU_FTRS_RS64,
142 .cpu_user_features = COMMON_USER_PPC64,
143 .icache_bsize = 128,
144 .dcache_bsize = 128,
145 .num_pmcs = 8,
4920960f 146 .oprofile_cpu_type = "ppc64/rs64",
7a45fb19 147 .oprofile_type = PPC_OPROFILE_RS64,
80f15dc7 148 .platform = "rs64",
4920960f
SR
149 },
150 { /* Power4 */
151 .pvr_mask = 0xffff0000,
152 .pvr_value = 0x00350000,
153 .cpu_name = "POWER4 (gp)",
154 .cpu_features = CPU_FTRS_POWER4,
a7ddc5e8 155 .cpu_user_features = COMMON_USER_POWER4,
4920960f
SR
156 .icache_bsize = 128,
157 .dcache_bsize = 128,
158 .num_pmcs = 8,
4920960f 159 .oprofile_cpu_type = "ppc64/power4",
7a45fb19 160 .oprofile_type = PPC_OPROFILE_POWER4,
80f15dc7 161 .platform = "power4",
4920960f
SR
162 },
163 { /* Power4+ */
164 .pvr_mask = 0xffff0000,
165 .pvr_value = 0x00380000,
166 .cpu_name = "POWER4+ (gq)",
167 .cpu_features = CPU_FTRS_POWER4,
a7ddc5e8 168 .cpu_user_features = COMMON_USER_POWER4,
4920960f
SR
169 .icache_bsize = 128,
170 .dcache_bsize = 128,
171 .num_pmcs = 8,
4920960f 172 .oprofile_cpu_type = "ppc64/power4",
7a45fb19 173 .oprofile_type = PPC_OPROFILE_POWER4,
80f15dc7 174 .platform = "power4",
4920960f
SR
175 },
176 { /* PPC970 */
177 .pvr_mask = 0xffff0000,
178 .pvr_value = 0x00390000,
179 .cpu_name = "PPC970",
180 .cpu_features = CPU_FTRS_PPC970,
a7ddc5e8 181 .cpu_user_features = COMMON_USER_POWER4 |
4920960f
SR
182 PPC_FEATURE_HAS_ALTIVEC_COMP,
183 .icache_bsize = 128,
184 .dcache_bsize = 128,
185 .num_pmcs = 8,
186 .cpu_setup = __setup_cpu_ppc970,
4920960f 187 .oprofile_cpu_type = "ppc64/970",
7a45fb19 188 .oprofile_type = PPC_OPROFILE_POWER4,
80f15dc7 189 .platform = "ppc970",
4920960f
SR
190 },
191#endif /* CONFIG_PPC64 */
192#if defined(CONFIG_PPC64) || defined(CONFIG_POWER4)
193 { /* PPC970FX */
194 .pvr_mask = 0xffff0000,
195 .pvr_value = 0x003c0000,
196 .cpu_name = "PPC970FX",
197#ifdef CONFIG_PPC32
198 .cpu_features = CPU_FTRS_970_32,
199#else
200 .cpu_features = CPU_FTRS_PPC970,
201#endif
a7ddc5e8 202 .cpu_user_features = COMMON_USER_POWER4 |
4920960f
SR
203 PPC_FEATURE_HAS_ALTIVEC_COMP,
204 .icache_bsize = 128,
205 .dcache_bsize = 128,
206 .num_pmcs = 8,
207 .cpu_setup = __setup_cpu_ppc970,
4920960f 208 .oprofile_cpu_type = "ppc64/970",
7a45fb19 209 .oprofile_type = PPC_OPROFILE_POWER4,
80f15dc7 210 .platform = "ppc970",
4920960f
SR
211 },
212#endif /* defined(CONFIG_PPC64) || defined(CONFIG_POWER4) */
213#ifdef CONFIG_PPC64
214 { /* PPC970MP */
215 .pvr_mask = 0xffff0000,
216 .pvr_value = 0x00440000,
217 .cpu_name = "PPC970MP",
218 .cpu_features = CPU_FTRS_PPC970,
a7ddc5e8 219 .cpu_user_features = COMMON_USER_POWER4 |
4920960f
SR
220 PPC_FEATURE_HAS_ALTIVEC_COMP,
221 .icache_bsize = 128,
222 .dcache_bsize = 128,
87af41be 223 .num_pmcs = 8,
4920960f 224 .cpu_setup = __setup_cpu_ppc970,
4920960f 225 .oprofile_cpu_type = "ppc64/970",
7a45fb19 226 .oprofile_type = PPC_OPROFILE_POWER4,
80f15dc7 227 .platform = "ppc970",
4920960f 228 },
3c726f8d 229 { /* Power5 GR */
4920960f
SR
230 .pvr_mask = 0xffff0000,
231 .pvr_value = 0x003a0000,
232 .cpu_name = "POWER5 (gr)",
233 .cpu_features = CPU_FTRS_POWER5,
a7ddc5e8 234 .cpu_user_features = COMMON_USER_POWER5,
4920960f
SR
235 .icache_bsize = 128,
236 .dcache_bsize = 128,
237 .num_pmcs = 6,
4920960f 238 .oprofile_cpu_type = "ppc64/power5",
7a45fb19 239 .oprofile_type = PPC_OPROFILE_POWER4,
e78dbc80
MN
240 /* SIHV / SIPR bits are implemented on POWER4+ (GQ)
241 * and above but only works on POWER5 and above
242 */
243 .oprofile_mmcra_sihv = MMCRA_SIHV,
244 .oprofile_mmcra_sipr = MMCRA_SIPR,
80f15dc7 245 .platform = "power5",
4920960f 246 },
3c726f8d 247 { /* Power5 GS */
4920960f
SR
248 .pvr_mask = 0xffff0000,
249 .pvr_value = 0x003b0000,
834608f7 250 .cpu_name = "POWER5+ (gs)",
4920960f 251 .cpu_features = CPU_FTRS_POWER5,
a7ddc5e8 252 .cpu_user_features = COMMON_USER_POWER5_PLUS,
4920960f
SR
253 .icache_bsize = 128,
254 .dcache_bsize = 128,
255 .num_pmcs = 6,
834608f7 256 .oprofile_cpu_type = "ppc64/power5+",
7a45fb19 257 .oprofile_type = PPC_OPROFILE_POWER4,
e78dbc80
MN
258 .oprofile_mmcra_sihv = MMCRA_SIHV,
259 .oprofile_mmcra_sipr = MMCRA_SIPR,
80f15dc7 260 .platform = "power5+",
4920960f 261 },
03054d51
AB
262 { /* Power6 */
263 .pvr_mask = 0xffff0000,
264 .pvr_value = 0x003e0000,
265 .cpu_name = "POWER6",
266 .cpu_features = CPU_FTRS_POWER6,
267 .cpu_user_features = COMMON_USER_POWER6,
268 .icache_bsize = 128,
269 .dcache_bsize = 128,
e78dbc80 270 .num_pmcs = 8,
03054d51
AB
271 .oprofile_cpu_type = "ppc64/power6",
272 .oprofile_type = PPC_OPROFILE_POWER4,
e78dbc80
MN
273 .oprofile_mmcra_sihv = POWER6_MMCRA_SIHV,
274 .oprofile_mmcra_sipr = POWER6_MMCRA_SIPR,
275 .oprofile_mmcra_clear = POWER6_MMCRA_THRM |
276 POWER6_MMCRA_OTHER,
03054d51
AB
277 .platform = "power6",
278 },
c902be71 279 { /* Cell Broadband Engine */
4920960f
SR
280 .pvr_mask = 0xffff0000,
281 .pvr_value = 0x00700000,
282 .cpu_name = "Cell Broadband Engine",
283 .cpu_features = CPU_FTRS_CELL,
284 .cpu_user_features = COMMON_USER_PPC64 |
aa5cb021
BH
285 PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP |
286 PPC_FEATURE_SMT,
4920960f
SR
287 .icache_bsize = 128,
288 .dcache_bsize = 128,
80f15dc7 289 .platform = "ppc-cell-be",
4920960f
SR
290 },
291 { /* default match */
292 .pvr_mask = 0x00000000,
293 .pvr_value = 0x00000000,
294 .cpu_name = "POWER4 (compatible)",
295 .cpu_features = CPU_FTRS_COMPATIBLE,
296 .cpu_user_features = COMMON_USER_PPC64,
297 .icache_bsize = 128,
298 .dcache_bsize = 128,
299 .num_pmcs = 6,
80f15dc7 300 .platform = "power4",
4920960f
SR
301 }
302#endif /* CONFIG_PPC64 */
303#ifdef CONFIG_PPC32
1da177e4 304#if CLASSIC_PPC
4920960f 305 { /* 601 */
1da177e4
LT
306 .pvr_mask = 0xffff0000,
307 .pvr_value = 0x00010000,
308 .cpu_name = "601",
10b35d99 309 .cpu_features = CPU_FTRS_PPC601,
4920960f 310 .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR |
d8e998c5 311 PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB,
1da177e4
LT
312 .icache_bsize = 32,
313 .dcache_bsize = 32,
80f15dc7 314 .platform = "ppc601",
1da177e4
LT
315 },
316 { /* 603 */
317 .pvr_mask = 0xffff0000,
318 .pvr_value = 0x00030000,
319 .cpu_name = "603",
10b35d99 320 .cpu_features = CPU_FTRS_603,
4920960f 321 .cpu_user_features = COMMON_USER,
1da177e4
LT
322 .icache_bsize = 32,
323 .dcache_bsize = 32,
80f15dc7
PM
324 .cpu_setup = __setup_cpu_603,
325 .platform = "ppc603",
1da177e4
LT
326 },
327 { /* 603e */
328 .pvr_mask = 0xffff0000,
329 .pvr_value = 0x00060000,
330 .cpu_name = "603e",
10b35d99 331 .cpu_features = CPU_FTRS_603,
4920960f 332 .cpu_user_features = COMMON_USER,
1da177e4
LT
333 .icache_bsize = 32,
334 .dcache_bsize = 32,
80f15dc7
PM
335 .cpu_setup = __setup_cpu_603,
336 .platform = "ppc603",
1da177e4
LT
337 },
338 { /* 603ev */
339 .pvr_mask = 0xffff0000,
340 .pvr_value = 0x00070000,
341 .cpu_name = "603ev",
10b35d99 342 .cpu_features = CPU_FTRS_603,
4920960f 343 .cpu_user_features = COMMON_USER,
1da177e4
LT
344 .icache_bsize = 32,
345 .dcache_bsize = 32,
80f15dc7
PM
346 .cpu_setup = __setup_cpu_603,
347 .platform = "ppc603",
1da177e4
LT
348 },
349 { /* 604 */
350 .pvr_mask = 0xffff0000,
351 .pvr_value = 0x00040000,
352 .cpu_name = "604",
10b35d99 353 .cpu_features = CPU_FTRS_604,
4920960f 354 .cpu_user_features = COMMON_USER,
1da177e4
LT
355 .icache_bsize = 32,
356 .dcache_bsize = 32,
357 .num_pmcs = 2,
80f15dc7
PM
358 .cpu_setup = __setup_cpu_604,
359 .platform = "ppc604",
1da177e4
LT
360 },
361 { /* 604e */
362 .pvr_mask = 0xfffff000,
363 .pvr_value = 0x00090000,
364 .cpu_name = "604e",
10b35d99 365 .cpu_features = CPU_FTRS_604,
4920960f 366 .cpu_user_features = COMMON_USER,
1da177e4
LT
367 .icache_bsize = 32,
368 .dcache_bsize = 32,
369 .num_pmcs = 4,
80f15dc7
PM
370 .cpu_setup = __setup_cpu_604,
371 .platform = "ppc604",
1da177e4
LT
372 },
373 { /* 604r */
374 .pvr_mask = 0xffff0000,
375 .pvr_value = 0x00090000,
376 .cpu_name = "604r",
10b35d99 377 .cpu_features = CPU_FTRS_604,
4920960f 378 .cpu_user_features = COMMON_USER,
1da177e4
LT
379 .icache_bsize = 32,
380 .dcache_bsize = 32,
381 .num_pmcs = 4,
80f15dc7
PM
382 .cpu_setup = __setup_cpu_604,
383 .platform = "ppc604",
1da177e4
LT
384 },
385 { /* 604ev */
386 .pvr_mask = 0xffff0000,
387 .pvr_value = 0x000a0000,
388 .cpu_name = "604ev",
10b35d99 389 .cpu_features = CPU_FTRS_604,
4920960f 390 .cpu_user_features = COMMON_USER,
1da177e4
LT
391 .icache_bsize = 32,
392 .dcache_bsize = 32,
393 .num_pmcs = 4,
80f15dc7
PM
394 .cpu_setup = __setup_cpu_604,
395 .platform = "ppc604",
1da177e4
LT
396 },
397 { /* 740/750 (0x4202, don't support TAU ?) */
398 .pvr_mask = 0xffffffff,
399 .pvr_value = 0x00084202,
400 .cpu_name = "740/750",
10b35d99 401 .cpu_features = CPU_FTRS_740_NOTAU,
4920960f 402 .cpu_user_features = COMMON_USER,
1da177e4
LT
403 .icache_bsize = 32,
404 .dcache_bsize = 32,
405 .num_pmcs = 4,
80f15dc7
PM
406 .cpu_setup = __setup_cpu_750,
407 .platform = "ppc750",
1da177e4 408 },
1da177e4
LT
409 { /* 750CX (80100 and 8010x?) */
410 .pvr_mask = 0xfffffff0,
411 .pvr_value = 0x00080100,
412 .cpu_name = "750CX",
10b35d99 413 .cpu_features = CPU_FTRS_750,
4920960f 414 .cpu_user_features = COMMON_USER,
1da177e4
LT
415 .icache_bsize = 32,
416 .dcache_bsize = 32,
417 .num_pmcs = 4,
80f15dc7
PM
418 .cpu_setup = __setup_cpu_750cx,
419 .platform = "ppc750",
1da177e4
LT
420 },
421 { /* 750CX (82201 and 82202) */
422 .pvr_mask = 0xfffffff0,
423 .pvr_value = 0x00082200,
424 .cpu_name = "750CX",
10b35d99 425 .cpu_features = CPU_FTRS_750,
4920960f 426 .cpu_user_features = COMMON_USER,
1da177e4
LT
427 .icache_bsize = 32,
428 .dcache_bsize = 32,
429 .num_pmcs = 4,
80f15dc7
PM
430 .cpu_setup = __setup_cpu_750cx,
431 .platform = "ppc750",
1da177e4
LT
432 },
433 { /* 750CXe (82214) */
434 .pvr_mask = 0xfffffff0,
435 .pvr_value = 0x00082210,
436 .cpu_name = "750CXe",
10b35d99 437 .cpu_features = CPU_FTRS_750,
4920960f 438 .cpu_user_features = COMMON_USER,
1da177e4
LT
439 .icache_bsize = 32,
440 .dcache_bsize = 32,
441 .num_pmcs = 4,
80f15dc7
PM
442 .cpu_setup = __setup_cpu_750cx,
443 .platform = "ppc750",
1da177e4 444 },
7c31625a
AO
445 { /* 750CXe "Gekko" (83214) */
446 .pvr_mask = 0xffffffff,
447 .pvr_value = 0x00083214,
448 .cpu_name = "750CXe",
10b35d99 449 .cpu_features = CPU_FTRS_750,
4920960f 450 .cpu_user_features = COMMON_USER,
7c31625a
AO
451 .icache_bsize = 32,
452 .dcache_bsize = 32,
453 .num_pmcs = 4,
80f15dc7
PM
454 .cpu_setup = __setup_cpu_750cx,
455 .platform = "ppc750",
7c31625a 456 },
ac1ff047
AO
457 { /* 745/755 */
458 .pvr_mask = 0xfffff000,
459 .pvr_value = 0x00083000,
460 .cpu_name = "745/755",
10b35d99 461 .cpu_features = CPU_FTRS_750,
4920960f 462 .cpu_user_features = COMMON_USER,
ac1ff047
AO
463 .icache_bsize = 32,
464 .dcache_bsize = 32,
465 .num_pmcs = 4,
80f15dc7
PM
466 .cpu_setup = __setup_cpu_750,
467 .platform = "ppc750",
ac1ff047 468 },
1da177e4
LT
469 { /* 750FX rev 1.x */
470 .pvr_mask = 0xffffff00,
471 .pvr_value = 0x70000100,
472 .cpu_name = "750FX",
10b35d99 473 .cpu_features = CPU_FTRS_750FX1,
4920960f 474 .cpu_user_features = COMMON_USER,
1da177e4
LT
475 .icache_bsize = 32,
476 .dcache_bsize = 32,
477 .num_pmcs = 4,
80f15dc7
PM
478 .cpu_setup = __setup_cpu_750,
479 .platform = "ppc750",
1da177e4
LT
480 },
481 { /* 750FX rev 2.0 must disable HID0[DPM] */
482 .pvr_mask = 0xffffffff,
483 .pvr_value = 0x70000200,
484 .cpu_name = "750FX",
10b35d99 485 .cpu_features = CPU_FTRS_750FX2,
4920960f 486 .cpu_user_features = COMMON_USER,
1da177e4
LT
487 .icache_bsize = 32,
488 .dcache_bsize = 32,
489 .num_pmcs = 4,
80f15dc7
PM
490 .cpu_setup = __setup_cpu_750,
491 .platform = "ppc750",
1da177e4
LT
492 },
493 { /* 750FX (All revs except 2.0) */
494 .pvr_mask = 0xffff0000,
495 .pvr_value = 0x70000000,
496 .cpu_name = "750FX",
10b35d99 497 .cpu_features = CPU_FTRS_750FX,
4920960f 498 .cpu_user_features = COMMON_USER,
1da177e4
LT
499 .icache_bsize = 32,
500 .dcache_bsize = 32,
501 .num_pmcs = 4,
80f15dc7
PM
502 .cpu_setup = __setup_cpu_750fx,
503 .platform = "ppc750",
1da177e4
LT
504 },
505 { /* 750GX */
506 .pvr_mask = 0xffff0000,
507 .pvr_value = 0x70020000,
508 .cpu_name = "750GX",
10b35d99 509 .cpu_features = CPU_FTRS_750GX,
4920960f 510 .cpu_user_features = COMMON_USER,
1da177e4
LT
511 .icache_bsize = 32,
512 .dcache_bsize = 32,
513 .num_pmcs = 4,
80f15dc7
PM
514 .cpu_setup = __setup_cpu_750fx,
515 .platform = "ppc750",
1da177e4
LT
516 },
517 { /* 740/750 (L2CR bit need fixup for 740) */
518 .pvr_mask = 0xffff0000,
519 .pvr_value = 0x00080000,
520 .cpu_name = "740/750",
10b35d99 521 .cpu_features = CPU_FTRS_740,
4920960f 522 .cpu_user_features = COMMON_USER,
1da177e4
LT
523 .icache_bsize = 32,
524 .dcache_bsize = 32,
525 .num_pmcs = 4,
80f15dc7
PM
526 .cpu_setup = __setup_cpu_750,
527 .platform = "ppc750",
1da177e4
LT
528 },
529 { /* 7400 rev 1.1 ? (no TAU) */
530 .pvr_mask = 0xffffffff,
531 .pvr_value = 0x000c1101,
532 .cpu_name = "7400 (1.1)",
10b35d99 533 .cpu_features = CPU_FTRS_7400_NOTAU,
4920960f 534 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
1da177e4
LT
535 .icache_bsize = 32,
536 .dcache_bsize = 32,
537 .num_pmcs = 4,
80f15dc7
PM
538 .cpu_setup = __setup_cpu_7400,
539 .platform = "ppc7400",
1da177e4
LT
540 },
541 { /* 7400 */
542 .pvr_mask = 0xffff0000,
543 .pvr_value = 0x000c0000,
544 .cpu_name = "7400",
10b35d99 545 .cpu_features = CPU_FTRS_7400,
4920960f 546 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
1da177e4
LT
547 .icache_bsize = 32,
548 .dcache_bsize = 32,
549 .num_pmcs = 4,
80f15dc7
PM
550 .cpu_setup = __setup_cpu_7400,
551 .platform = "ppc7400",
1da177e4
LT
552 },
553 { /* 7410 */
554 .pvr_mask = 0xffff0000,
555 .pvr_value = 0x800c0000,
556 .cpu_name = "7410",
10b35d99 557 .cpu_features = CPU_FTRS_7400,
4920960f 558 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
1da177e4
LT
559 .icache_bsize = 32,
560 .dcache_bsize = 32,
561 .num_pmcs = 4,
80f15dc7
PM
562 .cpu_setup = __setup_cpu_7410,
563 .platform = "ppc7400",
1da177e4
LT
564 },
565 { /* 7450 2.0 - no doze/nap */
566 .pvr_mask = 0xffffffff,
567 .pvr_value = 0x80000200,
568 .cpu_name = "7450",
10b35d99 569 .cpu_features = CPU_FTRS_7450_20,
4920960f 570 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
1da177e4
LT
571 .icache_bsize = 32,
572 .dcache_bsize = 32,
573 .num_pmcs = 6,
555d97ac 574 .cpu_setup = __setup_cpu_745x,
555d97ac 575 .oprofile_cpu_type = "ppc/7450",
7a45fb19 576 .oprofile_type = PPC_OPROFILE_G4,
80f15dc7 577 .platform = "ppc7450",
1da177e4
LT
578 },
579 { /* 7450 2.1 */
580 .pvr_mask = 0xffffffff,
581 .pvr_value = 0x80000201,
582 .cpu_name = "7450",
10b35d99 583 .cpu_features = CPU_FTRS_7450_21,
4920960f 584 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
1da177e4
LT
585 .icache_bsize = 32,
586 .dcache_bsize = 32,
587 .num_pmcs = 6,
555d97ac 588 .cpu_setup = __setup_cpu_745x,
555d97ac 589 .oprofile_cpu_type = "ppc/7450",
7a45fb19 590 .oprofile_type = PPC_OPROFILE_G4,
80f15dc7 591 .platform = "ppc7450",
1da177e4
LT
592 },
593 { /* 7450 2.3 and newer */
594 .pvr_mask = 0xffff0000,
595 .pvr_value = 0x80000000,
596 .cpu_name = "7450",
10b35d99 597 .cpu_features = CPU_FTRS_7450_23,
4920960f 598 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
1da177e4
LT
599 .icache_bsize = 32,
600 .dcache_bsize = 32,
601 .num_pmcs = 6,
555d97ac 602 .cpu_setup = __setup_cpu_745x,
555d97ac 603 .oprofile_cpu_type = "ppc/7450",
7a45fb19 604 .oprofile_type = PPC_OPROFILE_G4,
80f15dc7 605 .platform = "ppc7450",
1da177e4
LT
606 },
607 { /* 7455 rev 1.x */
608 .pvr_mask = 0xffffff00,
609 .pvr_value = 0x80010100,
610 .cpu_name = "7455",
10b35d99 611 .cpu_features = CPU_FTRS_7455_1,
4920960f 612 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
1da177e4
LT
613 .icache_bsize = 32,
614 .dcache_bsize = 32,
615 .num_pmcs = 6,
555d97ac 616 .cpu_setup = __setup_cpu_745x,
555d97ac 617 .oprofile_cpu_type = "ppc/7450",
7a45fb19 618 .oprofile_type = PPC_OPROFILE_G4,
80f15dc7 619 .platform = "ppc7450",
1da177e4
LT
620 },
621 { /* 7455 rev 2.0 */
622 .pvr_mask = 0xffffffff,
623 .pvr_value = 0x80010200,
624 .cpu_name = "7455",
10b35d99 625 .cpu_features = CPU_FTRS_7455_20,
4920960f 626 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
1da177e4
LT
627 .icache_bsize = 32,
628 .dcache_bsize = 32,
629 .num_pmcs = 6,
555d97ac 630 .cpu_setup = __setup_cpu_745x,
555d97ac 631 .oprofile_cpu_type = "ppc/7450",
7a45fb19 632 .oprofile_type = PPC_OPROFILE_G4,
80f15dc7 633 .platform = "ppc7450",
1da177e4
LT
634 },
635 { /* 7455 others */
636 .pvr_mask = 0xffff0000,
637 .pvr_value = 0x80010000,
638 .cpu_name = "7455",
10b35d99 639 .cpu_features = CPU_FTRS_7455,
4920960f 640 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
1da177e4
LT
641 .icache_bsize = 32,
642 .dcache_bsize = 32,
643 .num_pmcs = 6,
555d97ac 644 .cpu_setup = __setup_cpu_745x,
555d97ac 645 .oprofile_cpu_type = "ppc/7450",
7a45fb19 646 .oprofile_type = PPC_OPROFILE_G4,
80f15dc7 647 .platform = "ppc7450",
1da177e4
LT
648 },
649 { /* 7447/7457 Rev 1.0 */
650 .pvr_mask = 0xffffffff,
651 .pvr_value = 0x80020100,
652 .cpu_name = "7447/7457",
10b35d99 653 .cpu_features = CPU_FTRS_7447_10,
4920960f 654 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
1da177e4
LT
655 .icache_bsize = 32,
656 .dcache_bsize = 32,
657 .num_pmcs = 6,
555d97ac 658 .cpu_setup = __setup_cpu_745x,
555d97ac 659 .oprofile_cpu_type = "ppc/7450",
7a45fb19 660 .oprofile_type = PPC_OPROFILE_G4,
80f15dc7 661 .platform = "ppc7450",
1da177e4
LT
662 },
663 { /* 7447/7457 Rev 1.1 */
664 .pvr_mask = 0xffffffff,
665 .pvr_value = 0x80020101,
666 .cpu_name = "7447/7457",
10b35d99 667 .cpu_features = CPU_FTRS_7447_10,
4920960f 668 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
1da177e4
LT
669 .icache_bsize = 32,
670 .dcache_bsize = 32,
671 .num_pmcs = 6,
555d97ac 672 .cpu_setup = __setup_cpu_745x,
555d97ac 673 .oprofile_cpu_type = "ppc/7450",
7a45fb19 674 .oprofile_type = PPC_OPROFILE_G4,
80f15dc7 675 .platform = "ppc7450",
1da177e4
LT
676 },
677 { /* 7447/7457 Rev 1.2 and later */
678 .pvr_mask = 0xffff0000,
679 .pvr_value = 0x80020000,
680 .cpu_name = "7447/7457",
10b35d99 681 .cpu_features = CPU_FTRS_7447,
4920960f 682 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
1da177e4
LT
683 .icache_bsize = 32,
684 .dcache_bsize = 32,
685 .num_pmcs = 6,
555d97ac 686 .cpu_setup = __setup_cpu_745x,
555d97ac 687 .oprofile_cpu_type = "ppc/7450",
7a45fb19 688 .oprofile_type = PPC_OPROFILE_G4,
80f15dc7 689 .platform = "ppc7450",
1da177e4
LT
690 },
691 { /* 7447A */
692 .pvr_mask = 0xffff0000,
693 .pvr_value = 0x80030000,
694 .cpu_name = "7447A",
10b35d99 695 .cpu_features = CPU_FTRS_7447A,
4920960f 696 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
bbde630b
KG
697 .icache_bsize = 32,
698 .dcache_bsize = 32,
699 .num_pmcs = 6,
555d97ac 700 .cpu_setup = __setup_cpu_745x,
555d97ac 701 .oprofile_cpu_type = "ppc/7450",
7a45fb19 702 .oprofile_type = PPC_OPROFILE_G4,
80f15dc7 703 .platform = "ppc7450",
bbde630b
KG
704 },
705 { /* 7448 */
706 .pvr_mask = 0xffff0000,
707 .pvr_value = 0x80040000,
708 .cpu_name = "7448",
10b35d99 709 .cpu_features = CPU_FTRS_7447A,
4920960f 710 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
1da177e4
LT
711 .icache_bsize = 32,
712 .dcache_bsize = 32,
713 .num_pmcs = 6,
555d97ac 714 .cpu_setup = __setup_cpu_745x,
555d97ac 715 .oprofile_cpu_type = "ppc/7450",
7a45fb19 716 .oprofile_type = PPC_OPROFILE_G4,
80f15dc7 717 .platform = "ppc7450",
1da177e4
LT
718 },
719 { /* 82xx (8240, 8245, 8260 are all 603e cores) */
720 .pvr_mask = 0x7fff0000,
721 .pvr_value = 0x00810000,
722 .cpu_name = "82xx",
10b35d99 723 .cpu_features = CPU_FTRS_82XX,
4920960f 724 .cpu_user_features = COMMON_USER,
1da177e4
LT
725 .icache_bsize = 32,
726 .dcache_bsize = 32,
80f15dc7
PM
727 .cpu_setup = __setup_cpu_603,
728 .platform = "ppc603",
1da177e4
LT
729 },
730 { /* All G2_LE (603e core, plus some) have the same pvr */
731 .pvr_mask = 0x7fff0000,
732 .pvr_value = 0x00820000,
733 .cpu_name = "G2_LE",
10b35d99 734 .cpu_features = CPU_FTRS_G2_LE,
4920960f 735 .cpu_user_features = COMMON_USER,
1da177e4
LT
736 .icache_bsize = 32,
737 .dcache_bsize = 32,
80f15dc7
PM
738 .cpu_setup = __setup_cpu_603,
739 .platform = "ppc603",
1da177e4
LT
740 },
741 { /* e300 (a 603e core, plus some) on 83xx */
742 .pvr_mask = 0x7fff0000,
743 .pvr_value = 0x00830000,
744 .cpu_name = "e300",
10b35d99 745 .cpu_features = CPU_FTRS_E300,
4920960f 746 .cpu_user_features = COMMON_USER,
1da177e4
LT
747 .icache_bsize = 32,
748 .dcache_bsize = 32,
80f15dc7
PM
749 .cpu_setup = __setup_cpu_603,
750 .platform = "ppc603",
1da177e4
LT
751 },
752 { /* default match, we assume split I/D cache & TB (non-601)... */
753 .pvr_mask = 0x00000000,
754 .pvr_value = 0x00000000,
755 .cpu_name = "(generic PPC)",
10b35d99 756 .cpu_features = CPU_FTRS_CLASSIC32,
4920960f 757 .cpu_user_features = COMMON_USER,
1da177e4
LT
758 .icache_bsize = 32,
759 .dcache_bsize = 32,
80f15dc7 760 .platform = "ppc603",
1da177e4
LT
761 },
762#endif /* CLASSIC_PPC */
1da177e4
LT
763#ifdef CONFIG_8xx
764 { /* 8xx */
765 .pvr_mask = 0xffff0000,
766 .pvr_value = 0x00500000,
767 .cpu_name = "8xx",
768 /* CPU_FTR_MAYBE_CAN_DOZE is possible,
769 * if the 8xx code is there.... */
10b35d99 770 .cpu_features = CPU_FTRS_8XX,
1da177e4
LT
771 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
772 .icache_bsize = 16,
773 .dcache_bsize = 16,
80f15dc7 774 .platform = "ppc823",
1da177e4
LT
775 },
776#endif /* CONFIG_8xx */
777#ifdef CONFIG_40x
778 { /* 403GC */
779 .pvr_mask = 0xffffff00,
780 .pvr_value = 0x00200200,
781 .cpu_name = "403GC",
10b35d99 782 .cpu_features = CPU_FTRS_40X,
1da177e4
LT
783 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
784 .icache_bsize = 16,
785 .dcache_bsize = 16,
80f15dc7 786 .platform = "ppc403",
1da177e4
LT
787 },
788 { /* 403GCX */
789 .pvr_mask = 0xffffff00,
790 .pvr_value = 0x00201400,
791 .cpu_name = "403GCX",
10b35d99 792 .cpu_features = CPU_FTRS_40X,
d8e998c5
BH
793 .cpu_user_features = PPC_FEATURE_32 |
794 PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB,
1da177e4
LT
795 .icache_bsize = 16,
796 .dcache_bsize = 16,
80f15dc7 797 .platform = "ppc403",
1da177e4
LT
798 },
799 { /* 403G ?? */
800 .pvr_mask = 0xffff0000,
801 .pvr_value = 0x00200000,
802 .cpu_name = "403G ??",
10b35d99 803 .cpu_features = CPU_FTRS_40X,
1da177e4
LT
804 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
805 .icache_bsize = 16,
806 .dcache_bsize = 16,
80f15dc7 807 .platform = "ppc403",
1da177e4
LT
808 },
809 { /* 405GP */
810 .pvr_mask = 0xffff0000,
811 .pvr_value = 0x40110000,
812 .cpu_name = "405GP",
10b35d99 813 .cpu_features = CPU_FTRS_40X,
1da177e4
LT
814 .cpu_user_features = PPC_FEATURE_32 |
815 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
816 .icache_bsize = 32,
817 .dcache_bsize = 32,
80f15dc7 818 .platform = "ppc405",
1da177e4
LT
819 },
820 { /* STB 03xxx */
821 .pvr_mask = 0xffff0000,
822 .pvr_value = 0x40130000,
823 .cpu_name = "STB03xxx",
10b35d99 824 .cpu_features = CPU_FTRS_40X,
1da177e4
LT
825 .cpu_user_features = PPC_FEATURE_32 |
826 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
827 .icache_bsize = 32,
828 .dcache_bsize = 32,
80f15dc7 829 .platform = "ppc405",
1da177e4
LT
830 },
831 { /* STB 04xxx */
832 .pvr_mask = 0xffff0000,
833 .pvr_value = 0x41810000,
834 .cpu_name = "STB04xxx",
10b35d99 835 .cpu_features = CPU_FTRS_40X,
1da177e4
LT
836 .cpu_user_features = PPC_FEATURE_32 |
837 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
838 .icache_bsize = 32,
839 .dcache_bsize = 32,
80f15dc7 840 .platform = "ppc405",
1da177e4
LT
841 },
842 { /* NP405L */
843 .pvr_mask = 0xffff0000,
844 .pvr_value = 0x41610000,
845 .cpu_name = "NP405L",
10b35d99 846 .cpu_features = CPU_FTRS_40X,
1da177e4
LT
847 .cpu_user_features = PPC_FEATURE_32 |
848 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
849 .icache_bsize = 32,
850 .dcache_bsize = 32,
80f15dc7 851 .platform = "ppc405",
1da177e4
LT
852 },
853 { /* NP4GS3 */
854 .pvr_mask = 0xffff0000,
855 .pvr_value = 0x40B10000,
856 .cpu_name = "NP4GS3",
10b35d99 857 .cpu_features = CPU_FTRS_40X,
1da177e4
LT
858 .cpu_user_features = PPC_FEATURE_32 |
859 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
860 .icache_bsize = 32,
861 .dcache_bsize = 32,
80f15dc7 862 .platform = "ppc405",
1da177e4
LT
863 },
864 { /* NP405H */
865 .pvr_mask = 0xffff0000,
866 .pvr_value = 0x41410000,
867 .cpu_name = "NP405H",
10b35d99 868 .cpu_features = CPU_FTRS_40X,
1da177e4
LT
869 .cpu_user_features = PPC_FEATURE_32 |
870 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
871 .icache_bsize = 32,
872 .dcache_bsize = 32,
80f15dc7 873 .platform = "ppc405",
1da177e4
LT
874 },
875 { /* 405GPr */
876 .pvr_mask = 0xffff0000,
877 .pvr_value = 0x50910000,
878 .cpu_name = "405GPr",
10b35d99 879 .cpu_features = CPU_FTRS_40X,
1da177e4
LT
880 .cpu_user_features = PPC_FEATURE_32 |
881 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
882 .icache_bsize = 32,
883 .dcache_bsize = 32,
80f15dc7 884 .platform = "ppc405",
1da177e4
LT
885 },
886 { /* STBx25xx */
887 .pvr_mask = 0xffff0000,
888 .pvr_value = 0x51510000,
889 .cpu_name = "STBx25xx",
10b35d99 890 .cpu_features = CPU_FTRS_40X,
1da177e4
LT
891 .cpu_user_features = PPC_FEATURE_32 |
892 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
893 .icache_bsize = 32,
894 .dcache_bsize = 32,
80f15dc7 895 .platform = "ppc405",
1da177e4
LT
896 },
897 { /* 405LP */
898 .pvr_mask = 0xffff0000,
899 .pvr_value = 0x41F10000,
900 .cpu_name = "405LP",
10b35d99 901 .cpu_features = CPU_FTRS_40X,
1da177e4
LT
902 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
903 .icache_bsize = 32,
904 .dcache_bsize = 32,
80f15dc7 905 .platform = "ppc405",
1da177e4
LT
906 },
907 { /* Xilinx Virtex-II Pro */
72646c7f 908 .pvr_mask = 0xfffff000,
1da177e4
LT
909 .pvr_value = 0x20010000,
910 .cpu_name = "Virtex-II Pro",
10b35d99 911 .cpu_features = CPU_FTRS_40X,
1da177e4
LT
912 .cpu_user_features = PPC_FEATURE_32 |
913 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
914 .icache_bsize = 32,
915 .dcache_bsize = 32,
80f15dc7 916 .platform = "ppc405",
1da177e4 917 },
72646c7f
GL
918 { /* Xilinx Virtex-4 FX */
919 .pvr_mask = 0xfffff000,
920 .pvr_value = 0x20011000,
921 .cpu_name = "Virtex-4 FX",
922 .cpu_features = CPU_FTRS_40X,
923 .cpu_user_features = PPC_FEATURE_32 |
924 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
925 .icache_bsize = 32,
926 .dcache_bsize = 32,
927 },
ad95d609
ES
928 { /* 405EP */
929 .pvr_mask = 0xffff0000,
930 .pvr_value = 0x51210000,
931 .cpu_name = "405EP",
10b35d99 932 .cpu_features = CPU_FTRS_40X,
ad95d609
ES
933 .cpu_user_features = PPC_FEATURE_32 |
934 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
935 .icache_bsize = 32,
936 .dcache_bsize = 32,
80f15dc7 937 .platform = "ppc405",
ad95d609 938 },
1da177e4
LT
939
940#endif /* CONFIG_40x */
941#ifdef CONFIG_44x
c9cf73ae
MP
942 {
943 .pvr_mask = 0xf0000fff,
944 .pvr_value = 0x40000850,
945 .cpu_name = "440EP Rev. A",
10b35d99 946 .cpu_features = CPU_FTRS_44X,
80f15dc7 947 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
c9cf73ae
MP
948 .icache_bsize = 32,
949 .dcache_bsize = 32,
80f15dc7 950 .platform = "ppc440",
c9cf73ae
MP
951 },
952 {
953 .pvr_mask = 0xf0000fff,
954 .pvr_value = 0x400008d3,
955 .cpu_name = "440EP Rev. B",
10b35d99 956 .cpu_features = CPU_FTRS_44X,
80f15dc7 957 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
c9cf73ae
MP
958 .icache_bsize = 32,
959 .dcache_bsize = 32,
80f15dc7 960 .platform = "ppc440",
c9cf73ae 961 },
4920960f 962 { /* 440GP Rev. B */
1da177e4
LT
963 .pvr_mask = 0xf0000fff,
964 .pvr_value = 0x40000440,
965 .cpu_name = "440GP Rev. B",
10b35d99 966 .cpu_features = CPU_FTRS_44X,
80f15dc7 967 .cpu_user_features = COMMON_USER_BOOKE,
1da177e4
LT
968 .icache_bsize = 32,
969 .dcache_bsize = 32,
80f15dc7 970 .platform = "ppc440gp",
1da177e4 971 },
4920960f 972 { /* 440GP Rev. C */
1da177e4
LT
973 .pvr_mask = 0xf0000fff,
974 .pvr_value = 0x40000481,
975 .cpu_name = "440GP Rev. C",
10b35d99 976 .cpu_features = CPU_FTRS_44X,
80f15dc7 977 .cpu_user_features = COMMON_USER_BOOKE,
1da177e4
LT
978 .icache_bsize = 32,
979 .dcache_bsize = 32,
80f15dc7 980 .platform = "ppc440gp",
1da177e4
LT
981 },
982 { /* 440GX Rev. A */
983 .pvr_mask = 0xf0000fff,
984 .pvr_value = 0x50000850,
985 .cpu_name = "440GX Rev. A",
10b35d99 986 .cpu_features = CPU_FTRS_44X,
80f15dc7 987 .cpu_user_features = COMMON_USER_BOOKE,
1da177e4
LT
988 .icache_bsize = 32,
989 .dcache_bsize = 32,
80f15dc7 990 .platform = "ppc440",
1da177e4
LT
991 },
992 { /* 440GX Rev. B */
993 .pvr_mask = 0xf0000fff,
994 .pvr_value = 0x50000851,
995 .cpu_name = "440GX Rev. B",
10b35d99 996 .cpu_features = CPU_FTRS_44X,
80f15dc7 997 .cpu_user_features = COMMON_USER_BOOKE,
1da177e4
LT
998 .icache_bsize = 32,
999 .dcache_bsize = 32,
80f15dc7 1000 .platform = "ppc440",
1da177e4
LT
1001 },
1002 { /* 440GX Rev. C */
1003 .pvr_mask = 0xf0000fff,
1004 .pvr_value = 0x50000892,
1005 .cpu_name = "440GX Rev. C",
10b35d99 1006 .cpu_features = CPU_FTRS_44X,
80f15dc7 1007 .cpu_user_features = COMMON_USER_BOOKE,
1da177e4
LT
1008 .icache_bsize = 32,
1009 .dcache_bsize = 32,
80f15dc7 1010 .platform = "ppc440",
1da177e4 1011 },
9149fb3b
ES
1012 { /* 440GX Rev. F */
1013 .pvr_mask = 0xf0000fff,
1014 .pvr_value = 0x50000894,
1015 .cpu_name = "440GX Rev. F",
10b35d99 1016 .cpu_features = CPU_FTRS_44X,
80f15dc7 1017 .cpu_user_features = COMMON_USER_BOOKE,
9149fb3b
ES
1018 .icache_bsize = 32,
1019 .dcache_bsize = 32,
80f15dc7 1020 .platform = "ppc440",
9149fb3b 1021 },
656de7e4
MP
1022 { /* 440SP Rev. A */
1023 .pvr_mask = 0xff000fff,
1024 .pvr_value = 0x53000891,
1025 .cpu_name = "440SP Rev. A",
10b35d99 1026 .cpu_features = CPU_FTRS_44X,
80f15dc7 1027 .cpu_user_features = COMMON_USER_BOOKE,
656de7e4
MP
1028 .icache_bsize = 32,
1029 .dcache_bsize = 32,
80f15dc7 1030 .platform = "ppc440",
656de7e4 1031 },
b0f7b8bc
RD
1032 { /* 440SPe Rev. A */
1033 .pvr_mask = 0xff000fff,
1034 .pvr_value = 0x53000890,
1035 .cpu_name = "440SPe Rev. A",
1036 .cpu_features = CPU_FTR_SPLIT_ID_CACHE |
1037 CPU_FTR_USE_TB,
80f15dc7 1038 .cpu_user_features = COMMON_USER_BOOKE,
b0f7b8bc
RD
1039 .icache_bsize = 32,
1040 .dcache_bsize = 32,
80f15dc7 1041 .platform = "ppc440",
b0f7b8bc 1042 },
1da177e4 1043#endif /* CONFIG_44x */
33d9e9b5 1044#ifdef CONFIG_FSL_BOOKE
4920960f 1045 { /* e200z5 */
33d9e9b5
KG
1046 .pvr_mask = 0xfff00000,
1047 .pvr_value = 0x81000000,
1048 .cpu_name = "e200z5",
1049 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
10b35d99 1050 .cpu_features = CPU_FTRS_E200,
80f15dc7
PM
1051 .cpu_user_features = COMMON_USER_BOOKE |
1052 PPC_FEATURE_HAS_EFP_SINGLE |
33d9e9b5
KG
1053 PPC_FEATURE_UNIFIED_CACHE,
1054 .dcache_bsize = 32,
80f15dc7 1055 .platform = "ppc5554",
33d9e9b5 1056 },
4920960f 1057 { /* e200z6 */
33d9e9b5
KG
1058 .pvr_mask = 0xfff00000,
1059 .pvr_value = 0x81100000,
1060 .cpu_name = "e200z6",
1061 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
10b35d99 1062 .cpu_features = CPU_FTRS_E200,
80f15dc7
PM
1063 .cpu_user_features = COMMON_USER_BOOKE |
1064 PPC_FEATURE_SPE_COMP |
33d9e9b5
KG
1065 PPC_FEATURE_HAS_EFP_SINGLE |
1066 PPC_FEATURE_UNIFIED_CACHE,
1067 .dcache_bsize = 32,
80f15dc7 1068 .platform = "ppc5554",
33d9e9b5 1069 },
4920960f 1070 { /* e500 */
1da177e4
LT
1071 .pvr_mask = 0xffff0000,
1072 .pvr_value = 0x80200000,
1073 .cpu_name = "e500",
1074 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
10b35d99 1075 .cpu_features = CPU_FTRS_E500,
80f15dc7
PM
1076 .cpu_user_features = COMMON_USER_BOOKE |
1077 PPC_FEATURE_SPE_COMP |
1da177e4
LT
1078 PPC_FEATURE_HAS_EFP_SINGLE,
1079 .icache_bsize = 32,
1080 .dcache_bsize = 32,
1081 .num_pmcs = 4,
555d97ac 1082 .oprofile_cpu_type = "ppc/e500",
7a45fb19 1083 .oprofile_type = PPC_OPROFILE_BOOKE,
80f15dc7 1084 .platform = "ppc8540",
1da177e4 1085 },
4920960f 1086 { /* e500v2 */
5b37b700
KG
1087 .pvr_mask = 0xffff0000,
1088 .pvr_value = 0x80210000,
1089 .cpu_name = "e500v2",
1090 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
10b35d99 1091 .cpu_features = CPU_FTRS_E500_2,
80f15dc7
PM
1092 .cpu_user_features = COMMON_USER_BOOKE |
1093 PPC_FEATURE_SPE_COMP |
1094 PPC_FEATURE_HAS_EFP_SINGLE |
1095 PPC_FEATURE_HAS_EFP_DOUBLE,
5b37b700
KG
1096 .icache_bsize = 32,
1097 .dcache_bsize = 32,
1098 .num_pmcs = 4,
555d97ac 1099 .oprofile_cpu_type = "ppc/e500",
7a45fb19 1100 .oprofile_type = PPC_OPROFILE_BOOKE,
80f15dc7 1101 .platform = "ppc8548",
5b37b700 1102 },
1da177e4
LT
1103#endif
1104#if !CLASSIC_PPC
1105 { /* default match */
1106 .pvr_mask = 0x00000000,
1107 .pvr_value = 0x00000000,
1108 .cpu_name = "(generic PPC)",
10b35d99 1109 .cpu_features = CPU_FTRS_GENERIC_32,
1da177e4
LT
1110 .cpu_user_features = PPC_FEATURE_32,
1111 .icache_bsize = 32,
1112 .dcache_bsize = 32,
80f15dc7 1113 .platform = "powerpc",
1da177e4
LT
1114 }
1115#endif /* !CLASSIC_PPC */
4920960f 1116#endif /* CONFIG_PPC32 */
1da177e4 1117};
This page took 0.184246 seconds and 5 git commands to generate.