blob: db65c9f6559aed57ae034d8653257bb4557f38b5 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Linus Torvalds1da177e2005-04-16 15:20:36 -07002 * Copyright (C) 2001 Ben. Herrenschmidt (benh@kernel.crashing.org)
3 *
Stephen Rothwell49209602005-10-12 15:55:09 +10004 * Modifications for ppc64:
5 * Copyright (C) 2003 Dave Engebretsen <engebret@us.ibm.com>
6 *
Linus Torvalds1da177e2005-04-16 15:20:36 -07007 * 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
Linus Torvalds1da177e2005-04-16 15:20:36 -070013#include <linux/string.h>
14#include <linux/sched.h>
15#include <linux/threads.h>
16#include <linux/init.h>
Kumar Gala400d2212005-09-27 15:13:12 -050017#include <linux/module.h>
18
19#include <asm/oprofile_impl.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070020#include <asm/cputable.h>
21
Kumar Gala400d2212005-09-27 15:13:12 -050022struct cpu_spec* cur_cpu_spec = NULL;
Stephen Rothwell49209602005-10-12 15:55:09 +100023EXPORT_SYMBOL(cur_cpu_spec);
Linus Torvalds1da177e2005-04-16 15:20:36 -070024
Stephen Rothwell49209602005-10-12 15:55:09 +100025/* NOTE:
26 * Unlike ppc32, ppc64 will only call this once for the boot CPU, it's
27 * the responsibility of the appropriate CPU save/restore functions to
28 * eventually copy these settings over. Those save/restore aren't yet
29 * part of the cputable though. That has to be fixed for both ppc32
30 * and ppc64
31 */
Geoff Levandb26f1002006-05-19 14:24:18 +100032#ifdef CONFIG_PPC32
Kumar Gala400d2212005-09-27 15:13:12 -050033extern void __setup_cpu_603(unsigned long offset, struct cpu_spec* spec);
34extern void __setup_cpu_604(unsigned long offset, struct cpu_spec* spec);
35extern void __setup_cpu_750(unsigned long offset, struct cpu_spec* spec);
36extern void __setup_cpu_750cx(unsigned long offset, struct cpu_spec* spec);
37extern void __setup_cpu_750fx(unsigned long offset, struct cpu_spec* spec);
38extern void __setup_cpu_7400(unsigned long offset, struct cpu_spec* spec);
39extern void __setup_cpu_7410(unsigned long offset, struct cpu_spec* spec);
40extern void __setup_cpu_745x(unsigned long offset, struct cpu_spec* spec);
Stephen Rothwell49209602005-10-12 15:55:09 +100041#endif /* CONFIG_PPC32 */
Olof Johanssonf39b7a52006-08-11 00:07:08 -050042#ifdef CONFIG_PPC64
Kumar Gala400d2212005-09-27 15:13:12 -050043extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec);
Olof Johanssonf39b7a52006-08-11 00:07:08 -050044extern void __restore_cpu_ppc970(void);
45#endif /* CONFIG_PPC64 */
Linus Torvalds1da177e2005-04-16 15:20:36 -070046
Linus Torvalds1da177e2005-04-16 15:20:36 -070047/* This table only contains "desktop" CPUs, it need to be filled with embedded
48 * ones as well...
49 */
Stephen Rothwell49209602005-10-12 15:55:09 +100050#define COMMON_USER (PPC_FEATURE_32 | PPC_FEATURE_HAS_FPU | \
51 PPC_FEATURE_HAS_MMU)
52#define COMMON_USER_PPC64 (COMMON_USER | PPC_FEATURE_64)
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +110053#define COMMON_USER_POWER4 (COMMON_USER_PPC64 | PPC_FEATURE_POWER4)
Benjamin Herrenschmidtaa5cb0212006-03-01 15:07:07 +110054#define COMMON_USER_POWER5 (COMMON_USER_PPC64 | PPC_FEATURE_POWER5 |\
55 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
56#define COMMON_USER_POWER5_PLUS (COMMON_USER_PPC64 | PPC_FEATURE_POWER5_PLUS|\
57 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
Anton Blanchard03054d52006-04-29 09:51:06 +100058#define COMMON_USER_POWER6 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_05 |\
Paul Mackerrasfab5db92006-06-07 16:14:40 +100059 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \
60 PPC_FEATURE_TRUE_LE)
Olof Johanssonb3ebd1d2006-09-06 14:35:57 -050061#define COMMON_USER_PA6T (COMMON_USER_PPC64 | PPC_FEATURE_PA6T |\
62 PPC_FEATURE_TRUE_LE | \
63 PPC_FEATURE_HAS_ALTIVEC_COMP)
Paul Mackerras80f15dc2006-01-14 10:11:39 +110064#define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \
65 PPC_FEATURE_BOOKE)
Linus Torvalds1da177e2005-04-16 15:20:36 -070066
Linus Torvalds1da177e2005-04-16 15:20:36 -070067/* We only set the spe features if the kernel was compiled with
68 * spe support
69 */
70#ifdef CONFIG_SPE
Stephen Rothwell49209602005-10-12 15:55:09 +100071#define PPC_FEATURE_SPE_COMP PPC_FEATURE_HAS_SPE
Linus Torvalds1da177e2005-04-16 15:20:36 -070072#else
Stephen Rothwell49209602005-10-12 15:55:09 +100073#define PPC_FEATURE_SPE_COMP 0
Linus Torvalds1da177e2005-04-16 15:20:36 -070074#endif
75
Linus Torvalds1da177e2005-04-16 15:20:36 -070076struct cpu_spec cpu_specs[] = {
Stephen Rothwell49209602005-10-12 15:55:09 +100077#ifdef CONFIG_PPC64
78 { /* Power3 */
79 .pvr_mask = 0xffff0000,
80 .pvr_value = 0x00400000,
81 .cpu_name = "POWER3 (630)",
82 .cpu_features = CPU_FTRS_POWER3,
Paul Mackerrasfab5db92006-06-07 16:14:40 +100083 .cpu_user_features = COMMON_USER_PPC64|PPC_FEATURE_PPC_LE,
Stephen Rothwell49209602005-10-12 15:55:09 +100084 .icache_bsize = 128,
85 .dcache_bsize = 128,
86 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +100087 .oprofile_cpu_type = "ppc64/power3",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +000088 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +110089 .platform = "power3",
Stephen Rothwell49209602005-10-12 15:55:09 +100090 },
91 { /* Power3+ */
92 .pvr_mask = 0xffff0000,
93 .pvr_value = 0x00410000,
94 .cpu_name = "POWER3 (630+)",
95 .cpu_features = CPU_FTRS_POWER3,
Paul Mackerrasfab5db92006-06-07 16:14:40 +100096 .cpu_user_features = COMMON_USER_PPC64|PPC_FEATURE_PPC_LE,
Stephen Rothwell49209602005-10-12 15:55:09 +100097 .icache_bsize = 128,
98 .dcache_bsize = 128,
99 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000100 .oprofile_cpu_type = "ppc64/power3",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000101 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100102 .platform = "power3",
Stephen Rothwell49209602005-10-12 15:55:09 +1000103 },
104 { /* Northstar */
105 .pvr_mask = 0xffff0000,
106 .pvr_value = 0x00330000,
107 .cpu_name = "RS64-II (northstar)",
108 .cpu_features = CPU_FTRS_RS64,
109 .cpu_user_features = COMMON_USER_PPC64,
110 .icache_bsize = 128,
111 .dcache_bsize = 128,
112 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000113 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000114 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100115 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000116 },
117 { /* Pulsar */
118 .pvr_mask = 0xffff0000,
119 .pvr_value = 0x00340000,
120 .cpu_name = "RS64-III (pulsar)",
121 .cpu_features = CPU_FTRS_RS64,
122 .cpu_user_features = COMMON_USER_PPC64,
123 .icache_bsize = 128,
124 .dcache_bsize = 128,
125 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000126 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000127 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100128 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000129 },
130 { /* I-star */
131 .pvr_mask = 0xffff0000,
132 .pvr_value = 0x00360000,
133 .cpu_name = "RS64-III (icestar)",
134 .cpu_features = CPU_FTRS_RS64,
135 .cpu_user_features = COMMON_USER_PPC64,
136 .icache_bsize = 128,
137 .dcache_bsize = 128,
138 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000139 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000140 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100141 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000142 },
143 { /* S-star */
144 .pvr_mask = 0xffff0000,
145 .pvr_value = 0x00370000,
146 .cpu_name = "RS64-IV (sstar)",
147 .cpu_features = CPU_FTRS_RS64,
148 .cpu_user_features = COMMON_USER_PPC64,
149 .icache_bsize = 128,
150 .dcache_bsize = 128,
151 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000152 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000153 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100154 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000155 },
156 { /* Power4 */
157 .pvr_mask = 0xffff0000,
158 .pvr_value = 0x00350000,
159 .cpu_name = "POWER4 (gp)",
160 .cpu_features = CPU_FTRS_POWER4,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100161 .cpu_user_features = COMMON_USER_POWER4,
Stephen Rothwell49209602005-10-12 15:55:09 +1000162 .icache_bsize = 128,
163 .dcache_bsize = 128,
164 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000165 .oprofile_cpu_type = "ppc64/power4",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000166 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100167 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000168 },
169 { /* Power4+ */
170 .pvr_mask = 0xffff0000,
171 .pvr_value = 0x00380000,
172 .cpu_name = "POWER4+ (gq)",
173 .cpu_features = CPU_FTRS_POWER4,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100174 .cpu_user_features = COMMON_USER_POWER4,
Stephen Rothwell49209602005-10-12 15:55:09 +1000175 .icache_bsize = 128,
176 .dcache_bsize = 128,
177 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000178 .oprofile_cpu_type = "ppc64/power4",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000179 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100180 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000181 },
182 { /* PPC970 */
183 .pvr_mask = 0xffff0000,
184 .pvr_value = 0x00390000,
185 .cpu_name = "PPC970",
186 .cpu_features = CPU_FTRS_PPC970,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100187 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000188 PPC_FEATURE_HAS_ALTIVEC_COMP,
189 .icache_bsize = 128,
190 .dcache_bsize = 128,
191 .num_pmcs = 8,
192 .cpu_setup = __setup_cpu_ppc970,
Olof Johanssonf39b7a52006-08-11 00:07:08 -0500193 .cpu_restore = __restore_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000194 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000195 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100196 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000197 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000198 { /* PPC970FX */
199 .pvr_mask = 0xffff0000,
200 .pvr_value = 0x003c0000,
201 .cpu_name = "PPC970FX",
Stephen Rothwell49209602005-10-12 15:55:09 +1000202 .cpu_features = CPU_FTRS_PPC970,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100203 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000204 PPC_FEATURE_HAS_ALTIVEC_COMP,
205 .icache_bsize = 128,
206 .dcache_bsize = 128,
207 .num_pmcs = 8,
208 .cpu_setup = __setup_cpu_ppc970,
Olof Johanssonf39b7a52006-08-11 00:07:08 -0500209 .cpu_restore = __restore_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000210 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000211 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100212 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000213 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000214 { /* PPC970MP */
215 .pvr_mask = 0xffff0000,
216 .pvr_value = 0x00440000,
217 .cpu_name = "PPC970MP",
218 .cpu_features = CPU_FTRS_PPC970,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100219 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000220 PPC_FEATURE_HAS_ALTIVEC_COMP,
221 .icache_bsize = 128,
222 .dcache_bsize = 128,
Anton Blanchard87af41b2006-05-05 05:44:26 +1000223 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000224 .cpu_setup = __setup_cpu_ppc970,
Olof Johanssonf39b7a52006-08-11 00:07:08 -0500225 .cpu_restore = __restore_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000226 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000227 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100228 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000229 },
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100230 { /* Power5 GR */
Stephen Rothwell49209602005-10-12 15:55:09 +1000231 .pvr_mask = 0xffff0000,
232 .pvr_value = 0x003a0000,
233 .cpu_name = "POWER5 (gr)",
234 .cpu_features = CPU_FTRS_POWER5,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100235 .cpu_user_features = COMMON_USER_POWER5,
Stephen Rothwell49209602005-10-12 15:55:09 +1000236 .icache_bsize = 128,
237 .dcache_bsize = 128,
238 .num_pmcs = 6,
Stephen Rothwell49209602005-10-12 15:55:09 +1000239 .oprofile_cpu_type = "ppc64/power5",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000240 .oprofile_type = PPC_OPROFILE_POWER4,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000241 /* SIHV / SIPR bits are implemented on POWER4+ (GQ)
242 * and above but only works on POWER5 and above
243 */
244 .oprofile_mmcra_sihv = MMCRA_SIHV,
245 .oprofile_mmcra_sipr = MMCRA_SIPR,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100246 .platform = "power5",
Stephen Rothwell49209602005-10-12 15:55:09 +1000247 },
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100248 { /* Power5 GS */
Stephen Rothwell49209602005-10-12 15:55:09 +1000249 .pvr_mask = 0xffff0000,
250 .pvr_value = 0x003b0000,
Anton Blanchard834608f2006-01-09 15:42:30 +1100251 .cpu_name = "POWER5+ (gs)",
Stephen Rothwell49209602005-10-12 15:55:09 +1000252 .cpu_features = CPU_FTRS_POWER5,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100253 .cpu_user_features = COMMON_USER_POWER5_PLUS,
Stephen Rothwell49209602005-10-12 15:55:09 +1000254 .icache_bsize = 128,
255 .dcache_bsize = 128,
256 .num_pmcs = 6,
Anton Blanchard834608f2006-01-09 15:42:30 +1100257 .oprofile_cpu_type = "ppc64/power5+",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000258 .oprofile_type = PPC_OPROFILE_POWER4,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000259 .oprofile_mmcra_sihv = MMCRA_SIHV,
260 .oprofile_mmcra_sipr = MMCRA_SIPR,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100261 .platform = "power5+",
Stephen Rothwell49209602005-10-12 15:55:09 +1000262 },
Anton Blanchard03054d52006-04-29 09:51:06 +1000263 { /* Power6 */
264 .pvr_mask = 0xffff0000,
265 .pvr_value = 0x003e0000,
266 .cpu_name = "POWER6",
267 .cpu_features = CPU_FTRS_POWER6,
268 .cpu_user_features = COMMON_USER_POWER6,
269 .icache_bsize = 128,
270 .dcache_bsize = 128,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000271 .num_pmcs = 8,
Anton Blanchard03054d52006-04-29 09:51:06 +1000272 .oprofile_cpu_type = "ppc64/power6",
273 .oprofile_type = PPC_OPROFILE_POWER4,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000274 .oprofile_mmcra_sihv = POWER6_MMCRA_SIHV,
275 .oprofile_mmcra_sipr = POWER6_MMCRA_SIPR,
276 .oprofile_mmcra_clear = POWER6_MMCRA_THRM |
277 POWER6_MMCRA_OTHER,
Anton Blanchard03054d52006-04-29 09:51:06 +1000278 .platform = "power6",
279 },
Arnd Bergmannc902be72006-01-04 19:55:53 +0000280 { /* Cell Broadband Engine */
Stephen Rothwell49209602005-10-12 15:55:09 +1000281 .pvr_mask = 0xffff0000,
282 .pvr_value = 0x00700000,
283 .cpu_name = "Cell Broadband Engine",
284 .cpu_features = CPU_FTRS_CELL,
285 .cpu_user_features = COMMON_USER_PPC64 |
Benjamin Herrenschmidtaa5cb0212006-03-01 15:07:07 +1100286 PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP |
287 PPC_FEATURE_SMT,
Stephen Rothwell49209602005-10-12 15:55:09 +1000288 .icache_bsize = 128,
289 .dcache_bsize = 128,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100290 .platform = "ppc-cell-be",
Stephen Rothwell49209602005-10-12 15:55:09 +1000291 },
Olof Johanssonb3ebd1d2006-09-06 14:35:57 -0500292 { /* PA Semi PA6T */
293 .pvr_mask = 0x7fff0000,
294 .pvr_value = 0x00900000,
295 .cpu_name = "PA6T",
296 .cpu_features = CPU_FTRS_PA6T,
297 .cpu_user_features = COMMON_USER_PA6T,
298 .icache_bsize = 64,
299 .dcache_bsize = 64,
300 .num_pmcs = 6,
301 .platform = "pa6t",
302 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000303 { /* default match */
304 .pvr_mask = 0x00000000,
305 .pvr_value = 0x00000000,
306 .cpu_name = "POWER4 (compatible)",
307 .cpu_features = CPU_FTRS_COMPATIBLE,
308 .cpu_user_features = COMMON_USER_PPC64,
309 .icache_bsize = 128,
310 .dcache_bsize = 128,
311 .num_pmcs = 6,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100312 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000313 }
314#endif /* CONFIG_PPC64 */
315#ifdef CONFIG_PPC32
Linus Torvalds1da177e2005-04-16 15:20:36 -0700316#if CLASSIC_PPC
Stephen Rothwell49209602005-10-12 15:55:09 +1000317 { /* 601 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700318 .pvr_mask = 0xffff0000,
319 .pvr_value = 0x00010000,
320 .cpu_name = "601",
Kumar Gala10b35d92005-09-23 14:08:58 -0500321 .cpu_features = CPU_FTRS_PPC601,
Stephen Rothwell49209602005-10-12 15:55:09 +1000322 .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR |
Paul Mackerras98599012005-10-22 16:51:34 +1000323 PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700324 .icache_bsize = 32,
325 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100326 .platform = "ppc601",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700327 },
328 { /* 603 */
329 .pvr_mask = 0xffff0000,
330 .pvr_value = 0x00030000,
331 .cpu_name = "603",
Kumar Gala10b35d92005-09-23 14:08:58 -0500332 .cpu_features = CPU_FTRS_603,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000333 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700334 .icache_bsize = 32,
335 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100336 .cpu_setup = __setup_cpu_603,
337 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700338 },
339 { /* 603e */
340 .pvr_mask = 0xffff0000,
341 .pvr_value = 0x00060000,
342 .cpu_name = "603e",
Kumar Gala10b35d92005-09-23 14:08:58 -0500343 .cpu_features = CPU_FTRS_603,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000344 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700345 .icache_bsize = 32,
346 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100347 .cpu_setup = __setup_cpu_603,
348 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700349 },
350 { /* 603ev */
351 .pvr_mask = 0xffff0000,
352 .pvr_value = 0x00070000,
353 .cpu_name = "603ev",
Kumar Gala10b35d92005-09-23 14:08:58 -0500354 .cpu_features = CPU_FTRS_603,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000355 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700356 .icache_bsize = 32,
357 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100358 .cpu_setup = __setup_cpu_603,
359 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700360 },
361 { /* 604 */
362 .pvr_mask = 0xffff0000,
363 .pvr_value = 0x00040000,
364 .cpu_name = "604",
Kumar Gala10b35d92005-09-23 14:08:58 -0500365 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000366 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700367 .icache_bsize = 32,
368 .dcache_bsize = 32,
369 .num_pmcs = 2,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100370 .cpu_setup = __setup_cpu_604,
371 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700372 },
373 { /* 604e */
374 .pvr_mask = 0xfffff000,
375 .pvr_value = 0x00090000,
376 .cpu_name = "604e",
Kumar Gala10b35d92005-09-23 14:08:58 -0500377 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000378 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700379 .icache_bsize = 32,
380 .dcache_bsize = 32,
381 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100382 .cpu_setup = __setup_cpu_604,
383 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700384 },
385 { /* 604r */
386 .pvr_mask = 0xffff0000,
387 .pvr_value = 0x00090000,
388 .cpu_name = "604r",
Kumar Gala10b35d92005-09-23 14:08:58 -0500389 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000390 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700391 .icache_bsize = 32,
392 .dcache_bsize = 32,
393 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100394 .cpu_setup = __setup_cpu_604,
395 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700396 },
397 { /* 604ev */
398 .pvr_mask = 0xffff0000,
399 .pvr_value = 0x000a0000,
400 .cpu_name = "604ev",
Kumar Gala10b35d92005-09-23 14:08:58 -0500401 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000402 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700403 .icache_bsize = 32,
404 .dcache_bsize = 32,
405 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100406 .cpu_setup = __setup_cpu_604,
407 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700408 },
409 { /* 740/750 (0x4202, don't support TAU ?) */
410 .pvr_mask = 0xffffffff,
411 .pvr_value = 0x00084202,
412 .cpu_name = "740/750",
Kumar Gala10b35d92005-09-23 14:08:58 -0500413 .cpu_features = CPU_FTRS_740_NOTAU,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000414 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700415 .icache_bsize = 32,
416 .dcache_bsize = 32,
417 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100418 .cpu_setup = __setup_cpu_750,
419 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700420 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700421 { /* 750CX (80100 and 8010x?) */
422 .pvr_mask = 0xfffffff0,
423 .pvr_value = 0x00080100,
424 .cpu_name = "750CX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500425 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000426 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700427 .icache_bsize = 32,
428 .dcache_bsize = 32,
429 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100430 .cpu_setup = __setup_cpu_750cx,
431 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700432 },
433 { /* 750CX (82201 and 82202) */
434 .pvr_mask = 0xfffffff0,
435 .pvr_value = 0x00082200,
436 .cpu_name = "750CX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500437 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000438 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700439 .icache_bsize = 32,
440 .dcache_bsize = 32,
441 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100442 .cpu_setup = __setup_cpu_750cx,
443 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700444 },
445 { /* 750CXe (82214) */
446 .pvr_mask = 0xfffffff0,
447 .pvr_value = 0x00082210,
448 .cpu_name = "750CXe",
Kumar Gala10b35d92005-09-23 14:08:58 -0500449 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000450 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700451 .icache_bsize = 32,
452 .dcache_bsize = 32,
453 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100454 .cpu_setup = __setup_cpu_750cx,
455 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700456 },
Arthur Othieno7c316252005-09-03 15:55:52 -0700457 { /* 750CXe "Gekko" (83214) */
458 .pvr_mask = 0xffffffff,
459 .pvr_value = 0x00083214,
460 .cpu_name = "750CXe",
Kumar Gala10b35d92005-09-23 14:08:58 -0500461 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000462 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Arthur Othieno7c316252005-09-03 15:55:52 -0700463 .icache_bsize = 32,
464 .dcache_bsize = 32,
465 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100466 .cpu_setup = __setup_cpu_750cx,
467 .platform = "ppc750",
Arthur Othieno7c316252005-09-03 15:55:52 -0700468 },
Arthur Othienoac1ff042005-09-03 15:55:51 -0700469 { /* 745/755 */
470 .pvr_mask = 0xfffff000,
471 .pvr_value = 0x00083000,
472 .cpu_name = "745/755",
Kumar Gala10b35d92005-09-23 14:08:58 -0500473 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000474 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Arthur Othienoac1ff042005-09-03 15:55:51 -0700475 .icache_bsize = 32,
476 .dcache_bsize = 32,
477 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100478 .cpu_setup = __setup_cpu_750,
479 .platform = "ppc750",
Arthur Othienoac1ff042005-09-03 15:55:51 -0700480 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700481 { /* 750FX rev 1.x */
482 .pvr_mask = 0xffffff00,
483 .pvr_value = 0x70000100,
484 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500485 .cpu_features = CPU_FTRS_750FX1,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000486 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700487 .icache_bsize = 32,
488 .dcache_bsize = 32,
489 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100490 .cpu_setup = __setup_cpu_750,
491 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700492 },
493 { /* 750FX rev 2.0 must disable HID0[DPM] */
494 .pvr_mask = 0xffffffff,
495 .pvr_value = 0x70000200,
496 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500497 .cpu_features = CPU_FTRS_750FX2,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000498 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700499 .icache_bsize = 32,
500 .dcache_bsize = 32,
501 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100502 .cpu_setup = __setup_cpu_750,
503 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700504 },
505 { /* 750FX (All revs except 2.0) */
506 .pvr_mask = 0xffff0000,
507 .pvr_value = 0x70000000,
508 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500509 .cpu_features = CPU_FTRS_750FX,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000510 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700511 .icache_bsize = 32,
512 .dcache_bsize = 32,
513 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100514 .cpu_setup = __setup_cpu_750fx,
515 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700516 },
517 { /* 750GX */
518 .pvr_mask = 0xffff0000,
519 .pvr_value = 0x70020000,
520 .cpu_name = "750GX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500521 .cpu_features = CPU_FTRS_750GX,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000522 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700523 .icache_bsize = 32,
524 .dcache_bsize = 32,
525 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100526 .cpu_setup = __setup_cpu_750fx,
527 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700528 },
529 { /* 740/750 (L2CR bit need fixup for 740) */
530 .pvr_mask = 0xffff0000,
531 .pvr_value = 0x00080000,
532 .cpu_name = "740/750",
Kumar Gala10b35d92005-09-23 14:08:58 -0500533 .cpu_features = CPU_FTRS_740,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000534 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700535 .icache_bsize = 32,
536 .dcache_bsize = 32,
537 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100538 .cpu_setup = __setup_cpu_750,
539 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700540 },
541 { /* 7400 rev 1.1 ? (no TAU) */
542 .pvr_mask = 0xffffffff,
543 .pvr_value = 0x000c1101,
544 .cpu_name = "7400 (1.1)",
Kumar Gala10b35d92005-09-23 14:08:58 -0500545 .cpu_features = CPU_FTRS_7400_NOTAU,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000546 .cpu_user_features = COMMON_USER |
547 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700548 .icache_bsize = 32,
549 .dcache_bsize = 32,
550 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100551 .cpu_setup = __setup_cpu_7400,
552 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700553 },
554 { /* 7400 */
555 .pvr_mask = 0xffff0000,
556 .pvr_value = 0x000c0000,
557 .cpu_name = "7400",
Kumar Gala10b35d92005-09-23 14:08:58 -0500558 .cpu_features = CPU_FTRS_7400,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000559 .cpu_user_features = COMMON_USER |
560 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700561 .icache_bsize = 32,
562 .dcache_bsize = 32,
563 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100564 .cpu_setup = __setup_cpu_7400,
565 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700566 },
567 { /* 7410 */
568 .pvr_mask = 0xffff0000,
569 .pvr_value = 0x800c0000,
570 .cpu_name = "7410",
Kumar Gala10b35d92005-09-23 14:08:58 -0500571 .cpu_features = CPU_FTRS_7400,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000572 .cpu_user_features = COMMON_USER |
573 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700574 .icache_bsize = 32,
575 .dcache_bsize = 32,
576 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100577 .cpu_setup = __setup_cpu_7410,
578 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700579 },
580 { /* 7450 2.0 - no doze/nap */
581 .pvr_mask = 0xffffffff,
582 .pvr_value = 0x80000200,
583 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500584 .cpu_features = CPU_FTRS_7450_20,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000585 .cpu_user_features = COMMON_USER |
586 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700587 .icache_bsize = 32,
588 .dcache_bsize = 32,
589 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600590 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600591 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000592 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100593 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700594 },
595 { /* 7450 2.1 */
596 .pvr_mask = 0xffffffff,
597 .pvr_value = 0x80000201,
598 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500599 .cpu_features = CPU_FTRS_7450_21,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000600 .cpu_user_features = COMMON_USER |
601 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700602 .icache_bsize = 32,
603 .dcache_bsize = 32,
604 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600605 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600606 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000607 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100608 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700609 },
610 { /* 7450 2.3 and newer */
611 .pvr_mask = 0xffff0000,
612 .pvr_value = 0x80000000,
613 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500614 .cpu_features = CPU_FTRS_7450_23,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000615 .cpu_user_features = COMMON_USER |
616 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700617 .icache_bsize = 32,
618 .dcache_bsize = 32,
619 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600620 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600621 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000622 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100623 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700624 },
625 { /* 7455 rev 1.x */
626 .pvr_mask = 0xffffff00,
627 .pvr_value = 0x80010100,
628 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500629 .cpu_features = CPU_FTRS_7455_1,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000630 .cpu_user_features = COMMON_USER |
631 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700632 .icache_bsize = 32,
633 .dcache_bsize = 32,
634 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600635 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600636 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000637 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100638 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700639 },
640 { /* 7455 rev 2.0 */
641 .pvr_mask = 0xffffffff,
642 .pvr_value = 0x80010200,
643 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500644 .cpu_features = CPU_FTRS_7455_20,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000645 .cpu_user_features = COMMON_USER |
646 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700647 .icache_bsize = 32,
648 .dcache_bsize = 32,
649 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600650 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600651 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000652 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100653 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700654 },
655 { /* 7455 others */
656 .pvr_mask = 0xffff0000,
657 .pvr_value = 0x80010000,
658 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500659 .cpu_features = CPU_FTRS_7455,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000660 .cpu_user_features = COMMON_USER |
661 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700662 .icache_bsize = 32,
663 .dcache_bsize = 32,
664 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600665 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600666 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000667 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100668 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700669 },
670 { /* 7447/7457 Rev 1.0 */
671 .pvr_mask = 0xffffffff,
672 .pvr_value = 0x80020100,
673 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500674 .cpu_features = CPU_FTRS_7447_10,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000675 .cpu_user_features = COMMON_USER |
676 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700677 .icache_bsize = 32,
678 .dcache_bsize = 32,
679 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600680 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600681 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000682 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100683 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700684 },
685 { /* 7447/7457 Rev 1.1 */
686 .pvr_mask = 0xffffffff,
687 .pvr_value = 0x80020101,
688 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500689 .cpu_features = CPU_FTRS_7447_10,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000690 .cpu_user_features = COMMON_USER |
691 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700692 .icache_bsize = 32,
693 .dcache_bsize = 32,
694 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600695 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600696 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000697 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100698 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700699 },
700 { /* 7447/7457 Rev 1.2 and later */
701 .pvr_mask = 0xffff0000,
702 .pvr_value = 0x80020000,
703 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500704 .cpu_features = CPU_FTRS_7447,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000705 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700706 .icache_bsize = 32,
707 .dcache_bsize = 32,
708 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600709 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600710 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000711 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100712 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700713 },
714 { /* 7447A */
715 .pvr_mask = 0xffff0000,
716 .pvr_value = 0x80030000,
717 .cpu_name = "7447A",
Kumar Gala10b35d92005-09-23 14:08:58 -0500718 .cpu_features = CPU_FTRS_7447A,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000719 .cpu_user_features = COMMON_USER |
720 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700721 .icache_bsize = 32,
722 .dcache_bsize = 32,
723 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600724 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600725 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000726 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100727 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700728 },
Kumar Galabbde6302005-09-03 15:55:55 -0700729 { /* 7448 */
730 .pvr_mask = 0xffff0000,
731 .pvr_value = 0x80040000,
732 .cpu_name = "7448",
Kumar Gala10b35d92005-09-23 14:08:58 -0500733 .cpu_features = CPU_FTRS_7447A,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000734 .cpu_user_features = COMMON_USER |
735 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Kumar Galabbde6302005-09-03 15:55:55 -0700736 .icache_bsize = 32,
737 .dcache_bsize = 32,
738 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600739 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600740 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000741 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100742 .platform = "ppc7450",
Kumar Galabbde6302005-09-03 15:55:55 -0700743 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700744 { /* 82xx (8240, 8245, 8260 are all 603e cores) */
745 .pvr_mask = 0x7fff0000,
746 .pvr_value = 0x00810000,
747 .cpu_name = "82xx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500748 .cpu_features = CPU_FTRS_82XX,
Stephen Rothwell49209602005-10-12 15:55:09 +1000749 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700750 .icache_bsize = 32,
751 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100752 .cpu_setup = __setup_cpu_603,
753 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700754 },
755 { /* All G2_LE (603e core, plus some) have the same pvr */
756 .pvr_mask = 0x7fff0000,
757 .pvr_value = 0x00820000,
758 .cpu_name = "G2_LE",
Kumar Gala10b35d92005-09-23 14:08:58 -0500759 .cpu_features = CPU_FTRS_G2_LE,
Stephen Rothwell49209602005-10-12 15:55:09 +1000760 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700761 .icache_bsize = 32,
762 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100763 .cpu_setup = __setup_cpu_603,
764 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700765 },
766 { /* e300 (a 603e core, plus some) on 83xx */
767 .pvr_mask = 0x7fff0000,
768 .pvr_value = 0x00830000,
769 .cpu_name = "e300",
Kumar Gala10b35d92005-09-23 14:08:58 -0500770 .cpu_features = CPU_FTRS_E300,
Stephen Rothwell49209602005-10-12 15:55:09 +1000771 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700772 .icache_bsize = 32,
773 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100774 .cpu_setup = __setup_cpu_603,
775 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700776 },
777 { /* default match, we assume split I/D cache & TB (non-601)... */
778 .pvr_mask = 0x00000000,
779 .pvr_value = 0x00000000,
780 .cpu_name = "(generic PPC)",
Kumar Gala10b35d92005-09-23 14:08:58 -0500781 .cpu_features = CPU_FTRS_CLASSIC32,
Stephen Rothwell49209602005-10-12 15:55:09 +1000782 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700783 .icache_bsize = 32,
784 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100785 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700786 },
787#endif /* CLASSIC_PPC */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700788#ifdef CONFIG_8xx
789 { /* 8xx */
790 .pvr_mask = 0xffff0000,
791 .pvr_value = 0x00500000,
792 .cpu_name = "8xx",
793 /* CPU_FTR_MAYBE_CAN_DOZE is possible,
794 * if the 8xx code is there.... */
Kumar Gala10b35d92005-09-23 14:08:58 -0500795 .cpu_features = CPU_FTRS_8XX,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700796 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
797 .icache_bsize = 16,
798 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100799 .platform = "ppc823",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700800 },
801#endif /* CONFIG_8xx */
802#ifdef CONFIG_40x
803 { /* 403GC */
804 .pvr_mask = 0xffffff00,
805 .pvr_value = 0x00200200,
806 .cpu_name = "403GC",
Kumar Gala10b35d92005-09-23 14:08:58 -0500807 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700808 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
809 .icache_bsize = 16,
810 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100811 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700812 },
813 { /* 403GCX */
814 .pvr_mask = 0xffffff00,
815 .pvr_value = 0x00201400,
816 .cpu_name = "403GCX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500817 .cpu_features = CPU_FTRS_40X,
Paul Mackerras98599012005-10-22 16:51:34 +1000818 .cpu_user_features = PPC_FEATURE_32 |
819 PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700820 .icache_bsize = 16,
821 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100822 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700823 },
824 { /* 403G ?? */
825 .pvr_mask = 0xffff0000,
826 .pvr_value = 0x00200000,
827 .cpu_name = "403G ??",
Kumar Gala10b35d92005-09-23 14:08:58 -0500828 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700829 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
830 .icache_bsize = 16,
831 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100832 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700833 },
834 { /* 405GP */
835 .pvr_mask = 0xffff0000,
836 .pvr_value = 0x40110000,
837 .cpu_name = "405GP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500838 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700839 .cpu_user_features = PPC_FEATURE_32 |
840 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
841 .icache_bsize = 32,
842 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100843 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700844 },
845 { /* STB 03xxx */
846 .pvr_mask = 0xffff0000,
847 .pvr_value = 0x40130000,
848 .cpu_name = "STB03xxx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500849 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700850 .cpu_user_features = PPC_FEATURE_32 |
851 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
852 .icache_bsize = 32,
853 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100854 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700855 },
856 { /* STB 04xxx */
857 .pvr_mask = 0xffff0000,
858 .pvr_value = 0x41810000,
859 .cpu_name = "STB04xxx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500860 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700861 .cpu_user_features = PPC_FEATURE_32 |
862 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
863 .icache_bsize = 32,
864 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100865 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700866 },
867 { /* NP405L */
868 .pvr_mask = 0xffff0000,
869 .pvr_value = 0x41610000,
870 .cpu_name = "NP405L",
Kumar Gala10b35d92005-09-23 14:08:58 -0500871 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700872 .cpu_user_features = PPC_FEATURE_32 |
873 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
874 .icache_bsize = 32,
875 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100876 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700877 },
878 { /* NP4GS3 */
879 .pvr_mask = 0xffff0000,
880 .pvr_value = 0x40B10000,
881 .cpu_name = "NP4GS3",
Kumar Gala10b35d92005-09-23 14:08:58 -0500882 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700883 .cpu_user_features = PPC_FEATURE_32 |
884 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
885 .icache_bsize = 32,
886 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100887 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700888 },
889 { /* NP405H */
890 .pvr_mask = 0xffff0000,
891 .pvr_value = 0x41410000,
892 .cpu_name = "NP405H",
Kumar Gala10b35d92005-09-23 14:08:58 -0500893 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700894 .cpu_user_features = PPC_FEATURE_32 |
895 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
896 .icache_bsize = 32,
897 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100898 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700899 },
900 { /* 405GPr */
901 .pvr_mask = 0xffff0000,
902 .pvr_value = 0x50910000,
903 .cpu_name = "405GPr",
Kumar Gala10b35d92005-09-23 14:08:58 -0500904 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700905 .cpu_user_features = PPC_FEATURE_32 |
906 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
907 .icache_bsize = 32,
908 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100909 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700910 },
911 { /* STBx25xx */
912 .pvr_mask = 0xffff0000,
913 .pvr_value = 0x51510000,
914 .cpu_name = "STBx25xx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500915 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700916 .cpu_user_features = PPC_FEATURE_32 |
917 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
918 .icache_bsize = 32,
919 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100920 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700921 },
922 { /* 405LP */
923 .pvr_mask = 0xffff0000,
924 .pvr_value = 0x41F10000,
925 .cpu_name = "405LP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500926 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700927 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
928 .icache_bsize = 32,
929 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100930 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700931 },
932 { /* Xilinx Virtex-II Pro */
Grant C. Likely72646c72006-01-19 01:13:20 -0700933 .pvr_mask = 0xfffff000,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700934 .pvr_value = 0x20010000,
935 .cpu_name = "Virtex-II Pro",
Kumar Gala10b35d92005-09-23 14:08:58 -0500936 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700937 .cpu_user_features = PPC_FEATURE_32 |
938 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
939 .icache_bsize = 32,
940 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100941 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700942 },
Grant C. Likely72646c72006-01-19 01:13:20 -0700943 { /* Xilinx Virtex-4 FX */
944 .pvr_mask = 0xfffff000,
945 .pvr_value = 0x20011000,
946 .cpu_name = "Virtex-4 FX",
947 .cpu_features = CPU_FTRS_40X,
948 .cpu_user_features = PPC_FEATURE_32 |
949 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
950 .icache_bsize = 32,
951 .dcache_bsize = 32,
952 },
Eugene Suroveginad95d602005-06-07 13:22:09 -0700953 { /* 405EP */
954 .pvr_mask = 0xffff0000,
955 .pvr_value = 0x51210000,
956 .cpu_name = "405EP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500957 .cpu_features = CPU_FTRS_40X,
Eugene Suroveginad95d602005-06-07 13:22:09 -0700958 .cpu_user_features = PPC_FEATURE_32 |
959 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
960 .icache_bsize = 32,
961 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100962 .platform = "ppc405",
Eugene Suroveginad95d602005-06-07 13:22:09 -0700963 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700964
965#endif /* CONFIG_40x */
966#ifdef CONFIG_44x
Matt Porterc9cf73a2005-07-31 22:34:52 -0700967 {
968 .pvr_mask = 0xf0000fff,
969 .pvr_value = 0x40000850,
970 .cpu_name = "440EP Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -0500971 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100972 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Matt Porterc9cf73a2005-07-31 22:34:52 -0700973 .icache_bsize = 32,
974 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100975 .platform = "ppc440",
Matt Porterc9cf73a2005-07-31 22:34:52 -0700976 },
977 {
978 .pvr_mask = 0xf0000fff,
979 .pvr_value = 0x400008d3,
980 .cpu_name = "440EP Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -0500981 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100982 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Matt Porterc9cf73a2005-07-31 22:34:52 -0700983 .icache_bsize = 32,
984 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100985 .platform = "ppc440",
Matt Porterc9cf73a2005-07-31 22:34:52 -0700986 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000987 { /* 440GP Rev. B */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700988 .pvr_mask = 0xf0000fff,
989 .pvr_value = 0x40000440,
990 .cpu_name = "440GP Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -0500991 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100992 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700993 .icache_bsize = 32,
994 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100995 .platform = "ppc440gp",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700996 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000997 { /* 440GP Rev. C */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700998 .pvr_mask = 0xf0000fff,
999 .pvr_value = 0x40000481,
1000 .cpu_name = "440GP Rev. C",
Kumar Gala10b35d92005-09-23 14:08:58 -05001001 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001002 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001003 .icache_bsize = 32,
1004 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001005 .platform = "ppc440gp",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001006 },
1007 { /* 440GX Rev. A */
1008 .pvr_mask = 0xf0000fff,
1009 .pvr_value = 0x50000850,
1010 .cpu_name = "440GX Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -05001011 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001012 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001013 .icache_bsize = 32,
1014 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001015 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001016 },
1017 { /* 440GX Rev. B */
1018 .pvr_mask = 0xf0000fff,
1019 .pvr_value = 0x50000851,
1020 .cpu_name = "440GX Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -05001021 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001022 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001023 .icache_bsize = 32,
1024 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001025 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001026 },
1027 { /* 440GX Rev. C */
1028 .pvr_mask = 0xf0000fff,
1029 .pvr_value = 0x50000892,
1030 .cpu_name = "440GX Rev. C",
Kumar Gala10b35d92005-09-23 14:08:58 -05001031 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001032 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001033 .icache_bsize = 32,
1034 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001035 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001036 },
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001037 { /* 440GX Rev. F */
1038 .pvr_mask = 0xf0000fff,
1039 .pvr_value = 0x50000894,
1040 .cpu_name = "440GX Rev. F",
Kumar Gala10b35d92005-09-23 14:08:58 -05001041 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001042 .cpu_user_features = COMMON_USER_BOOKE,
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001043 .icache_bsize = 32,
1044 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001045 .platform = "ppc440",
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001046 },
Matt Porter656de7e2005-09-03 15:55:42 -07001047 { /* 440SP Rev. A */
1048 .pvr_mask = 0xff000fff,
1049 .pvr_value = 0x53000891,
1050 .cpu_name = "440SP Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -05001051 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001052 .cpu_user_features = COMMON_USER_BOOKE,
Matt Porter656de7e2005-09-03 15:55:42 -07001053 .icache_bsize = 32,
1054 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001055 .platform = "ppc440",
Matt Porter656de7e2005-09-03 15:55:42 -07001056 },
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001057 { /* 440SPe Rev. A */
1058 .pvr_mask = 0xff000fff,
1059 .pvr_value = 0x53000890,
1060 .cpu_name = "440SPe Rev. A",
1061 .cpu_features = CPU_FTR_SPLIT_ID_CACHE |
1062 CPU_FTR_USE_TB,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001063 .cpu_user_features = COMMON_USER_BOOKE,
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001064 .icache_bsize = 32,
1065 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001066 .platform = "ppc440",
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001067 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001068#endif /* CONFIG_44x */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001069#ifdef CONFIG_FSL_BOOKE
Stephen Rothwell49209602005-10-12 15:55:09 +10001070 { /* e200z5 */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001071 .pvr_mask = 0xfff00000,
1072 .pvr_value = 0x81000000,
1073 .cpu_name = "e200z5",
1074 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001075 .cpu_features = CPU_FTRS_E200,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001076 .cpu_user_features = COMMON_USER_BOOKE |
1077 PPC_FEATURE_HAS_EFP_SINGLE |
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001078 PPC_FEATURE_UNIFIED_CACHE,
1079 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001080 .platform = "ppc5554",
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001081 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001082 { /* e200z6 */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001083 .pvr_mask = 0xfff00000,
1084 .pvr_value = 0x81100000,
1085 .cpu_name = "e200z6",
1086 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001087 .cpu_features = CPU_FTRS_E200,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001088 .cpu_user_features = COMMON_USER_BOOKE |
1089 PPC_FEATURE_SPE_COMP |
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001090 PPC_FEATURE_HAS_EFP_SINGLE |
1091 PPC_FEATURE_UNIFIED_CACHE,
1092 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001093 .platform = "ppc5554",
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001094 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001095 { /* e500 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001096 .pvr_mask = 0xffff0000,
1097 .pvr_value = 0x80200000,
1098 .cpu_name = "e500",
1099 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001100 .cpu_features = CPU_FTRS_E500,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001101 .cpu_user_features = COMMON_USER_BOOKE |
1102 PPC_FEATURE_SPE_COMP |
Linus Torvalds1da177e2005-04-16 15:20:36 -07001103 PPC_FEATURE_HAS_EFP_SINGLE,
1104 .icache_bsize = 32,
1105 .dcache_bsize = 32,
1106 .num_pmcs = 4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001107 .oprofile_cpu_type = "ppc/e500",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001108 .oprofile_type = PPC_OPROFILE_BOOKE,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001109 .platform = "ppc8540",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001110 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001111 { /* e500v2 */
Kumar Gala5b37b702005-06-21 17:15:18 -07001112 .pvr_mask = 0xffff0000,
1113 .pvr_value = 0x80210000,
1114 .cpu_name = "e500v2",
1115 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001116 .cpu_features = CPU_FTRS_E500_2,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001117 .cpu_user_features = COMMON_USER_BOOKE |
1118 PPC_FEATURE_SPE_COMP |
1119 PPC_FEATURE_HAS_EFP_SINGLE |
1120 PPC_FEATURE_HAS_EFP_DOUBLE,
Kumar Gala5b37b702005-06-21 17:15:18 -07001121 .icache_bsize = 32,
1122 .dcache_bsize = 32,
1123 .num_pmcs = 4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001124 .oprofile_cpu_type = "ppc/e500",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001125 .oprofile_type = PPC_OPROFILE_BOOKE,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001126 .platform = "ppc8548",
Kumar Gala5b37b702005-06-21 17:15:18 -07001127 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001128#endif
1129#if !CLASSIC_PPC
1130 { /* default match */
1131 .pvr_mask = 0x00000000,
1132 .pvr_value = 0x00000000,
1133 .cpu_name = "(generic PPC)",
Kumar Gala10b35d92005-09-23 14:08:58 -05001134 .cpu_features = CPU_FTRS_GENERIC_32,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001135 .cpu_user_features = PPC_FEATURE_32,
1136 .icache_bsize = 32,
1137 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001138 .platform = "powerpc",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001139 }
1140#endif /* !CLASSIC_PPC */
Stephen Rothwell49209602005-10-12 15:55:09 +10001141#endif /* CONFIG_PPC32 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001142};