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