blob: f23aad66a79eec48f1478422830b22421dd54719 [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 },
Jake Moilanen362ff7b2006-10-18 10:47:22 -0500230 { /* PPC970GX */
231 .pvr_mask = 0xffff0000,
232 .pvr_value = 0x00450000,
233 .cpu_name = "PPC970GX",
234 .cpu_features = CPU_FTRS_PPC970,
235 .cpu_user_features = COMMON_USER_POWER4 |
236 PPC_FEATURE_HAS_ALTIVEC_COMP,
237 .icache_bsize = 128,
238 .dcache_bsize = 128,
239 .num_pmcs = 8,
240 .cpu_setup = __setup_cpu_ppc970,
241 .oprofile_cpu_type = "ppc64/970",
242 .oprofile_type = PPC_OPROFILE_POWER4,
243 .platform = "ppc970",
244 },
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100245 { /* Power5 GR */
Stephen Rothwell49209602005-10-12 15:55:09 +1000246 .pvr_mask = 0xffff0000,
247 .pvr_value = 0x003a0000,
248 .cpu_name = "POWER5 (gr)",
249 .cpu_features = CPU_FTRS_POWER5,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100250 .cpu_user_features = COMMON_USER_POWER5,
Stephen Rothwell49209602005-10-12 15:55:09 +1000251 .icache_bsize = 128,
252 .dcache_bsize = 128,
253 .num_pmcs = 6,
Stephen Rothwell49209602005-10-12 15:55:09 +1000254 .oprofile_cpu_type = "ppc64/power5",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000255 .oprofile_type = PPC_OPROFILE_POWER4,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000256 /* SIHV / SIPR bits are implemented on POWER4+ (GQ)
257 * and above but only works on POWER5 and above
258 */
259 .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 },
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100263 { /* Power5 GS */
Stephen Rothwell49209602005-10-12 15:55:09 +1000264 .pvr_mask = 0xffff0000,
265 .pvr_value = 0x003b0000,
Anton Blanchard834608f2006-01-09 15:42:30 +1100266 .cpu_name = "POWER5+ (gs)",
Stephen Rothwell49209602005-10-12 15:55:09 +1000267 .cpu_features = CPU_FTRS_POWER5,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100268 .cpu_user_features = COMMON_USER_POWER5_PLUS,
Stephen Rothwell49209602005-10-12 15:55:09 +1000269 .icache_bsize = 128,
270 .dcache_bsize = 128,
271 .num_pmcs = 6,
Anton Blanchard834608f2006-01-09 15:42:30 +1100272 .oprofile_cpu_type = "ppc64/power5+",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000273 .oprofile_type = PPC_OPROFILE_POWER4,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000274 .oprofile_mmcra_sihv = MMCRA_SIHV,
275 .oprofile_mmcra_sipr = MMCRA_SIPR,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100276 .platform = "power5+",
Stephen Rothwell49209602005-10-12 15:55:09 +1000277 },
Anton Blanchard03054d52006-04-29 09:51:06 +1000278 { /* Power6 */
279 .pvr_mask = 0xffff0000,
280 .pvr_value = 0x003e0000,
281 .cpu_name = "POWER6",
282 .cpu_features = CPU_FTRS_POWER6,
283 .cpu_user_features = COMMON_USER_POWER6,
284 .icache_bsize = 128,
285 .dcache_bsize = 128,
Anton Blanchard99f48612006-10-13 12:13:12 +1000286 .num_pmcs = 6,
Anton Blanchard03054d52006-04-29 09:51:06 +1000287 .oprofile_cpu_type = "ppc64/power6",
288 .oprofile_type = PPC_OPROFILE_POWER4,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000289 .oprofile_mmcra_sihv = POWER6_MMCRA_SIHV,
290 .oprofile_mmcra_sipr = POWER6_MMCRA_SIPR,
291 .oprofile_mmcra_clear = POWER6_MMCRA_THRM |
292 POWER6_MMCRA_OTHER,
Anton Blanchard03054d52006-04-29 09:51:06 +1000293 .platform = "power6",
294 },
Arnd Bergmannc902be72006-01-04 19:55:53 +0000295 { /* Cell Broadband Engine */
Stephen Rothwell49209602005-10-12 15:55:09 +1000296 .pvr_mask = 0xffff0000,
297 .pvr_value = 0x00700000,
298 .cpu_name = "Cell Broadband Engine",
299 .cpu_features = CPU_FTRS_CELL,
300 .cpu_user_features = COMMON_USER_PPC64 |
Benjamin Herrenschmidtaa5cb0212006-03-01 15:07:07 +1100301 PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP |
302 PPC_FEATURE_SMT,
Stephen Rothwell49209602005-10-12 15:55:09 +1000303 .icache_bsize = 128,
304 .dcache_bsize = 128,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100305 .platform = "ppc-cell-be",
Stephen Rothwell49209602005-10-12 15:55:09 +1000306 },
Olof Johanssonb3ebd1d2006-09-06 14:35:57 -0500307 { /* PA Semi PA6T */
308 .pvr_mask = 0x7fff0000,
309 .pvr_value = 0x00900000,
310 .cpu_name = "PA6T",
311 .cpu_features = CPU_FTRS_PA6T,
312 .cpu_user_features = COMMON_USER_PA6T,
313 .icache_bsize = 64,
314 .dcache_bsize = 64,
315 .num_pmcs = 6,
316 .platform = "pa6t",
317 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000318 { /* default match */
319 .pvr_mask = 0x00000000,
320 .pvr_value = 0x00000000,
321 .cpu_name = "POWER4 (compatible)",
322 .cpu_features = CPU_FTRS_COMPATIBLE,
323 .cpu_user_features = COMMON_USER_PPC64,
324 .icache_bsize = 128,
325 .dcache_bsize = 128,
326 .num_pmcs = 6,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100327 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000328 }
329#endif /* CONFIG_PPC64 */
330#ifdef CONFIG_PPC32
Linus Torvalds1da177e2005-04-16 15:20:36 -0700331#if CLASSIC_PPC
Stephen Rothwell49209602005-10-12 15:55:09 +1000332 { /* 601 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700333 .pvr_mask = 0xffff0000,
334 .pvr_value = 0x00010000,
335 .cpu_name = "601",
Kumar Gala10b35d92005-09-23 14:08:58 -0500336 .cpu_features = CPU_FTRS_PPC601,
Stephen Rothwell49209602005-10-12 15:55:09 +1000337 .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR |
Paul Mackerras98599012005-10-22 16:51:34 +1000338 PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700339 .icache_bsize = 32,
340 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100341 .platform = "ppc601",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700342 },
343 { /* 603 */
344 .pvr_mask = 0xffff0000,
345 .pvr_value = 0x00030000,
346 .cpu_name = "603",
Kumar Gala10b35d92005-09-23 14:08:58 -0500347 .cpu_features = CPU_FTRS_603,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000348 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700349 .icache_bsize = 32,
350 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100351 .cpu_setup = __setup_cpu_603,
352 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700353 },
354 { /* 603e */
355 .pvr_mask = 0xffff0000,
356 .pvr_value = 0x00060000,
357 .cpu_name = "603e",
Kumar Gala10b35d92005-09-23 14:08:58 -0500358 .cpu_features = CPU_FTRS_603,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000359 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700360 .icache_bsize = 32,
361 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100362 .cpu_setup = __setup_cpu_603,
363 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700364 },
365 { /* 603ev */
366 .pvr_mask = 0xffff0000,
367 .pvr_value = 0x00070000,
368 .cpu_name = "603ev",
Kumar Gala10b35d92005-09-23 14:08:58 -0500369 .cpu_features = CPU_FTRS_603,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000370 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700371 .icache_bsize = 32,
372 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100373 .cpu_setup = __setup_cpu_603,
374 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700375 },
376 { /* 604 */
377 .pvr_mask = 0xffff0000,
378 .pvr_value = 0x00040000,
379 .cpu_name = "604",
Kumar Gala10b35d92005-09-23 14:08:58 -0500380 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000381 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700382 .icache_bsize = 32,
383 .dcache_bsize = 32,
384 .num_pmcs = 2,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100385 .cpu_setup = __setup_cpu_604,
386 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700387 },
388 { /* 604e */
389 .pvr_mask = 0xfffff000,
390 .pvr_value = 0x00090000,
391 .cpu_name = "604e",
Kumar Gala10b35d92005-09-23 14:08:58 -0500392 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000393 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700394 .icache_bsize = 32,
395 .dcache_bsize = 32,
396 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100397 .cpu_setup = __setup_cpu_604,
398 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700399 },
400 { /* 604r */
401 .pvr_mask = 0xffff0000,
402 .pvr_value = 0x00090000,
403 .cpu_name = "604r",
Kumar Gala10b35d92005-09-23 14:08:58 -0500404 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000405 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700406 .icache_bsize = 32,
407 .dcache_bsize = 32,
408 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100409 .cpu_setup = __setup_cpu_604,
410 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700411 },
412 { /* 604ev */
413 .pvr_mask = 0xffff0000,
414 .pvr_value = 0x000a0000,
415 .cpu_name = "604ev",
Kumar Gala10b35d92005-09-23 14:08:58 -0500416 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000417 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700418 .icache_bsize = 32,
419 .dcache_bsize = 32,
420 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100421 .cpu_setup = __setup_cpu_604,
422 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700423 },
424 { /* 740/750 (0x4202, don't support TAU ?) */
425 .pvr_mask = 0xffffffff,
426 .pvr_value = 0x00084202,
427 .cpu_name = "740/750",
Kumar Gala10b35d92005-09-23 14:08:58 -0500428 .cpu_features = CPU_FTRS_740_NOTAU,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000429 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700430 .icache_bsize = 32,
431 .dcache_bsize = 32,
432 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100433 .cpu_setup = __setup_cpu_750,
434 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700435 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700436 { /* 750CX (80100 and 8010x?) */
437 .pvr_mask = 0xfffffff0,
438 .pvr_value = 0x00080100,
439 .cpu_name = "750CX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500440 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000441 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700442 .icache_bsize = 32,
443 .dcache_bsize = 32,
444 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100445 .cpu_setup = __setup_cpu_750cx,
446 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700447 },
448 { /* 750CX (82201 and 82202) */
449 .pvr_mask = 0xfffffff0,
450 .pvr_value = 0x00082200,
451 .cpu_name = "750CX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500452 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000453 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700454 .icache_bsize = 32,
455 .dcache_bsize = 32,
456 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100457 .cpu_setup = __setup_cpu_750cx,
458 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700459 },
460 { /* 750CXe (82214) */
461 .pvr_mask = 0xfffffff0,
462 .pvr_value = 0x00082210,
463 .cpu_name = "750CXe",
Kumar Gala10b35d92005-09-23 14:08:58 -0500464 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000465 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700466 .icache_bsize = 32,
467 .dcache_bsize = 32,
468 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100469 .cpu_setup = __setup_cpu_750cx,
470 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700471 },
Arthur Othieno7c316252005-09-03 15:55:52 -0700472 { /* 750CXe "Gekko" (83214) */
473 .pvr_mask = 0xffffffff,
474 .pvr_value = 0x00083214,
475 .cpu_name = "750CXe",
Kumar Gala10b35d92005-09-23 14:08:58 -0500476 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000477 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Arthur Othieno7c316252005-09-03 15:55:52 -0700478 .icache_bsize = 32,
479 .dcache_bsize = 32,
480 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100481 .cpu_setup = __setup_cpu_750cx,
482 .platform = "ppc750",
Arthur Othieno7c316252005-09-03 15:55:52 -0700483 },
Arthur Othienoac1ff042005-09-03 15:55:51 -0700484 { /* 745/755 */
485 .pvr_mask = 0xfffff000,
486 .pvr_value = 0x00083000,
487 .cpu_name = "745/755",
Kumar Gala10b35d92005-09-23 14:08:58 -0500488 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000489 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Arthur Othienoac1ff042005-09-03 15:55:51 -0700490 .icache_bsize = 32,
491 .dcache_bsize = 32,
492 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100493 .cpu_setup = __setup_cpu_750,
494 .platform = "ppc750",
Arthur Othienoac1ff042005-09-03 15:55:51 -0700495 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700496 { /* 750FX rev 1.x */
497 .pvr_mask = 0xffffff00,
498 .pvr_value = 0x70000100,
499 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500500 .cpu_features = CPU_FTRS_750FX1,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000501 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700502 .icache_bsize = 32,
503 .dcache_bsize = 32,
504 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100505 .cpu_setup = __setup_cpu_750,
506 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700507 },
508 { /* 750FX rev 2.0 must disable HID0[DPM] */
509 .pvr_mask = 0xffffffff,
510 .pvr_value = 0x70000200,
511 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500512 .cpu_features = CPU_FTRS_750FX2,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000513 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700514 .icache_bsize = 32,
515 .dcache_bsize = 32,
516 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100517 .cpu_setup = __setup_cpu_750,
518 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700519 },
520 { /* 750FX (All revs except 2.0) */
521 .pvr_mask = 0xffff0000,
522 .pvr_value = 0x70000000,
523 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500524 .cpu_features = CPU_FTRS_750FX,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000525 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700526 .icache_bsize = 32,
527 .dcache_bsize = 32,
528 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100529 .cpu_setup = __setup_cpu_750fx,
530 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700531 },
532 { /* 750GX */
533 .pvr_mask = 0xffff0000,
534 .pvr_value = 0x70020000,
535 .cpu_name = "750GX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500536 .cpu_features = CPU_FTRS_750GX,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000537 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700538 .icache_bsize = 32,
539 .dcache_bsize = 32,
540 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100541 .cpu_setup = __setup_cpu_750fx,
542 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700543 },
544 { /* 740/750 (L2CR bit need fixup for 740) */
545 .pvr_mask = 0xffff0000,
546 .pvr_value = 0x00080000,
547 .cpu_name = "740/750",
Kumar Gala10b35d92005-09-23 14:08:58 -0500548 .cpu_features = CPU_FTRS_740,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000549 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700550 .icache_bsize = 32,
551 .dcache_bsize = 32,
552 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100553 .cpu_setup = __setup_cpu_750,
554 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700555 },
556 { /* 7400 rev 1.1 ? (no TAU) */
557 .pvr_mask = 0xffffffff,
558 .pvr_value = 0x000c1101,
559 .cpu_name = "7400 (1.1)",
Kumar Gala10b35d92005-09-23 14:08:58 -0500560 .cpu_features = CPU_FTRS_7400_NOTAU,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000561 .cpu_user_features = COMMON_USER |
562 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700563 .icache_bsize = 32,
564 .dcache_bsize = 32,
565 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100566 .cpu_setup = __setup_cpu_7400,
567 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700568 },
569 { /* 7400 */
570 .pvr_mask = 0xffff0000,
571 .pvr_value = 0x000c0000,
572 .cpu_name = "7400",
Kumar Gala10b35d92005-09-23 14:08:58 -0500573 .cpu_features = CPU_FTRS_7400,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000574 .cpu_user_features = COMMON_USER |
575 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700576 .icache_bsize = 32,
577 .dcache_bsize = 32,
578 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100579 .cpu_setup = __setup_cpu_7400,
580 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700581 },
582 { /* 7410 */
583 .pvr_mask = 0xffff0000,
584 .pvr_value = 0x800c0000,
585 .cpu_name = "7410",
Kumar Gala10b35d92005-09-23 14:08:58 -0500586 .cpu_features = CPU_FTRS_7400,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000587 .cpu_user_features = COMMON_USER |
588 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700589 .icache_bsize = 32,
590 .dcache_bsize = 32,
591 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100592 .cpu_setup = __setup_cpu_7410,
593 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700594 },
595 { /* 7450 2.0 - no doze/nap */
596 .pvr_mask = 0xffffffff,
597 .pvr_value = 0x80000200,
598 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500599 .cpu_features = CPU_FTRS_7450_20,
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.1 */
611 .pvr_mask = 0xffffffff,
612 .pvr_value = 0x80000201,
613 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500614 .cpu_features = CPU_FTRS_7450_21,
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 { /* 7450 2.3 and newer */
626 .pvr_mask = 0xffff0000,
627 .pvr_value = 0x80000000,
628 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500629 .cpu_features = CPU_FTRS_7450_23,
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 1.x */
641 .pvr_mask = 0xffffff00,
642 .pvr_value = 0x80010100,
643 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500644 .cpu_features = CPU_FTRS_7455_1,
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 rev 2.0 */
656 .pvr_mask = 0xffffffff,
657 .pvr_value = 0x80010200,
658 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500659 .cpu_features = CPU_FTRS_7455_20,
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 { /* 7455 others */
671 .pvr_mask = 0xffff0000,
672 .pvr_value = 0x80010000,
673 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500674 .cpu_features = CPU_FTRS_7455,
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.0 */
686 .pvr_mask = 0xffffffff,
687 .pvr_value = 0x80020100,
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.1 */
701 .pvr_mask = 0xffffffff,
702 .pvr_value = 0x80020101,
703 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500704 .cpu_features = CPU_FTRS_7447_10,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000705 .cpu_user_features = COMMON_USER |
706 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700707 .icache_bsize = 32,
708 .dcache_bsize = 32,
709 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600710 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600711 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000712 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100713 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700714 },
715 { /* 7447/7457 Rev 1.2 and later */
716 .pvr_mask = 0xffff0000,
717 .pvr_value = 0x80020000,
718 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500719 .cpu_features = CPU_FTRS_7447,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000720 .cpu_user_features = COMMON_USER | 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 },
729 { /* 7447A */
730 .pvr_mask = 0xffff0000,
731 .pvr_value = 0x80030000,
732 .cpu_name = "7447A",
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,
Linus Torvalds1da177e2005-04-16 15:20:36 -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",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700743 },
Kumar Galabbde6302005-09-03 15:55:55 -0700744 { /* 7448 */
745 .pvr_mask = 0xffff0000,
746 .pvr_value = 0x80040000,
747 .cpu_name = "7448",
Kumar Gala10b35d92005-09-23 14:08:58 -0500748 .cpu_features = CPU_FTRS_7447A,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000749 .cpu_user_features = COMMON_USER |
750 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Kumar Galabbde6302005-09-03 15:55:55 -0700751 .icache_bsize = 32,
752 .dcache_bsize = 32,
753 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600754 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600755 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000756 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100757 .platform = "ppc7450",
Kumar Galabbde6302005-09-03 15:55:55 -0700758 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700759 { /* 82xx (8240, 8245, 8260 are all 603e cores) */
760 .pvr_mask = 0x7fff0000,
761 .pvr_value = 0x00810000,
762 .cpu_name = "82xx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500763 .cpu_features = CPU_FTRS_82XX,
Stephen Rothwell49209602005-10-12 15:55:09 +1000764 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700765 .icache_bsize = 32,
766 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100767 .cpu_setup = __setup_cpu_603,
768 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700769 },
770 { /* All G2_LE (603e core, plus some) have the same pvr */
771 .pvr_mask = 0x7fff0000,
772 .pvr_value = 0x00820000,
773 .cpu_name = "G2_LE",
Kumar Gala10b35d92005-09-23 14:08:58 -0500774 .cpu_features = CPU_FTRS_G2_LE,
Stephen Rothwell49209602005-10-12 15:55:09 +1000775 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700776 .icache_bsize = 32,
777 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100778 .cpu_setup = __setup_cpu_603,
779 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700780 },
Kim Phillips6c4a2502006-10-02 20:10:24 -0500781 { /* e300c1 (a 603e core, plus some) on 83xx */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700782 .pvr_mask = 0x7fff0000,
783 .pvr_value = 0x00830000,
Kim Phillips6c4a2502006-10-02 20:10:24 -0500784 .cpu_name = "e300c1",
Kumar Gala10b35d92005-09-23 14:08:58 -0500785 .cpu_features = CPU_FTRS_E300,
Stephen Rothwell49209602005-10-12 15:55:09 +1000786 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700787 .icache_bsize = 32,
788 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100789 .cpu_setup = __setup_cpu_603,
790 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700791 },
Kim Phillips6c4a2502006-10-02 20:10:24 -0500792 { /* e300c2 (an e300c1 core, plus some, minus FPU) on 83xx */
793 .pvr_mask = 0x7fff0000,
794 .pvr_value = 0x00840000,
795 .cpu_name = "e300c2",
796 .cpu_features = CPU_FTRS_E300,
797 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
798 .icache_bsize = 32,
799 .dcache_bsize = 32,
800 .cpu_setup = __setup_cpu_603,
801 .platform = "ppc603",
802 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700803 { /* default match, we assume split I/D cache & TB (non-601)... */
804 .pvr_mask = 0x00000000,
805 .pvr_value = 0x00000000,
806 .cpu_name = "(generic PPC)",
Kumar Gala10b35d92005-09-23 14:08:58 -0500807 .cpu_features = CPU_FTRS_CLASSIC32,
Stephen Rothwell49209602005-10-12 15:55:09 +1000808 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700809 .icache_bsize = 32,
810 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100811 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700812 },
813#endif /* CLASSIC_PPC */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700814#ifdef CONFIG_8xx
815 { /* 8xx */
816 .pvr_mask = 0xffff0000,
817 .pvr_value = 0x00500000,
818 .cpu_name = "8xx",
819 /* CPU_FTR_MAYBE_CAN_DOZE is possible,
820 * if the 8xx code is there.... */
Kumar Gala10b35d92005-09-23 14:08:58 -0500821 .cpu_features = CPU_FTRS_8XX,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700822 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
823 .icache_bsize = 16,
824 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100825 .platform = "ppc823",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700826 },
827#endif /* CONFIG_8xx */
828#ifdef CONFIG_40x
829 { /* 403GC */
830 .pvr_mask = 0xffffff00,
831 .pvr_value = 0x00200200,
832 .cpu_name = "403GC",
Kumar Gala10b35d92005-09-23 14:08:58 -0500833 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700834 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
835 .icache_bsize = 16,
836 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100837 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700838 },
839 { /* 403GCX */
840 .pvr_mask = 0xffffff00,
841 .pvr_value = 0x00201400,
842 .cpu_name = "403GCX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500843 .cpu_features = CPU_FTRS_40X,
Paul Mackerras98599012005-10-22 16:51:34 +1000844 .cpu_user_features = PPC_FEATURE_32 |
845 PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700846 .icache_bsize = 16,
847 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100848 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700849 },
850 { /* 403G ?? */
851 .pvr_mask = 0xffff0000,
852 .pvr_value = 0x00200000,
853 .cpu_name = "403G ??",
Kumar Gala10b35d92005-09-23 14:08:58 -0500854 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700855 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
856 .icache_bsize = 16,
857 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100858 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700859 },
860 { /* 405GP */
861 .pvr_mask = 0xffff0000,
862 .pvr_value = 0x40110000,
863 .cpu_name = "405GP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500864 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700865 .cpu_user_features = PPC_FEATURE_32 |
866 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
867 .icache_bsize = 32,
868 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100869 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700870 },
871 { /* STB 03xxx */
872 .pvr_mask = 0xffff0000,
873 .pvr_value = 0x40130000,
874 .cpu_name = "STB03xxx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500875 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700876 .cpu_user_features = PPC_FEATURE_32 |
877 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
878 .icache_bsize = 32,
879 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100880 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700881 },
882 { /* STB 04xxx */
883 .pvr_mask = 0xffff0000,
884 .pvr_value = 0x41810000,
885 .cpu_name = "STB04xxx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500886 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700887 .cpu_user_features = PPC_FEATURE_32 |
888 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
889 .icache_bsize = 32,
890 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100891 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700892 },
893 { /* NP405L */
894 .pvr_mask = 0xffff0000,
895 .pvr_value = 0x41610000,
896 .cpu_name = "NP405L",
Kumar Gala10b35d92005-09-23 14:08:58 -0500897 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700898 .cpu_user_features = PPC_FEATURE_32 |
899 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
900 .icache_bsize = 32,
901 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100902 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700903 },
904 { /* NP4GS3 */
905 .pvr_mask = 0xffff0000,
906 .pvr_value = 0x40B10000,
907 .cpu_name = "NP4GS3",
Kumar Gala10b35d92005-09-23 14:08:58 -0500908 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700909 .cpu_user_features = PPC_FEATURE_32 |
910 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
911 .icache_bsize = 32,
912 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100913 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700914 },
915 { /* NP405H */
916 .pvr_mask = 0xffff0000,
917 .pvr_value = 0x41410000,
918 .cpu_name = "NP405H",
Kumar Gala10b35d92005-09-23 14:08:58 -0500919 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700920 .cpu_user_features = PPC_FEATURE_32 |
921 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
922 .icache_bsize = 32,
923 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100924 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700925 },
926 { /* 405GPr */
927 .pvr_mask = 0xffff0000,
928 .pvr_value = 0x50910000,
929 .cpu_name = "405GPr",
Kumar Gala10b35d92005-09-23 14:08:58 -0500930 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700931 .cpu_user_features = PPC_FEATURE_32 |
932 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
933 .icache_bsize = 32,
934 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100935 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700936 },
937 { /* STBx25xx */
938 .pvr_mask = 0xffff0000,
939 .pvr_value = 0x51510000,
940 .cpu_name = "STBx25xx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500941 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700942 .cpu_user_features = PPC_FEATURE_32 |
943 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
944 .icache_bsize = 32,
945 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100946 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700947 },
948 { /* 405LP */
949 .pvr_mask = 0xffff0000,
950 .pvr_value = 0x41F10000,
951 .cpu_name = "405LP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500952 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700953 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
954 .icache_bsize = 32,
955 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100956 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700957 },
958 { /* Xilinx Virtex-II Pro */
Grant C. Likely72646c72006-01-19 01:13:20 -0700959 .pvr_mask = 0xfffff000,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700960 .pvr_value = 0x20010000,
961 .cpu_name = "Virtex-II Pro",
Kumar Gala10b35d92005-09-23 14:08:58 -0500962 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700963 .cpu_user_features = PPC_FEATURE_32 |
964 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
965 .icache_bsize = 32,
966 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100967 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700968 },
Grant C. Likely72646c72006-01-19 01:13:20 -0700969 { /* Xilinx Virtex-4 FX */
970 .pvr_mask = 0xfffff000,
971 .pvr_value = 0x20011000,
972 .cpu_name = "Virtex-4 FX",
973 .cpu_features = CPU_FTRS_40X,
974 .cpu_user_features = PPC_FEATURE_32 |
975 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
976 .icache_bsize = 32,
977 .dcache_bsize = 32,
Peter Bergner838fdb42006-09-14 14:18:38 -0500978 .platform = "ppc405",
Grant C. Likely72646c72006-01-19 01:13:20 -0700979 },
Eugene Suroveginad95d602005-06-07 13:22:09 -0700980 { /* 405EP */
981 .pvr_mask = 0xffff0000,
982 .pvr_value = 0x51210000,
983 .cpu_name = "405EP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500984 .cpu_features = CPU_FTRS_40X,
Eugene Suroveginad95d602005-06-07 13:22:09 -0700985 .cpu_user_features = PPC_FEATURE_32 |
986 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
987 .icache_bsize = 32,
988 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100989 .platform = "ppc405",
Eugene Suroveginad95d602005-06-07 13:22:09 -0700990 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700991
992#endif /* CONFIG_40x */
993#ifdef CONFIG_44x
Matt Porterc9cf73a2005-07-31 22:34:52 -0700994 {
995 .pvr_mask = 0xf0000fff,
996 .pvr_value = 0x40000850,
997 .cpu_name = "440EP Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -0500998 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100999 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Matt Porterc9cf73a2005-07-31 22:34:52 -07001000 .icache_bsize = 32,
1001 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001002 .platform = "ppc440",
Matt Porterc9cf73a2005-07-31 22:34:52 -07001003 },
1004 {
1005 .pvr_mask = 0xf0000fff,
1006 .pvr_value = 0x400008d3,
1007 .cpu_name = "440EP Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -05001008 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001009 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Matt Porterc9cf73a2005-07-31 22:34:52 -07001010 .icache_bsize = 32,
1011 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001012 .platform = "ppc440",
Matt Porterc9cf73a2005-07-31 22:34:52 -07001013 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001014 { /* 440GP Rev. B */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001015 .pvr_mask = 0xf0000fff,
1016 .pvr_value = 0x40000440,
1017 .cpu_name = "440GP Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -05001018 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001019 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001020 .icache_bsize = 32,
1021 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001022 .platform = "ppc440gp",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001023 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001024 { /* 440GP Rev. C */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001025 .pvr_mask = 0xf0000fff,
1026 .pvr_value = 0x40000481,
1027 .cpu_name = "440GP Rev. C",
Kumar Gala10b35d92005-09-23 14:08:58 -05001028 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001029 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001030 .icache_bsize = 32,
1031 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001032 .platform = "ppc440gp",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001033 },
1034 { /* 440GX Rev. A */
1035 .pvr_mask = 0xf0000fff,
1036 .pvr_value = 0x50000850,
1037 .cpu_name = "440GX Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -05001038 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001039 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001040 .icache_bsize = 32,
1041 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001042 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001043 },
1044 { /* 440GX Rev. B */
1045 .pvr_mask = 0xf0000fff,
1046 .pvr_value = 0x50000851,
1047 .cpu_name = "440GX Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -05001048 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001049 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001050 .icache_bsize = 32,
1051 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001052 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001053 },
1054 { /* 440GX Rev. C */
1055 .pvr_mask = 0xf0000fff,
1056 .pvr_value = 0x50000892,
1057 .cpu_name = "440GX Rev. C",
Kumar Gala10b35d92005-09-23 14:08:58 -05001058 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001059 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001060 .icache_bsize = 32,
1061 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001062 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001063 },
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001064 { /* 440GX Rev. F */
1065 .pvr_mask = 0xf0000fff,
1066 .pvr_value = 0x50000894,
1067 .cpu_name = "440GX Rev. F",
Kumar Gala10b35d92005-09-23 14:08:58 -05001068 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001069 .cpu_user_features = COMMON_USER_BOOKE,
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001070 .icache_bsize = 32,
1071 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001072 .platform = "ppc440",
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001073 },
Matt Porter656de7e2005-09-03 15:55:42 -07001074 { /* 440SP Rev. A */
1075 .pvr_mask = 0xff000fff,
1076 .pvr_value = 0x53000891,
1077 .cpu_name = "440SP Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -05001078 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001079 .cpu_user_features = COMMON_USER_BOOKE,
Matt Porter656de7e2005-09-03 15:55:42 -07001080 .icache_bsize = 32,
1081 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001082 .platform = "ppc440",
Matt Porter656de7e2005-09-03 15:55:42 -07001083 },
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001084 { /* 440SPe Rev. A */
1085 .pvr_mask = 0xff000fff,
1086 .pvr_value = 0x53000890,
1087 .cpu_name = "440SPe Rev. A",
1088 .cpu_features = CPU_FTR_SPLIT_ID_CACHE |
1089 CPU_FTR_USE_TB,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001090 .cpu_user_features = COMMON_USER_BOOKE,
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001091 .icache_bsize = 32,
1092 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001093 .platform = "ppc440",
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001094 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001095#endif /* CONFIG_44x */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001096#ifdef CONFIG_FSL_BOOKE
Stephen Rothwell49209602005-10-12 15:55:09 +10001097 { /* e200z5 */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001098 .pvr_mask = 0xfff00000,
1099 .pvr_value = 0x81000000,
1100 .cpu_name = "e200z5",
1101 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001102 .cpu_features = CPU_FTRS_E200,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001103 .cpu_user_features = COMMON_USER_BOOKE |
1104 PPC_FEATURE_HAS_EFP_SINGLE |
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001105 PPC_FEATURE_UNIFIED_CACHE,
1106 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001107 .platform = "ppc5554",
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001108 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001109 { /* e200z6 */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001110 .pvr_mask = 0xfff00000,
1111 .pvr_value = 0x81100000,
1112 .cpu_name = "e200z6",
1113 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001114 .cpu_features = CPU_FTRS_E200,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001115 .cpu_user_features = COMMON_USER_BOOKE |
1116 PPC_FEATURE_SPE_COMP |
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001117 PPC_FEATURE_HAS_EFP_SINGLE |
1118 PPC_FEATURE_UNIFIED_CACHE,
1119 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001120 .platform = "ppc5554",
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001121 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001122 { /* e500 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001123 .pvr_mask = 0xffff0000,
1124 .pvr_value = 0x80200000,
1125 .cpu_name = "e500",
1126 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001127 .cpu_features = CPU_FTRS_E500,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001128 .cpu_user_features = COMMON_USER_BOOKE |
1129 PPC_FEATURE_SPE_COMP |
Linus Torvalds1da177e2005-04-16 15:20:36 -07001130 PPC_FEATURE_HAS_EFP_SINGLE,
1131 .icache_bsize = 32,
1132 .dcache_bsize = 32,
1133 .num_pmcs = 4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001134 .oprofile_cpu_type = "ppc/e500",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001135 .oprofile_type = PPC_OPROFILE_BOOKE,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001136 .platform = "ppc8540",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001137 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001138 { /* e500v2 */
Kumar Gala5b37b702005-06-21 17:15:18 -07001139 .pvr_mask = 0xffff0000,
1140 .pvr_value = 0x80210000,
1141 .cpu_name = "e500v2",
1142 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001143 .cpu_features = CPU_FTRS_E500_2,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001144 .cpu_user_features = COMMON_USER_BOOKE |
1145 PPC_FEATURE_SPE_COMP |
1146 PPC_FEATURE_HAS_EFP_SINGLE |
1147 PPC_FEATURE_HAS_EFP_DOUBLE,
Kumar Gala5b37b702005-06-21 17:15:18 -07001148 .icache_bsize = 32,
1149 .dcache_bsize = 32,
1150 .num_pmcs = 4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001151 .oprofile_cpu_type = "ppc/e500",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001152 .oprofile_type = PPC_OPROFILE_BOOKE,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001153 .platform = "ppc8548",
Kumar Gala5b37b702005-06-21 17:15:18 -07001154 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001155#endif
1156#if !CLASSIC_PPC
1157 { /* default match */
1158 .pvr_mask = 0x00000000,
1159 .pvr_value = 0x00000000,
1160 .cpu_name = "(generic PPC)",
Kumar Gala10b35d92005-09-23 14:08:58 -05001161 .cpu_features = CPU_FTRS_GENERIC_32,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001162 .cpu_user_features = PPC_FEATURE_32,
1163 .icache_bsize = 32,
1164 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001165 .platform = "powerpc",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001166 }
1167#endif /* !CLASSIC_PPC */
Stephen Rothwell49209602005-10-12 15:55:09 +10001168#endif /* CONFIG_PPC32 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001169};