2 * arch/ppc/kernel/cputable.c
4 * Copyright (C) 2001 Ben. Herrenschmidt (benh@kernel.crashing.org)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
12 #include <linux/config.h>
13 #include <linux/string.h>
14 #include <linux/sched.h>
15 #include <linux/threads.h>
16 #include <linux/init.h>
17 #include <asm/cputable.h>
19 struct cpu_spec
* cur_cpu_spec
[NR_CPUS
];
21 extern void __setup_cpu_601(unsigned long offset
, int cpu_nr
, struct cpu_spec
* spec
);
22 extern void __setup_cpu_603(unsigned long offset
, int cpu_nr
, struct cpu_spec
* spec
);
23 extern void __setup_cpu_604(unsigned long offset
, int cpu_nr
, struct cpu_spec
* spec
);
24 extern void __setup_cpu_750(unsigned long offset
, int cpu_nr
, struct cpu_spec
* spec
);
25 extern void __setup_cpu_750cx(unsigned long offset
, int cpu_nr
, struct cpu_spec
* spec
);
26 extern void __setup_cpu_750fx(unsigned long offset
, int cpu_nr
, struct cpu_spec
* spec
);
27 extern void __setup_cpu_7400(unsigned long offset
, int cpu_nr
, struct cpu_spec
* spec
);
28 extern void __setup_cpu_7410(unsigned long offset
, int cpu_nr
, struct cpu_spec
* spec
);
29 extern void __setup_cpu_745x(unsigned long offset
, int cpu_nr
, struct cpu_spec
* spec
);
30 extern void __setup_cpu_power3(unsigned long offset
, int cpu_nr
, struct cpu_spec
* spec
);
31 extern void __setup_cpu_power4(unsigned long offset
, int cpu_nr
, struct cpu_spec
* spec
);
32 extern void __setup_cpu_ppc970(unsigned long offset
, int cpu_nr
, struct cpu_spec
* spec
);
33 extern void __setup_cpu_generic(unsigned long offset
, int cpu_nr
, struct cpu_spec
* spec
);
35 #define CLASSIC_PPC (!defined(CONFIG_8xx) && !defined(CONFIG_4xx) && \
36 !defined(CONFIG_POWER3) && !defined(CONFIG_POWER4) && \
37 !defined(CONFIG_BOOKE))
39 /* This table only contains "desktop" CPUs, it need to be filled with embedded
42 #define COMMON_PPC (PPC_FEATURE_32 | PPC_FEATURE_HAS_FPU | \
45 /* We only set the altivec features if the kernel was compiled with altivec
49 #define CPU_FTR_ALTIVEC_COMP CPU_FTR_ALTIVEC
50 #define PPC_FEATURE_ALTIVEC_COMP PPC_FEATURE_HAS_ALTIVEC
52 #define CPU_FTR_ALTIVEC_COMP 0
53 #define PPC_FEATURE_ALTIVEC_COMP 0
56 /* We only set the spe features if the kernel was compiled with
60 #define PPC_FEATURE_SPE_COMP PPC_FEATURE_HAS_SPE
62 #define PPC_FEATURE_SPE_COMP 0
65 /* We need to mark all pages as being coherent if we're SMP or we
66 * have a 74[45]x and an MPC107 host bridge.
68 #if defined(CONFIG_SMP) || defined(CONFIG_MPC10X_BRIDGE)
69 #define CPU_FTR_COMMON CPU_FTR_NEED_COHERENT
71 #define CPU_FTR_COMMON 0
74 /* The powersave features NAP & DOZE seems to confuse BDI when
75 debugging. So if a BDI is used, disable theses
77 #ifndef CONFIG_BDI_SWITCH
78 #define CPU_FTR_MAYBE_CAN_DOZE CPU_FTR_CAN_DOZE
79 #define CPU_FTR_MAYBE_CAN_NAP CPU_FTR_CAN_NAP
81 #define CPU_FTR_MAYBE_CAN_DOZE 0
82 #define CPU_FTR_MAYBE_CAN_NAP 0
85 struct cpu_spec cpu_specs
[] = {
88 .pvr_mask
= 0xffff0000,
89 .pvr_value
= 0x00010000,
91 .cpu_features
= CPU_FTR_COMMON
| CPU_FTR_601
|
93 .cpu_user_features
= COMMON_PPC
| PPC_FEATURE_601_INSTR
|
94 PPC_FEATURE_UNIFIED_CACHE
,
97 .cpu_setup
= __setup_cpu_601
100 .pvr_mask
= 0xffff0000,
101 .pvr_value
= 0x00030000,
103 .cpu_features
= CPU_FTR_COMMON
|
104 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_MAYBE_CAN_DOZE
|
105 CPU_FTR_USE_TB
| CPU_FTR_MAYBE_CAN_NAP
,
106 .cpu_user_features
= COMMON_PPC
,
109 .cpu_setup
= __setup_cpu_603
112 .pvr_mask
= 0xffff0000,
113 .pvr_value
= 0x00060000,
115 .cpu_features
= CPU_FTR_COMMON
|
116 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_MAYBE_CAN_DOZE
|
117 CPU_FTR_USE_TB
| CPU_FTR_MAYBE_CAN_NAP
,
118 .cpu_user_features
= COMMON_PPC
,
121 .cpu_setup
= __setup_cpu_603
124 .pvr_mask
= 0xffff0000,
125 .pvr_value
= 0x00070000,
127 .cpu_features
= CPU_FTR_COMMON
|
128 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_MAYBE_CAN_DOZE
|
129 CPU_FTR_USE_TB
| CPU_FTR_MAYBE_CAN_NAP
,
130 .cpu_user_features
= COMMON_PPC
,
133 .cpu_setup
= __setup_cpu_603
136 .pvr_mask
= 0xffff0000,
137 .pvr_value
= 0x00040000,
139 .cpu_features
= CPU_FTR_COMMON
|
140 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_USE_TB
|
141 CPU_FTR_604_PERF_MON
| CPU_FTR_HPTE_TABLE
,
142 .cpu_user_features
= COMMON_PPC
,
146 .cpu_setup
= __setup_cpu_604
149 .pvr_mask
= 0xfffff000,
150 .pvr_value
= 0x00090000,
152 .cpu_features
= CPU_FTR_COMMON
|
153 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_USE_TB
|
154 CPU_FTR_604_PERF_MON
| CPU_FTR_HPTE_TABLE
,
155 .cpu_user_features
= COMMON_PPC
,
159 .cpu_setup
= __setup_cpu_604
162 .pvr_mask
= 0xffff0000,
163 .pvr_value
= 0x00090000,
165 .cpu_features
= CPU_FTR_COMMON
|
166 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_USE_TB
|
167 CPU_FTR_604_PERF_MON
| CPU_FTR_HPTE_TABLE
,
168 .cpu_user_features
= COMMON_PPC
,
172 .cpu_setup
= __setup_cpu_604
175 .pvr_mask
= 0xffff0000,
176 .pvr_value
= 0x000a0000,
178 .cpu_features
= CPU_FTR_COMMON
|
179 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_USE_TB
|
180 CPU_FTR_604_PERF_MON
| CPU_FTR_HPTE_TABLE
,
181 .cpu_user_features
= COMMON_PPC
,
185 .cpu_setup
= __setup_cpu_604
187 { /* 740/750 (0x4202, don't support TAU ?) */
188 .pvr_mask
= 0xffffffff,
189 .pvr_value
= 0x00084202,
190 .cpu_name
= "740/750",
191 .cpu_features
= CPU_FTR_COMMON
|
192 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_MAYBE_CAN_DOZE
|
193 CPU_FTR_USE_TB
| CPU_FTR_L2CR
| CPU_FTR_HPTE_TABLE
|
194 CPU_FTR_MAYBE_CAN_NAP
,
195 .cpu_user_features
= COMMON_PPC
,
199 .cpu_setup
= __setup_cpu_750
201 { /* 750CX (80100 and 8010x?) */
202 .pvr_mask
= 0xfffffff0,
203 .pvr_value
= 0x00080100,
205 .cpu_features
= CPU_FTR_COMMON
|
206 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_MAYBE_CAN_DOZE
|
207 CPU_FTR_USE_TB
| CPU_FTR_L2CR
| CPU_FTR_TAU
|
208 CPU_FTR_HPTE_TABLE
| CPU_FTR_MAYBE_CAN_NAP
,
209 .cpu_user_features
= COMMON_PPC
,
213 .cpu_setup
= __setup_cpu_750cx
215 { /* 750CX (82201 and 82202) */
216 .pvr_mask
= 0xfffffff0,
217 .pvr_value
= 0x00082200,
219 .cpu_features
= CPU_FTR_COMMON
|
220 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_MAYBE_CAN_DOZE
|
221 CPU_FTR_USE_TB
| CPU_FTR_L2CR
| CPU_FTR_TAU
|
222 CPU_FTR_HPTE_TABLE
| CPU_FTR_MAYBE_CAN_NAP
,
223 .cpu_user_features
= COMMON_PPC
,
227 .cpu_setup
= __setup_cpu_750cx
229 { /* 750CXe (82214) */
230 .pvr_mask
= 0xfffffff0,
231 .pvr_value
= 0x00082210,
232 .cpu_name
= "750CXe",
233 .cpu_features
= CPU_FTR_COMMON
|
234 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_MAYBE_CAN_DOZE
|
235 CPU_FTR_USE_TB
| CPU_FTR_L2CR
| CPU_FTR_TAU
|
236 CPU_FTR_HPTE_TABLE
| CPU_FTR_MAYBE_CAN_NAP
,
237 .cpu_user_features
= COMMON_PPC
,
241 .cpu_setup
= __setup_cpu_750cx
243 { /* 750CXe "Gekko" (83214) */
244 .pvr_mask
= 0xffffffff,
245 .pvr_value
= 0x00083214,
246 .cpu_name
= "750CXe",
247 .cpu_features
= CPU_FTR_COMMON
|
248 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_MAYBE_CAN_DOZE
|
249 CPU_FTR_USE_TB
| CPU_FTR_L2CR
| CPU_FTR_TAU
|
250 CPU_FTR_HPTE_TABLE
| CPU_FTR_MAYBE_CAN_NAP
,
251 .cpu_user_features
= COMMON_PPC
,
255 .cpu_setup
= __setup_cpu_750cx
258 .pvr_mask
= 0xfffff000,
259 .pvr_value
= 0x00083000,
260 .cpu_name
= "745/755",
261 .cpu_features
= CPU_FTR_COMMON
|
262 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_MAYBE_CAN_DOZE
|
263 CPU_FTR_USE_TB
| CPU_FTR_L2CR
| CPU_FTR_TAU
|
264 CPU_FTR_HPTE_TABLE
| CPU_FTR_MAYBE_CAN_NAP
,
265 .cpu_user_features
= COMMON_PPC
,
269 .cpu_setup
= __setup_cpu_750
271 { /* 750FX rev 1.x */
272 .pvr_mask
= 0xffffff00,
273 .pvr_value
= 0x70000100,
275 .cpu_features
= CPU_FTR_COMMON
|
276 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_MAYBE_CAN_DOZE
|
277 CPU_FTR_USE_TB
| CPU_FTR_L2CR
| CPU_FTR_TAU
|
278 CPU_FTR_HPTE_TABLE
| CPU_FTR_MAYBE_CAN_NAP
|
279 CPU_FTR_DUAL_PLL_750FX
| CPU_FTR_NO_DPM
,
280 .cpu_user_features
= COMMON_PPC
,
284 .cpu_setup
= __setup_cpu_750
286 { /* 750FX rev 2.0 must disable HID0[DPM] */
287 .pvr_mask
= 0xffffffff,
288 .pvr_value
= 0x70000200,
290 .cpu_features
= CPU_FTR_COMMON
|
291 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_MAYBE_CAN_DOZE
|
292 CPU_FTR_USE_TB
| CPU_FTR_L2CR
| CPU_FTR_TAU
|
293 CPU_FTR_HPTE_TABLE
| CPU_FTR_MAYBE_CAN_NAP
|
295 .cpu_user_features
= COMMON_PPC
,
299 .cpu_setup
= __setup_cpu_750
301 { /* 750FX (All revs except 2.0) */
302 .pvr_mask
= 0xffff0000,
303 .pvr_value
= 0x70000000,
305 .cpu_features
= CPU_FTR_COMMON
|
306 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_MAYBE_CAN_DOZE
|
307 CPU_FTR_USE_TB
| CPU_FTR_L2CR
| CPU_FTR_TAU
|
308 CPU_FTR_HPTE_TABLE
| CPU_FTR_MAYBE_CAN_NAP
|
309 CPU_FTR_DUAL_PLL_750FX
| CPU_FTR_HAS_HIGH_BATS
,
310 .cpu_user_features
= COMMON_PPC
,
314 .cpu_setup
= __setup_cpu_750fx
317 .pvr_mask
= 0xffff0000,
318 .pvr_value
= 0x70020000,
320 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
321 CPU_FTR_MAYBE_CAN_DOZE
| CPU_FTR_USE_TB
|
322 CPU_FTR_L2CR
| CPU_FTR_TAU
| CPU_FTR_HPTE_TABLE
|
323 CPU_FTR_MAYBE_CAN_NAP
| CPU_FTR_DUAL_PLL_750FX
|
324 CPU_FTR_HAS_HIGH_BATS
,
325 .cpu_user_features
= COMMON_PPC
,
329 .cpu_setup
= __setup_cpu_750fx
331 { /* 740/750 (L2CR bit need fixup for 740) */
332 .pvr_mask
= 0xffff0000,
333 .pvr_value
= 0x00080000,
334 .cpu_name
= "740/750",
335 .cpu_features
= CPU_FTR_COMMON
|
336 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_MAYBE_CAN_DOZE
|
337 CPU_FTR_USE_TB
| CPU_FTR_L2CR
| CPU_FTR_TAU
|
338 CPU_FTR_HPTE_TABLE
| CPU_FTR_MAYBE_CAN_NAP
,
339 .cpu_user_features
= COMMON_PPC
,
343 .cpu_setup
= __setup_cpu_750
345 { /* 7400 rev 1.1 ? (no TAU) */
346 .pvr_mask
= 0xffffffff,
347 .pvr_value
= 0x000c1101,
348 .cpu_name
= "7400 (1.1)",
349 .cpu_features
= CPU_FTR_COMMON
|
350 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_MAYBE_CAN_DOZE
|
351 CPU_FTR_USE_TB
| CPU_FTR_L2CR
| CPU_FTR_ALTIVEC_COMP
|
352 CPU_FTR_HPTE_TABLE
| CPU_FTR_MAYBE_CAN_NAP
,
353 .cpu_user_features
= COMMON_PPC
| PPC_FEATURE_ALTIVEC_COMP
,
357 .cpu_setup
= __setup_cpu_7400
360 .pvr_mask
= 0xffff0000,
361 .pvr_value
= 0x000c0000,
363 .cpu_features
= CPU_FTR_COMMON
|
364 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_MAYBE_CAN_DOZE
|
365 CPU_FTR_USE_TB
| CPU_FTR_L2CR
| CPU_FTR_TAU
|
366 CPU_FTR_ALTIVEC_COMP
| CPU_FTR_HPTE_TABLE
|
367 CPU_FTR_MAYBE_CAN_NAP
,
368 .cpu_user_features
= COMMON_PPC
| PPC_FEATURE_ALTIVEC_COMP
,
372 .cpu_setup
= __setup_cpu_7400
375 .pvr_mask
= 0xffff0000,
376 .pvr_value
= 0x800c0000,
378 .cpu_features
= CPU_FTR_COMMON
|
379 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_MAYBE_CAN_DOZE
|
380 CPU_FTR_USE_TB
| CPU_FTR_L2CR
| CPU_FTR_TAU
|
381 CPU_FTR_ALTIVEC_COMP
| CPU_FTR_HPTE_TABLE
|
382 CPU_FTR_MAYBE_CAN_NAP
,
383 .cpu_user_features
= COMMON_PPC
| PPC_FEATURE_ALTIVEC_COMP
,
387 .cpu_setup
= __setup_cpu_7410
389 { /* 7450 2.0 - no doze/nap */
390 .pvr_mask
= 0xffffffff,
391 .pvr_value
= 0x80000200,
393 .cpu_features
= CPU_FTR_COMMON
|
394 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_USE_TB
|
395 CPU_FTR_L2CR
| CPU_FTR_ALTIVEC_COMP
| CPU_FTR_L3CR
|
396 CPU_FTR_HPTE_TABLE
| CPU_FTR_SPEC7450
|
397 CPU_FTR_NEED_COHERENT
,
398 .cpu_user_features
= COMMON_PPC
| PPC_FEATURE_ALTIVEC_COMP
,
402 .cpu_setup
= __setup_cpu_745x
405 .pvr_mask
= 0xffffffff,
406 .pvr_value
= 0x80000201,
408 .cpu_features
= CPU_FTR_COMMON
|
409 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_USE_TB
|
410 CPU_FTR_MAYBE_CAN_NAP
| CPU_FTR_L2CR
|
411 CPU_FTR_ALTIVEC_COMP
| CPU_FTR_L3CR
|
412 CPU_FTR_HPTE_TABLE
| CPU_FTR_SPEC7450
|
413 CPU_FTR_NAP_DISABLE_L2_PR
| CPU_FTR_L3_DISABLE_NAP
|
414 CPU_FTR_NEED_COHERENT
,
415 .cpu_user_features
= COMMON_PPC
| PPC_FEATURE_ALTIVEC_COMP
,
419 .cpu_setup
= __setup_cpu_745x
421 { /* 7450 2.3 and newer */
422 .pvr_mask
= 0xffff0000,
423 .pvr_value
= 0x80000000,
425 .cpu_features
= CPU_FTR_COMMON
|
426 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_USE_TB
|
427 CPU_FTR_MAYBE_CAN_NAP
| CPU_FTR_L2CR
|
428 CPU_FTR_ALTIVEC_COMP
| CPU_FTR_L3CR
|
429 CPU_FTR_HPTE_TABLE
| CPU_FTR_SPEC7450
|
430 CPU_FTR_NAP_DISABLE_L2_PR
| CPU_FTR_NEED_COHERENT
,
431 .cpu_user_features
= COMMON_PPC
| PPC_FEATURE_ALTIVEC_COMP
,
435 .cpu_setup
= __setup_cpu_745x
438 .pvr_mask
= 0xffffff00,
439 .pvr_value
= 0x80010100,
441 .cpu_features
= CPU_FTR_COMMON
|
442 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_USE_TB
|
443 CPU_FTR_L2CR
| CPU_FTR_ALTIVEC_COMP
| CPU_FTR_L3CR
|
444 CPU_FTR_HPTE_TABLE
| CPU_FTR_SPEC7450
|
445 CPU_FTR_HAS_HIGH_BATS
| CPU_FTR_NEED_COHERENT
,
446 .cpu_user_features
= COMMON_PPC
| PPC_FEATURE_ALTIVEC_COMP
,
450 .cpu_setup
= __setup_cpu_745x
453 .pvr_mask
= 0xffffffff,
454 .pvr_value
= 0x80010200,
456 .cpu_features
= CPU_FTR_COMMON
|
457 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_USE_TB
|
458 CPU_FTR_MAYBE_CAN_NAP
| CPU_FTR_L2CR
|
459 CPU_FTR_ALTIVEC_COMP
| CPU_FTR_L3CR
|
460 CPU_FTR_HPTE_TABLE
| CPU_FTR_SPEC7450
|
461 CPU_FTR_NAP_DISABLE_L2_PR
| CPU_FTR_L3_DISABLE_NAP
|
462 CPU_FTR_NEED_COHERENT
| CPU_FTR_HAS_HIGH_BATS
,
463 .cpu_user_features
= COMMON_PPC
| PPC_FEATURE_ALTIVEC_COMP
,
467 .cpu_setup
= __setup_cpu_745x
470 .pvr_mask
= 0xffff0000,
471 .pvr_value
= 0x80010000,
473 .cpu_features
= CPU_FTR_COMMON
|
474 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_USE_TB
|
475 CPU_FTR_MAYBE_CAN_NAP
| CPU_FTR_L2CR
|
476 CPU_FTR_ALTIVEC_COMP
| CPU_FTR_L3CR
|
477 CPU_FTR_HPTE_TABLE
| CPU_FTR_SPEC7450
|
478 CPU_FTR_NAP_DISABLE_L2_PR
| CPU_FTR_HAS_HIGH_BATS
|
479 CPU_FTR_NEED_COHERENT
,
480 .cpu_user_features
= COMMON_PPC
| PPC_FEATURE_ALTIVEC_COMP
,
484 .cpu_setup
= __setup_cpu_745x
486 { /* 7447/7457 Rev 1.0 */
487 .pvr_mask
= 0xffffffff,
488 .pvr_value
= 0x80020100,
489 .cpu_name
= "7447/7457",
490 .cpu_features
= CPU_FTR_COMMON
|
491 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_USE_TB
|
492 CPU_FTR_MAYBE_CAN_NAP
| CPU_FTR_L2CR
|
493 CPU_FTR_ALTIVEC_COMP
| CPU_FTR_L3CR
|
494 CPU_FTR_HPTE_TABLE
| CPU_FTR_SPEC7450
|
495 CPU_FTR_NAP_DISABLE_L2_PR
| CPU_FTR_HAS_HIGH_BATS
|
496 CPU_FTR_NEED_COHERENT
| CPU_FTR_NO_BTIC
,
497 .cpu_user_features
= COMMON_PPC
| PPC_FEATURE_ALTIVEC_COMP
,
501 .cpu_setup
= __setup_cpu_745x
503 { /* 7447/7457 Rev 1.1 */
504 .pvr_mask
= 0xffffffff,
505 .pvr_value
= 0x80020101,
506 .cpu_name
= "7447/7457",
507 .cpu_features
= CPU_FTR_COMMON
|
508 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_USE_TB
|
509 CPU_FTR_MAYBE_CAN_NAP
| CPU_FTR_L2CR
|
510 CPU_FTR_ALTIVEC_COMP
| CPU_FTR_L3CR
|
511 CPU_FTR_HPTE_TABLE
| CPU_FTR_SPEC7450
|
512 CPU_FTR_NAP_DISABLE_L2_PR
| CPU_FTR_HAS_HIGH_BATS
|
513 CPU_FTR_NEED_COHERENT
| CPU_FTR_NO_BTIC
,
514 .cpu_user_features
= COMMON_PPC
| PPC_FEATURE_ALTIVEC_COMP
,
518 .cpu_setup
= __setup_cpu_745x
520 { /* 7447/7457 Rev 1.2 and later */
521 .pvr_mask
= 0xffff0000,
522 .pvr_value
= 0x80020000,
523 .cpu_name
= "7447/7457",
524 .cpu_features
= CPU_FTR_COMMON
|
525 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_USE_TB
|
526 CPU_FTR_MAYBE_CAN_NAP
| CPU_FTR_L2CR
|
527 CPU_FTR_ALTIVEC_COMP
| CPU_FTR_L3CR
|
528 CPU_FTR_HPTE_TABLE
| CPU_FTR_SPEC7450
|
529 CPU_FTR_NAP_DISABLE_L2_PR
| CPU_FTR_HAS_HIGH_BATS
|
530 CPU_FTR_NEED_COHERENT
,
531 .cpu_user_features
= COMMON_PPC
| PPC_FEATURE_ALTIVEC_COMP
,
535 .cpu_setup
= __setup_cpu_745x
538 .pvr_mask
= 0xffff0000,
539 .pvr_value
= 0x80030000,
541 .cpu_features
= CPU_FTR_COMMON
|
542 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_USE_TB
|
543 CPU_FTR_MAYBE_CAN_NAP
| CPU_FTR_L2CR
|
544 CPU_FTR_ALTIVEC_COMP
| CPU_FTR_HPTE_TABLE
|
545 CPU_FTR_SPEC7450
| CPU_FTR_NAP_DISABLE_L2_PR
|
546 CPU_FTR_HAS_HIGH_BATS
| CPU_FTR_NEED_COHERENT
,
547 .cpu_user_features
= COMMON_PPC
| PPC_FEATURE_ALTIVEC_COMP
,
551 .cpu_setup
= __setup_cpu_745x
554 .pvr_mask
= 0xffff0000,
555 .pvr_value
= 0x80040000,
557 .cpu_features
= CPU_FTR_COMMON
|
558 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_USE_TB
|
559 CPU_FTR_MAYBE_CAN_NAP
| CPU_FTR_L2CR
|
560 CPU_FTR_ALTIVEC_COMP
| CPU_FTR_HPTE_TABLE
|
561 CPU_FTR_SPEC7450
| CPU_FTR_NAP_DISABLE_L2_PR
|
562 CPU_FTR_HAS_HIGH_BATS
| CPU_FTR_NEED_COHERENT
,
563 .cpu_user_features
= COMMON_PPC
| PPC_FEATURE_ALTIVEC_COMP
,
567 .cpu_setup
= __setup_cpu_745x
569 { /* 82xx (8240, 8245, 8260 are all 603e cores) */
570 .pvr_mask
= 0x7fff0000,
571 .pvr_value
= 0x00810000,
573 .cpu_features
= CPU_FTR_COMMON
|
574 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_MAYBE_CAN_DOZE
|
576 .cpu_user_features
= COMMON_PPC
,
579 .cpu_setup
= __setup_cpu_603
581 { /* All G2_LE (603e core, plus some) have the same pvr */
582 .pvr_mask
= 0x7fff0000,
583 .pvr_value
= 0x00820000,
585 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
586 CPU_FTR_MAYBE_CAN_DOZE
| CPU_FTR_USE_TB
|
587 CPU_FTR_MAYBE_CAN_NAP
| CPU_FTR_HAS_HIGH_BATS
,
588 .cpu_user_features
= COMMON_PPC
,
591 .cpu_setup
= __setup_cpu_603
593 { /* e300 (a 603e core, plus some) on 83xx */
594 .pvr_mask
= 0x7fff0000,
595 .pvr_value
= 0x00830000,
597 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
598 CPU_FTR_MAYBE_CAN_DOZE
| CPU_FTR_USE_TB
|
599 CPU_FTR_MAYBE_CAN_NAP
| CPU_FTR_HAS_HIGH_BATS
,
600 .cpu_user_features
= COMMON_PPC
,
603 .cpu_setup
= __setup_cpu_603
605 { /* default match, we assume split I/D cache & TB (non-601)... */
606 .pvr_mask
= 0x00000000,
607 .pvr_value
= 0x00000000,
608 .cpu_name
= "(generic PPC)",
609 .cpu_features
= CPU_FTR_COMMON
|
610 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_USE_TB
|
612 .cpu_user_features
= COMMON_PPC
,
615 .cpu_setup
= __setup_cpu_generic
617 #endif /* CLASSIC_PPC */
618 #ifdef CONFIG_PPC64BRIDGE
620 .pvr_mask
= 0xffff0000,
621 .pvr_value
= 0x00400000,
622 .cpu_name
= "Power3 (630)",
623 .cpu_features
= CPU_FTR_COMMON
|
624 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_USE_TB
|
626 .cpu_user_features
= COMMON_PPC
| PPC_FEATURE_64
,
630 .cpu_setup
= __setup_cpu_power3
633 .pvr_mask
= 0xffff0000,
634 .pvr_value
= 0x00410000,
635 .cpu_name
= "Power3 (630+)",
636 .cpu_features
= CPU_FTR_COMMON
|
637 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_USE_TB
|
639 .cpu_user_features
= COMMON_PPC
| PPC_FEATURE_64
,
643 .cpu_setup
= __setup_cpu_power3
646 .pvr_mask
= 0xffff0000,
647 .pvr_value
= 0x00360000,
648 .cpu_name
= "I-star",
649 .cpu_features
= CPU_FTR_COMMON
|
650 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_USE_TB
|
652 .cpu_user_features
= COMMON_PPC
| PPC_FEATURE_64
,
656 .cpu_setup
= __setup_cpu_power3
659 .pvr_mask
= 0xffff0000,
660 .pvr_value
= 0x00370000,
661 .cpu_name
= "S-star",
662 .cpu_features
= CPU_FTR_COMMON
|
663 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_USE_TB
|
665 .cpu_user_features
= COMMON_PPC
| PPC_FEATURE_64
,
669 .cpu_setup
= __setup_cpu_power3
671 #endif /* CONFIG_PPC64BRIDGE */
674 .pvr_mask
= 0xffff0000,
675 .pvr_value
= 0x00350000,
676 .cpu_name
= "Power4",
677 .cpu_features
= CPU_FTR_COMMON
|
678 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_USE_TB
|
680 .cpu_user_features
= COMMON_PPC
| PPC_FEATURE_64
,
684 .cpu_setup
= __setup_cpu_power4
687 .pvr_mask
= 0xffff0000,
688 .pvr_value
= 0x00390000,
689 .cpu_name
= "PPC970",
690 .cpu_features
= CPU_FTR_COMMON
|
691 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_USE_TB
|
693 CPU_FTR_ALTIVEC_COMP
| CPU_FTR_MAYBE_CAN_NAP
,
694 .cpu_user_features
= COMMON_PPC
| PPC_FEATURE_64
|
695 PPC_FEATURE_ALTIVEC_COMP
,
699 .cpu_setup
= __setup_cpu_ppc970
702 .pvr_mask
= 0xffff0000,
703 .pvr_value
= 0x003c0000,
704 .cpu_name
= "PPC970FX",
705 .cpu_features
= CPU_FTR_COMMON
|
706 CPU_FTR_SPLIT_ID_CACHE
| CPU_FTR_USE_TB
|
708 CPU_FTR_ALTIVEC_COMP
| CPU_FTR_MAYBE_CAN_NAP
,
709 .cpu_user_features
= COMMON_PPC
| PPC_FEATURE_64
|
710 PPC_FEATURE_ALTIVEC_COMP
,
714 .cpu_setup
= __setup_cpu_ppc970
716 #endif /* CONFIG_POWER4 */
719 .pvr_mask
= 0xffff0000,
720 .pvr_value
= 0x00500000,
722 /* CPU_FTR_MAYBE_CAN_DOZE is possible,
723 * if the 8xx code is there.... */
724 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
726 .cpu_user_features
= PPC_FEATURE_32
| PPC_FEATURE_HAS_MMU
,
730 #endif /* CONFIG_8xx */
733 .pvr_mask
= 0xffffff00,
734 .pvr_value
= 0x00200200,
736 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
738 .cpu_user_features
= PPC_FEATURE_32
| PPC_FEATURE_HAS_MMU
,
743 .pvr_mask
= 0xffffff00,
744 .pvr_value
= 0x00201400,
745 .cpu_name
= "403GCX",
746 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
748 .cpu_user_features
= PPC_FEATURE_32
| PPC_FEATURE_HAS_MMU
,
753 .pvr_mask
= 0xffff0000,
754 .pvr_value
= 0x00200000,
755 .cpu_name
= "403G ??",
756 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
758 .cpu_user_features
= PPC_FEATURE_32
| PPC_FEATURE_HAS_MMU
,
763 .pvr_mask
= 0xffff0000,
764 .pvr_value
= 0x40110000,
766 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
768 .cpu_user_features
= PPC_FEATURE_32
|
769 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
774 .pvr_mask
= 0xffff0000,
775 .pvr_value
= 0x40130000,
776 .cpu_name
= "STB03xxx",
777 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
779 .cpu_user_features
= PPC_FEATURE_32
|
780 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
785 .pvr_mask
= 0xffff0000,
786 .pvr_value
= 0x41810000,
787 .cpu_name
= "STB04xxx",
788 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
790 .cpu_user_features
= PPC_FEATURE_32
|
791 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
796 .pvr_mask
= 0xffff0000,
797 .pvr_value
= 0x41610000,
798 .cpu_name
= "NP405L",
799 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
801 .cpu_user_features
= PPC_FEATURE_32
|
802 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
807 .pvr_mask
= 0xffff0000,
808 .pvr_value
= 0x40B10000,
809 .cpu_name
= "NP4GS3",
810 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
812 .cpu_user_features
= PPC_FEATURE_32
|
813 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
818 .pvr_mask
= 0xffff0000,
819 .pvr_value
= 0x41410000,
820 .cpu_name
= "NP405H",
821 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
823 .cpu_user_features
= PPC_FEATURE_32
|
824 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
829 .pvr_mask
= 0xffff0000,
830 .pvr_value
= 0x50910000,
831 .cpu_name
= "405GPr",
832 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
834 .cpu_user_features
= PPC_FEATURE_32
|
835 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
840 .pvr_mask
= 0xffff0000,
841 .pvr_value
= 0x51510000,
842 .cpu_name
= "STBx25xx",
843 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
845 .cpu_user_features
= PPC_FEATURE_32
|
846 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
851 .pvr_mask
= 0xffff0000,
852 .pvr_value
= 0x41F10000,
854 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
856 .cpu_user_features
= PPC_FEATURE_32
| PPC_FEATURE_HAS_MMU
,
860 { /* Xilinx Virtex-II Pro */
861 .pvr_mask
= 0xffff0000,
862 .pvr_value
= 0x20010000,
863 .cpu_name
= "Virtex-II Pro",
864 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
866 .cpu_user_features
= PPC_FEATURE_32
|
867 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
872 .pvr_mask
= 0xffff0000,
873 .pvr_value
= 0x51210000,
875 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
877 .cpu_user_features
= PPC_FEATURE_32
|
878 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_4xxMAC
,
883 #endif /* CONFIG_40x */
886 .pvr_mask
= 0xf0000fff,
887 .pvr_value
= 0x40000850,
888 .cpu_name
= "440EP Rev. A",
889 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
891 .cpu_user_features
= COMMON_PPC
, /* 440EP has an FPU */
896 .pvr_mask
= 0xf0000fff,
897 .pvr_value
= 0x400008d3,
898 .cpu_name
= "440EP Rev. B",
899 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
901 .cpu_user_features
= COMMON_PPC
, /* 440EP has an FPU */
906 .pvr_mask
= 0xf0000fff,
907 .pvr_value
= 0x40000440,
908 .cpu_name
= "440GP Rev. B",
909 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
911 .cpu_user_features
= PPC_FEATURE_32
| PPC_FEATURE_HAS_MMU
,
916 .pvr_mask
= 0xf0000fff,
917 .pvr_value
= 0x40000481,
918 .cpu_name
= "440GP Rev. C",
919 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
921 .cpu_user_features
= PPC_FEATURE_32
| PPC_FEATURE_HAS_MMU
,
926 .pvr_mask
= 0xf0000fff,
927 .pvr_value
= 0x50000850,
928 .cpu_name
= "440GX Rev. A",
929 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
931 .cpu_user_features
= PPC_FEATURE_32
| PPC_FEATURE_HAS_MMU
,
936 .pvr_mask
= 0xf0000fff,
937 .pvr_value
= 0x50000851,
938 .cpu_name
= "440GX Rev. B",
939 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
941 .cpu_user_features
= PPC_FEATURE_32
| PPC_FEATURE_HAS_MMU
,
946 .pvr_mask
= 0xf0000fff,
947 .pvr_value
= 0x50000892,
948 .cpu_name
= "440GX Rev. C",
949 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
951 .cpu_user_features
= PPC_FEATURE_32
| PPC_FEATURE_HAS_MMU
,
956 .pvr_mask
= 0xf0000fff,
957 .pvr_value
= 0x50000894,
958 .cpu_name
= "440GX Rev. F",
959 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
961 .cpu_user_features
= PPC_FEATURE_32
| PPC_FEATURE_HAS_MMU
,
966 .pvr_mask
= 0xff000fff,
967 .pvr_value
= 0x53000891,
968 .cpu_name
= "440SP Rev. A",
969 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
971 .cpu_user_features
= PPC_FEATURE_32
| PPC_FEATURE_HAS_MMU
,
975 #endif /* CONFIG_44x */
976 #ifdef CONFIG_FSL_BOOKE
978 .pvr_mask
= 0xfff00000,
979 .pvr_value
= 0x81000000,
980 .cpu_name
= "e200z5",
981 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
982 .cpu_features
= CPU_FTR_USE_TB
,
983 .cpu_user_features
= PPC_FEATURE_32
|
984 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_HAS_EFP_SINGLE
|
985 PPC_FEATURE_UNIFIED_CACHE
,
989 .pvr_mask
= 0xfff00000,
990 .pvr_value
= 0x81100000,
991 .cpu_name
= "e200z6",
992 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
993 .cpu_features
= CPU_FTR_USE_TB
,
994 .cpu_user_features
= PPC_FEATURE_32
|
995 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_SPE_COMP
|
996 PPC_FEATURE_HAS_EFP_SINGLE
|
997 PPC_FEATURE_UNIFIED_CACHE
,
1001 .pvr_mask
= 0xffff0000,
1002 .pvr_value
= 0x80200000,
1004 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1005 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
1007 .cpu_user_features
= PPC_FEATURE_32
|
1008 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_SPE_COMP
|
1009 PPC_FEATURE_HAS_EFP_SINGLE
,
1015 .pvr_mask
= 0xffff0000,
1016 .pvr_value
= 0x80210000,
1017 .cpu_name
= "e500v2",
1018 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1019 .cpu_features
= CPU_FTR_SPLIT_ID_CACHE
|
1020 CPU_FTR_USE_TB
| CPU_FTR_BIG_PHYS
,
1021 .cpu_user_features
= PPC_FEATURE_32
|
1022 PPC_FEATURE_HAS_MMU
| PPC_FEATURE_SPE_COMP
|
1023 PPC_FEATURE_HAS_EFP_SINGLE
| PPC_FEATURE_HAS_EFP_DOUBLE
,
1030 { /* default match */
1031 .pvr_mask
= 0x00000000,
1032 .pvr_value
= 0x00000000,
1033 .cpu_name
= "(generic PPC)",
1034 .cpu_features
= CPU_FTR_COMMON
,
1035 .cpu_user_features
= PPC_FEATURE_32
,
1039 #endif /* !CLASSIC_PPC */