blob: 272e43622fd634218e89ca6ed0838a2d3d92055c [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 */
Kumar Gala400d2212005-09-27 15:13:12 -050042extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec);
Linus Torvalds1da177e2005-04-16 15:20:36 -070043
Linus Torvalds1da177e2005-04-16 15:20:36 -070044/* This table only contains "desktop" CPUs, it need to be filled with embedded
45 * ones as well...
46 */
Stephen Rothwell49209602005-10-12 15:55:09 +100047#define COMMON_USER (PPC_FEATURE_32 | PPC_FEATURE_HAS_FPU | \
48 PPC_FEATURE_HAS_MMU)
49#define COMMON_USER_PPC64 (COMMON_USER | PPC_FEATURE_64)
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +110050#define COMMON_USER_POWER4 (COMMON_USER_PPC64 | PPC_FEATURE_POWER4)
Benjamin Herrenschmidtaa5cb022006-03-01 15:07:07 +110051#define COMMON_USER_POWER5 (COMMON_USER_PPC64 | PPC_FEATURE_POWER5 |\
52 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
53#define COMMON_USER_POWER5_PLUS (COMMON_USER_PPC64 | PPC_FEATURE_POWER5_PLUS|\
54 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
Anton Blanchard03054d52006-04-29 09:51:06 +100055#define COMMON_USER_POWER6 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_05 |\
Paul Mackerrasfab5db92006-06-07 16:14:40 +100056 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \
57 PPC_FEATURE_TRUE_LE)
Paul Mackerras80f15dc2006-01-14 10:11:39 +110058#define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \
59 PPC_FEATURE_BOOKE)
Linus Torvalds1da177e2005-04-16 15:20:36 -070060
Linus Torvalds1da177e2005-04-16 15:20:36 -070061/* We only set the spe features if the kernel was compiled with
62 * spe support
63 */
64#ifdef CONFIG_SPE
Stephen Rothwell49209602005-10-12 15:55:09 +100065#define PPC_FEATURE_SPE_COMP PPC_FEATURE_HAS_SPE
Linus Torvalds1da177e2005-04-16 15:20:36 -070066#else
Stephen Rothwell49209602005-10-12 15:55:09 +100067#define PPC_FEATURE_SPE_COMP 0
Linus Torvalds1da177e2005-04-16 15:20:36 -070068#endif
69
Linus Torvalds1da177e2005-04-16 15:20:36 -070070struct cpu_spec cpu_specs[] = {
Stephen Rothwell49209602005-10-12 15:55:09 +100071#ifdef CONFIG_PPC64
72 { /* Power3 */
73 .pvr_mask = 0xffff0000,
74 .pvr_value = 0x00400000,
75 .cpu_name = "POWER3 (630)",
76 .cpu_features = CPU_FTRS_POWER3,
Paul Mackerrasfab5db92006-06-07 16:14:40 +100077 .cpu_user_features = COMMON_USER_PPC64|PPC_FEATURE_PPC_LE,
Stephen Rothwell49209602005-10-12 15:55:09 +100078 .icache_bsize = 128,
79 .dcache_bsize = 128,
80 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +100081 .oprofile_cpu_type = "ppc64/power3",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +000082 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +110083 .platform = "power3",
Stephen Rothwell49209602005-10-12 15:55:09 +100084 },
85 { /* Power3+ */
86 .pvr_mask = 0xffff0000,
87 .pvr_value = 0x00410000,
88 .cpu_name = "POWER3 (630+)",
89 .cpu_features = CPU_FTRS_POWER3,
Paul Mackerrasfab5db92006-06-07 16:14:40 +100090 .cpu_user_features = COMMON_USER_PPC64|PPC_FEATURE_PPC_LE,
Stephen Rothwell49209602005-10-12 15:55:09 +100091 .icache_bsize = 128,
92 .dcache_bsize = 128,
93 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +100094 .oprofile_cpu_type = "ppc64/power3",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +000095 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +110096 .platform = "power3",
Stephen Rothwell49209602005-10-12 15:55:09 +100097 },
98 { /* Northstar */
99 .pvr_mask = 0xffff0000,
100 .pvr_value = 0x00330000,
101 .cpu_name = "RS64-II (northstar)",
102 .cpu_features = CPU_FTRS_RS64,
103 .cpu_user_features = COMMON_USER_PPC64,
104 .icache_bsize = 128,
105 .dcache_bsize = 128,
106 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000107 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000108 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100109 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000110 },
111 { /* Pulsar */
112 .pvr_mask = 0xffff0000,
113 .pvr_value = 0x00340000,
114 .cpu_name = "RS64-III (pulsar)",
115 .cpu_features = CPU_FTRS_RS64,
116 .cpu_user_features = COMMON_USER_PPC64,
117 .icache_bsize = 128,
118 .dcache_bsize = 128,
119 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000120 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000121 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100122 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000123 },
124 { /* I-star */
125 .pvr_mask = 0xffff0000,
126 .pvr_value = 0x00360000,
127 .cpu_name = "RS64-III (icestar)",
128 .cpu_features = CPU_FTRS_RS64,
129 .cpu_user_features = COMMON_USER_PPC64,
130 .icache_bsize = 128,
131 .dcache_bsize = 128,
132 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000133 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000134 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100135 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000136 },
137 { /* S-star */
138 .pvr_mask = 0xffff0000,
139 .pvr_value = 0x00370000,
140 .cpu_name = "RS64-IV (sstar)",
141 .cpu_features = CPU_FTRS_RS64,
142 .cpu_user_features = COMMON_USER_PPC64,
143 .icache_bsize = 128,
144 .dcache_bsize = 128,
145 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000146 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000147 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100148 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000149 },
150 { /* Power4 */
151 .pvr_mask = 0xffff0000,
152 .pvr_value = 0x00350000,
153 .cpu_name = "POWER4 (gp)",
154 .cpu_features = CPU_FTRS_POWER4,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100155 .cpu_user_features = COMMON_USER_POWER4,
Stephen Rothwell49209602005-10-12 15:55:09 +1000156 .icache_bsize = 128,
157 .dcache_bsize = 128,
158 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000159 .oprofile_cpu_type = "ppc64/power4",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000160 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100161 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000162 },
163 { /* Power4+ */
164 .pvr_mask = 0xffff0000,
165 .pvr_value = 0x00380000,
166 .cpu_name = "POWER4+ (gq)",
167 .cpu_features = CPU_FTRS_POWER4,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100168 .cpu_user_features = COMMON_USER_POWER4,
Stephen Rothwell49209602005-10-12 15:55:09 +1000169 .icache_bsize = 128,
170 .dcache_bsize = 128,
171 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000172 .oprofile_cpu_type = "ppc64/power4",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000173 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100174 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000175 },
176 { /* PPC970 */
177 .pvr_mask = 0xffff0000,
178 .pvr_value = 0x00390000,
179 .cpu_name = "PPC970",
180 .cpu_features = CPU_FTRS_PPC970,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100181 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000182 PPC_FEATURE_HAS_ALTIVEC_COMP,
183 .icache_bsize = 128,
184 .dcache_bsize = 128,
185 .num_pmcs = 8,
186 .cpu_setup = __setup_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000187 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000188 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100189 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000190 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000191 { /* PPC970FX */
192 .pvr_mask = 0xffff0000,
193 .pvr_value = 0x003c0000,
194 .cpu_name = "PPC970FX",
Stephen Rothwell49209602005-10-12 15:55:09 +1000195 .cpu_features = CPU_FTRS_PPC970,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100196 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000197 PPC_FEATURE_HAS_ALTIVEC_COMP,
198 .icache_bsize = 128,
199 .dcache_bsize = 128,
200 .num_pmcs = 8,
201 .cpu_setup = __setup_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000202 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000203 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100204 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000205 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000206 { /* PPC970MP */
207 .pvr_mask = 0xffff0000,
208 .pvr_value = 0x00440000,
209 .cpu_name = "PPC970MP",
210 .cpu_features = CPU_FTRS_PPC970,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100211 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000212 PPC_FEATURE_HAS_ALTIVEC_COMP,
213 .icache_bsize = 128,
214 .dcache_bsize = 128,
Anton Blanchard87af41b2006-05-05 05:44:26 +1000215 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000216 .cpu_setup = __setup_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000217 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000218 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100219 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000220 },
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100221 { /* Power5 GR */
Stephen Rothwell49209602005-10-12 15:55:09 +1000222 .pvr_mask = 0xffff0000,
223 .pvr_value = 0x003a0000,
224 .cpu_name = "POWER5 (gr)",
225 .cpu_features = CPU_FTRS_POWER5,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100226 .cpu_user_features = COMMON_USER_POWER5,
Stephen Rothwell49209602005-10-12 15:55:09 +1000227 .icache_bsize = 128,
228 .dcache_bsize = 128,
229 .num_pmcs = 6,
Stephen Rothwell49209602005-10-12 15:55:09 +1000230 .oprofile_cpu_type = "ppc64/power5",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000231 .oprofile_type = PPC_OPROFILE_POWER4,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000232 /* SIHV / SIPR bits are implemented on POWER4+ (GQ)
233 * and above but only works on POWER5 and above
234 */
235 .oprofile_mmcra_sihv = MMCRA_SIHV,
236 .oprofile_mmcra_sipr = MMCRA_SIPR,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100237 .platform = "power5",
Stephen Rothwell49209602005-10-12 15:55:09 +1000238 },
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100239 { /* Power5 GS */
Stephen Rothwell49209602005-10-12 15:55:09 +1000240 .pvr_mask = 0xffff0000,
241 .pvr_value = 0x003b0000,
Anton Blanchard834608f2006-01-09 15:42:30 +1100242 .cpu_name = "POWER5+ (gs)",
Stephen Rothwell49209602005-10-12 15:55:09 +1000243 .cpu_features = CPU_FTRS_POWER5,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100244 .cpu_user_features = COMMON_USER_POWER5_PLUS,
Stephen Rothwell49209602005-10-12 15:55:09 +1000245 .icache_bsize = 128,
246 .dcache_bsize = 128,
247 .num_pmcs = 6,
Anton Blanchard834608f2006-01-09 15:42:30 +1100248 .oprofile_cpu_type = "ppc64/power5+",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000249 .oprofile_type = PPC_OPROFILE_POWER4,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000250 .oprofile_mmcra_sihv = MMCRA_SIHV,
251 .oprofile_mmcra_sipr = MMCRA_SIPR,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100252 .platform = "power5+",
Stephen Rothwell49209602005-10-12 15:55:09 +1000253 },
Anton Blanchard03054d52006-04-29 09:51:06 +1000254 { /* Power6 */
255 .pvr_mask = 0xffff0000,
256 .pvr_value = 0x003e0000,
257 .cpu_name = "POWER6",
258 .cpu_features = CPU_FTRS_POWER6,
259 .cpu_user_features = COMMON_USER_POWER6,
260 .icache_bsize = 128,
261 .dcache_bsize = 128,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000262 .num_pmcs = 8,
Anton Blanchard03054d52006-04-29 09:51:06 +1000263 .oprofile_cpu_type = "ppc64/power6",
264 .oprofile_type = PPC_OPROFILE_POWER4,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000265 .oprofile_mmcra_sihv = POWER6_MMCRA_SIHV,
266 .oprofile_mmcra_sipr = POWER6_MMCRA_SIPR,
267 .oprofile_mmcra_clear = POWER6_MMCRA_THRM |
268 POWER6_MMCRA_OTHER,
Anton Blanchard03054d52006-04-29 09:51:06 +1000269 .platform = "power6",
270 },
Arnd Bergmannc902be72006-01-04 19:55:53 +0000271 { /* Cell Broadband Engine */
Stephen Rothwell49209602005-10-12 15:55:09 +1000272 .pvr_mask = 0xffff0000,
273 .pvr_value = 0x00700000,
274 .cpu_name = "Cell Broadband Engine",
275 .cpu_features = CPU_FTRS_CELL,
276 .cpu_user_features = COMMON_USER_PPC64 |
Benjamin Herrenschmidtaa5cb022006-03-01 15:07:07 +1100277 PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP |
278 PPC_FEATURE_SMT,
Stephen Rothwell49209602005-10-12 15:55:09 +1000279 .icache_bsize = 128,
280 .dcache_bsize = 128,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100281 .platform = "ppc-cell-be",
Stephen Rothwell49209602005-10-12 15:55:09 +1000282 },
283 { /* default match */
284 .pvr_mask = 0x00000000,
285 .pvr_value = 0x00000000,
286 .cpu_name = "POWER4 (compatible)",
287 .cpu_features = CPU_FTRS_COMPATIBLE,
288 .cpu_user_features = COMMON_USER_PPC64,
289 .icache_bsize = 128,
290 .dcache_bsize = 128,
291 .num_pmcs = 6,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100292 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000293 }
294#endif /* CONFIG_PPC64 */
295#ifdef CONFIG_PPC32
Linus Torvalds1da177e2005-04-16 15:20:36 -0700296#if CLASSIC_PPC
Stephen Rothwell49209602005-10-12 15:55:09 +1000297 { /* 601 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700298 .pvr_mask = 0xffff0000,
299 .pvr_value = 0x00010000,
300 .cpu_name = "601",
Kumar Gala10b35d92005-09-23 14:08:58 -0500301 .cpu_features = CPU_FTRS_PPC601,
Stephen Rothwell49209602005-10-12 15:55:09 +1000302 .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR |
Paul Mackerras98599012005-10-22 16:51:34 +1000303 PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700304 .icache_bsize = 32,
305 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100306 .platform = "ppc601",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700307 },
308 { /* 603 */
309 .pvr_mask = 0xffff0000,
310 .pvr_value = 0x00030000,
311 .cpu_name = "603",
Kumar Gala10b35d92005-09-23 14:08:58 -0500312 .cpu_features = CPU_FTRS_603,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000313 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700314 .icache_bsize = 32,
315 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100316 .cpu_setup = __setup_cpu_603,
317 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700318 },
319 { /* 603e */
320 .pvr_mask = 0xffff0000,
321 .pvr_value = 0x00060000,
322 .cpu_name = "603e",
Kumar Gala10b35d92005-09-23 14:08:58 -0500323 .cpu_features = CPU_FTRS_603,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000324 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700325 .icache_bsize = 32,
326 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100327 .cpu_setup = __setup_cpu_603,
328 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700329 },
330 { /* 603ev */
331 .pvr_mask = 0xffff0000,
332 .pvr_value = 0x00070000,
333 .cpu_name = "603ev",
Kumar Gala10b35d92005-09-23 14:08:58 -0500334 .cpu_features = CPU_FTRS_603,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000335 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700336 .icache_bsize = 32,
337 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100338 .cpu_setup = __setup_cpu_603,
339 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700340 },
341 { /* 604 */
342 .pvr_mask = 0xffff0000,
343 .pvr_value = 0x00040000,
344 .cpu_name = "604",
Kumar Gala10b35d92005-09-23 14:08:58 -0500345 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000346 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700347 .icache_bsize = 32,
348 .dcache_bsize = 32,
349 .num_pmcs = 2,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100350 .cpu_setup = __setup_cpu_604,
351 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700352 },
353 { /* 604e */
354 .pvr_mask = 0xfffff000,
355 .pvr_value = 0x00090000,
356 .cpu_name = "604e",
Kumar Gala10b35d92005-09-23 14:08:58 -0500357 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000358 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700359 .icache_bsize = 32,
360 .dcache_bsize = 32,
361 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100362 .cpu_setup = __setup_cpu_604,
363 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700364 },
365 { /* 604r */
366 .pvr_mask = 0xffff0000,
367 .pvr_value = 0x00090000,
368 .cpu_name = "604r",
Kumar Gala10b35d92005-09-23 14:08:58 -0500369 .cpu_features = CPU_FTRS_604,
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,
373 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100374 .cpu_setup = __setup_cpu_604,
375 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700376 },
377 { /* 604ev */
378 .pvr_mask = 0xffff0000,
379 .pvr_value = 0x000a0000,
380 .cpu_name = "604ev",
Kumar Gala10b35d92005-09-23 14:08:58 -0500381 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000382 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700383 .icache_bsize = 32,
384 .dcache_bsize = 32,
385 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100386 .cpu_setup = __setup_cpu_604,
387 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700388 },
389 { /* 740/750 (0x4202, don't support TAU ?) */
390 .pvr_mask = 0xffffffff,
391 .pvr_value = 0x00084202,
392 .cpu_name = "740/750",
Kumar Gala10b35d92005-09-23 14:08:58 -0500393 .cpu_features = CPU_FTRS_740_NOTAU,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000394 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700395 .icache_bsize = 32,
396 .dcache_bsize = 32,
397 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100398 .cpu_setup = __setup_cpu_750,
399 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700400 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700401 { /* 750CX (80100 and 8010x?) */
402 .pvr_mask = 0xfffffff0,
403 .pvr_value = 0x00080100,
404 .cpu_name = "750CX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500405 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000406 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700407 .icache_bsize = 32,
408 .dcache_bsize = 32,
409 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100410 .cpu_setup = __setup_cpu_750cx,
411 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700412 },
413 { /* 750CX (82201 and 82202) */
414 .pvr_mask = 0xfffffff0,
415 .pvr_value = 0x00082200,
416 .cpu_name = "750CX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500417 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000418 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700419 .icache_bsize = 32,
420 .dcache_bsize = 32,
421 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100422 .cpu_setup = __setup_cpu_750cx,
423 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700424 },
425 { /* 750CXe (82214) */
426 .pvr_mask = 0xfffffff0,
427 .pvr_value = 0x00082210,
428 .cpu_name = "750CXe",
Kumar Gala10b35d92005-09-23 14:08:58 -0500429 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000430 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700431 .icache_bsize = 32,
432 .dcache_bsize = 32,
433 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100434 .cpu_setup = __setup_cpu_750cx,
435 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700436 },
Arthur Othieno7c316252005-09-03 15:55:52 -0700437 { /* 750CXe "Gekko" (83214) */
438 .pvr_mask = 0xffffffff,
439 .pvr_value = 0x00083214,
440 .cpu_name = "750CXe",
Kumar Gala10b35d92005-09-23 14:08:58 -0500441 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000442 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Arthur Othieno7c316252005-09-03 15:55:52 -0700443 .icache_bsize = 32,
444 .dcache_bsize = 32,
445 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100446 .cpu_setup = __setup_cpu_750cx,
447 .platform = "ppc750",
Arthur Othieno7c316252005-09-03 15:55:52 -0700448 },
Arthur Othienoac1ff042005-09-03 15:55:51 -0700449 { /* 745/755 */
450 .pvr_mask = 0xfffff000,
451 .pvr_value = 0x00083000,
452 .cpu_name = "745/755",
Kumar Gala10b35d92005-09-23 14:08:58 -0500453 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000454 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Arthur Othienoac1ff042005-09-03 15:55:51 -0700455 .icache_bsize = 32,
456 .dcache_bsize = 32,
457 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100458 .cpu_setup = __setup_cpu_750,
459 .platform = "ppc750",
Arthur Othienoac1ff042005-09-03 15:55:51 -0700460 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700461 { /* 750FX rev 1.x */
462 .pvr_mask = 0xffffff00,
463 .pvr_value = 0x70000100,
464 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500465 .cpu_features = CPU_FTRS_750FX1,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000466 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700467 .icache_bsize = 32,
468 .dcache_bsize = 32,
469 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100470 .cpu_setup = __setup_cpu_750,
471 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700472 },
473 { /* 750FX rev 2.0 must disable HID0[DPM] */
474 .pvr_mask = 0xffffffff,
475 .pvr_value = 0x70000200,
476 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500477 .cpu_features = CPU_FTRS_750FX2,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000478 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700479 .icache_bsize = 32,
480 .dcache_bsize = 32,
481 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100482 .cpu_setup = __setup_cpu_750,
483 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700484 },
485 { /* 750FX (All revs except 2.0) */
486 .pvr_mask = 0xffff0000,
487 .pvr_value = 0x70000000,
488 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500489 .cpu_features = CPU_FTRS_750FX,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000490 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700491 .icache_bsize = 32,
492 .dcache_bsize = 32,
493 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100494 .cpu_setup = __setup_cpu_750fx,
495 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700496 },
497 { /* 750GX */
498 .pvr_mask = 0xffff0000,
499 .pvr_value = 0x70020000,
500 .cpu_name = "750GX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500501 .cpu_features = CPU_FTRS_750GX,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000502 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700503 .icache_bsize = 32,
504 .dcache_bsize = 32,
505 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100506 .cpu_setup = __setup_cpu_750fx,
507 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700508 },
509 { /* 740/750 (L2CR bit need fixup for 740) */
510 .pvr_mask = 0xffff0000,
511 .pvr_value = 0x00080000,
512 .cpu_name = "740/750",
Kumar Gala10b35d92005-09-23 14:08:58 -0500513 .cpu_features = CPU_FTRS_740,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000514 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700515 .icache_bsize = 32,
516 .dcache_bsize = 32,
517 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100518 .cpu_setup = __setup_cpu_750,
519 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700520 },
521 { /* 7400 rev 1.1 ? (no TAU) */
522 .pvr_mask = 0xffffffff,
523 .pvr_value = 0x000c1101,
524 .cpu_name = "7400 (1.1)",
Kumar Gala10b35d92005-09-23 14:08:58 -0500525 .cpu_features = CPU_FTRS_7400_NOTAU,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000526 .cpu_user_features = COMMON_USER |
527 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700528 .icache_bsize = 32,
529 .dcache_bsize = 32,
530 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100531 .cpu_setup = __setup_cpu_7400,
532 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700533 },
534 { /* 7400 */
535 .pvr_mask = 0xffff0000,
536 .pvr_value = 0x000c0000,
537 .cpu_name = "7400",
Kumar Gala10b35d92005-09-23 14:08:58 -0500538 .cpu_features = CPU_FTRS_7400,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000539 .cpu_user_features = COMMON_USER |
540 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700541 .icache_bsize = 32,
542 .dcache_bsize = 32,
543 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100544 .cpu_setup = __setup_cpu_7400,
545 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700546 },
547 { /* 7410 */
548 .pvr_mask = 0xffff0000,
549 .pvr_value = 0x800c0000,
550 .cpu_name = "7410",
Kumar Gala10b35d92005-09-23 14:08:58 -0500551 .cpu_features = CPU_FTRS_7400,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000552 .cpu_user_features = COMMON_USER |
553 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700554 .icache_bsize = 32,
555 .dcache_bsize = 32,
556 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100557 .cpu_setup = __setup_cpu_7410,
558 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700559 },
560 { /* 7450 2.0 - no doze/nap */
561 .pvr_mask = 0xffffffff,
562 .pvr_value = 0x80000200,
563 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500564 .cpu_features = CPU_FTRS_7450_20,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000565 .cpu_user_features = COMMON_USER |
566 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700567 .icache_bsize = 32,
568 .dcache_bsize = 32,
569 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600570 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600571 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000572 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100573 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700574 },
575 { /* 7450 2.1 */
576 .pvr_mask = 0xffffffff,
577 .pvr_value = 0x80000201,
578 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500579 .cpu_features = CPU_FTRS_7450_21,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000580 .cpu_user_features = COMMON_USER |
581 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700582 .icache_bsize = 32,
583 .dcache_bsize = 32,
584 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600585 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600586 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000587 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100588 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700589 },
590 { /* 7450 2.3 and newer */
591 .pvr_mask = 0xffff0000,
592 .pvr_value = 0x80000000,
593 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500594 .cpu_features = CPU_FTRS_7450_23,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000595 .cpu_user_features = COMMON_USER |
596 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700597 .icache_bsize = 32,
598 .dcache_bsize = 32,
599 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600600 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600601 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000602 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100603 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700604 },
605 { /* 7455 rev 1.x */
606 .pvr_mask = 0xffffff00,
607 .pvr_value = 0x80010100,
608 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500609 .cpu_features = CPU_FTRS_7455_1,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000610 .cpu_user_features = COMMON_USER |
611 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700612 .icache_bsize = 32,
613 .dcache_bsize = 32,
614 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600615 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600616 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000617 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100618 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700619 },
620 { /* 7455 rev 2.0 */
621 .pvr_mask = 0xffffffff,
622 .pvr_value = 0x80010200,
623 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500624 .cpu_features = CPU_FTRS_7455_20,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000625 .cpu_user_features = COMMON_USER |
626 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700627 .icache_bsize = 32,
628 .dcache_bsize = 32,
629 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600630 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600631 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000632 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100633 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700634 },
635 { /* 7455 others */
636 .pvr_mask = 0xffff0000,
637 .pvr_value = 0x80010000,
638 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500639 .cpu_features = CPU_FTRS_7455,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000640 .cpu_user_features = COMMON_USER |
641 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700642 .icache_bsize = 32,
643 .dcache_bsize = 32,
644 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600645 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600646 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000647 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100648 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700649 },
650 { /* 7447/7457 Rev 1.0 */
651 .pvr_mask = 0xffffffff,
652 .pvr_value = 0x80020100,
653 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500654 .cpu_features = CPU_FTRS_7447_10,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000655 .cpu_user_features = COMMON_USER |
656 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700657 .icache_bsize = 32,
658 .dcache_bsize = 32,
659 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600660 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600661 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000662 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100663 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700664 },
665 { /* 7447/7457 Rev 1.1 */
666 .pvr_mask = 0xffffffff,
667 .pvr_value = 0x80020101,
668 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500669 .cpu_features = CPU_FTRS_7447_10,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000670 .cpu_user_features = COMMON_USER |
671 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700672 .icache_bsize = 32,
673 .dcache_bsize = 32,
674 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600675 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600676 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000677 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100678 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700679 },
680 { /* 7447/7457 Rev 1.2 and later */
681 .pvr_mask = 0xffff0000,
682 .pvr_value = 0x80020000,
683 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500684 .cpu_features = CPU_FTRS_7447,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000685 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700686 .icache_bsize = 32,
687 .dcache_bsize = 32,
688 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600689 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600690 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000691 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100692 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700693 },
694 { /* 7447A */
695 .pvr_mask = 0xffff0000,
696 .pvr_value = 0x80030000,
697 .cpu_name = "7447A",
Kumar Gala10b35d92005-09-23 14:08:58 -0500698 .cpu_features = CPU_FTRS_7447A,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000699 .cpu_user_features = COMMON_USER |
700 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700701 .icache_bsize = 32,
702 .dcache_bsize = 32,
703 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600704 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600705 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000706 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100707 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700708 },
Kumar Galabbde6302005-09-03 15:55:55 -0700709 { /* 7448 */
710 .pvr_mask = 0xffff0000,
711 .pvr_value = 0x80040000,
712 .cpu_name = "7448",
Kumar Gala10b35d92005-09-23 14:08:58 -0500713 .cpu_features = CPU_FTRS_7447A,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000714 .cpu_user_features = COMMON_USER |
715 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Kumar Galabbde6302005-09-03 15:55:55 -0700716 .icache_bsize = 32,
717 .dcache_bsize = 32,
718 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600719 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600720 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000721 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100722 .platform = "ppc7450",
Kumar Galabbde6302005-09-03 15:55:55 -0700723 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700724 { /* 82xx (8240, 8245, 8260 are all 603e cores) */
725 .pvr_mask = 0x7fff0000,
726 .pvr_value = 0x00810000,
727 .cpu_name = "82xx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500728 .cpu_features = CPU_FTRS_82XX,
Stephen Rothwell49209602005-10-12 15:55:09 +1000729 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700730 .icache_bsize = 32,
731 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100732 .cpu_setup = __setup_cpu_603,
733 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700734 },
735 { /* All G2_LE (603e core, plus some) have the same pvr */
736 .pvr_mask = 0x7fff0000,
737 .pvr_value = 0x00820000,
738 .cpu_name = "G2_LE",
Kumar Gala10b35d92005-09-23 14:08:58 -0500739 .cpu_features = CPU_FTRS_G2_LE,
Stephen Rothwell49209602005-10-12 15:55:09 +1000740 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700741 .icache_bsize = 32,
742 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100743 .cpu_setup = __setup_cpu_603,
744 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700745 },
746 { /* e300 (a 603e core, plus some) on 83xx */
747 .pvr_mask = 0x7fff0000,
748 .pvr_value = 0x00830000,
749 .cpu_name = "e300",
Kumar Gala10b35d92005-09-23 14:08:58 -0500750 .cpu_features = CPU_FTRS_E300,
Stephen Rothwell49209602005-10-12 15:55:09 +1000751 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700752 .icache_bsize = 32,
753 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100754 .cpu_setup = __setup_cpu_603,
755 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700756 },
757 { /* default match, we assume split I/D cache & TB (non-601)... */
758 .pvr_mask = 0x00000000,
759 .pvr_value = 0x00000000,
760 .cpu_name = "(generic PPC)",
Kumar Gala10b35d92005-09-23 14:08:58 -0500761 .cpu_features = CPU_FTRS_CLASSIC32,
Stephen Rothwell49209602005-10-12 15:55:09 +1000762 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700763 .icache_bsize = 32,
764 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100765 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700766 },
767#endif /* CLASSIC_PPC */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700768#ifdef CONFIG_8xx
769 { /* 8xx */
770 .pvr_mask = 0xffff0000,
771 .pvr_value = 0x00500000,
772 .cpu_name = "8xx",
773 /* CPU_FTR_MAYBE_CAN_DOZE is possible,
774 * if the 8xx code is there.... */
Kumar Gala10b35d92005-09-23 14:08:58 -0500775 .cpu_features = CPU_FTRS_8XX,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700776 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
777 .icache_bsize = 16,
778 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100779 .platform = "ppc823",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700780 },
781#endif /* CONFIG_8xx */
782#ifdef CONFIG_40x
783 { /* 403GC */
784 .pvr_mask = 0xffffff00,
785 .pvr_value = 0x00200200,
786 .cpu_name = "403GC",
Kumar Gala10b35d92005-09-23 14:08:58 -0500787 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700788 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
789 .icache_bsize = 16,
790 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100791 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700792 },
793 { /* 403GCX */
794 .pvr_mask = 0xffffff00,
795 .pvr_value = 0x00201400,
796 .cpu_name = "403GCX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500797 .cpu_features = CPU_FTRS_40X,
Paul Mackerras98599012005-10-22 16:51:34 +1000798 .cpu_user_features = PPC_FEATURE_32 |
799 PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700800 .icache_bsize = 16,
801 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100802 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700803 },
804 { /* 403G ?? */
805 .pvr_mask = 0xffff0000,
806 .pvr_value = 0x00200000,
807 .cpu_name = "403G ??",
Kumar Gala10b35d92005-09-23 14:08:58 -0500808 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700809 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
810 .icache_bsize = 16,
811 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100812 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700813 },
814 { /* 405GP */
815 .pvr_mask = 0xffff0000,
816 .pvr_value = 0x40110000,
817 .cpu_name = "405GP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500818 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700819 .cpu_user_features = PPC_FEATURE_32 |
820 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
821 .icache_bsize = 32,
822 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100823 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700824 },
825 { /* STB 03xxx */
826 .pvr_mask = 0xffff0000,
827 .pvr_value = 0x40130000,
828 .cpu_name = "STB03xxx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500829 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700830 .cpu_user_features = PPC_FEATURE_32 |
831 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
832 .icache_bsize = 32,
833 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100834 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700835 },
836 { /* STB 04xxx */
837 .pvr_mask = 0xffff0000,
838 .pvr_value = 0x41810000,
839 .cpu_name = "STB04xxx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500840 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700841 .cpu_user_features = PPC_FEATURE_32 |
842 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
843 .icache_bsize = 32,
844 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100845 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700846 },
847 { /* NP405L */
848 .pvr_mask = 0xffff0000,
849 .pvr_value = 0x41610000,
850 .cpu_name = "NP405L",
Kumar Gala10b35d92005-09-23 14:08:58 -0500851 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700852 .cpu_user_features = PPC_FEATURE_32 |
853 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
854 .icache_bsize = 32,
855 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100856 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700857 },
858 { /* NP4GS3 */
859 .pvr_mask = 0xffff0000,
860 .pvr_value = 0x40B10000,
861 .cpu_name = "NP4GS3",
Kumar Gala10b35d92005-09-23 14:08:58 -0500862 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700863 .cpu_user_features = PPC_FEATURE_32 |
864 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
865 .icache_bsize = 32,
866 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100867 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700868 },
869 { /* NP405H */
870 .pvr_mask = 0xffff0000,
871 .pvr_value = 0x41410000,
872 .cpu_name = "NP405H",
Kumar Gala10b35d92005-09-23 14:08:58 -0500873 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700874 .cpu_user_features = PPC_FEATURE_32 |
875 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
876 .icache_bsize = 32,
877 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100878 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700879 },
880 { /* 405GPr */
881 .pvr_mask = 0xffff0000,
882 .pvr_value = 0x50910000,
883 .cpu_name = "405GPr",
Kumar Gala10b35d92005-09-23 14:08:58 -0500884 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700885 .cpu_user_features = PPC_FEATURE_32 |
886 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
887 .icache_bsize = 32,
888 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100889 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700890 },
891 { /* STBx25xx */
892 .pvr_mask = 0xffff0000,
893 .pvr_value = 0x51510000,
894 .cpu_name = "STBx25xx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500895 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700896 .cpu_user_features = PPC_FEATURE_32 |
897 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
898 .icache_bsize = 32,
899 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100900 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700901 },
902 { /* 405LP */
903 .pvr_mask = 0xffff0000,
904 .pvr_value = 0x41F10000,
905 .cpu_name = "405LP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500906 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700907 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
908 .icache_bsize = 32,
909 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100910 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700911 },
912 { /* Xilinx Virtex-II Pro */
Grant C. Likely72646c72006-01-19 01:13:20 -0700913 .pvr_mask = 0xfffff000,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700914 .pvr_value = 0x20010000,
915 .cpu_name = "Virtex-II Pro",
Kumar Gala10b35d92005-09-23 14:08:58 -0500916 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700917 .cpu_user_features = PPC_FEATURE_32 |
918 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
919 .icache_bsize = 32,
920 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100921 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700922 },
Grant C. Likely72646c72006-01-19 01:13:20 -0700923 { /* Xilinx Virtex-4 FX */
924 .pvr_mask = 0xfffff000,
925 .pvr_value = 0x20011000,
926 .cpu_name = "Virtex-4 FX",
927 .cpu_features = CPU_FTRS_40X,
928 .cpu_user_features = PPC_FEATURE_32 |
929 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
930 .icache_bsize = 32,
931 .dcache_bsize = 32,
932 },
Eugene Suroveginad95d602005-06-07 13:22:09 -0700933 { /* 405EP */
934 .pvr_mask = 0xffff0000,
935 .pvr_value = 0x51210000,
936 .cpu_name = "405EP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500937 .cpu_features = CPU_FTRS_40X,
Eugene Suroveginad95d602005-06-07 13:22:09 -0700938 .cpu_user_features = PPC_FEATURE_32 |
939 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
940 .icache_bsize = 32,
941 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100942 .platform = "ppc405",
Eugene Suroveginad95d602005-06-07 13:22:09 -0700943 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700944
945#endif /* CONFIG_40x */
946#ifdef CONFIG_44x
Matt Porterc9cf73a2005-07-31 22:34:52 -0700947 {
948 .pvr_mask = 0xf0000fff,
949 .pvr_value = 0x40000850,
950 .cpu_name = "440EP Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -0500951 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100952 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Matt Porterc9cf73a2005-07-31 22:34:52 -0700953 .icache_bsize = 32,
954 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100955 .platform = "ppc440",
Matt Porterc9cf73a2005-07-31 22:34:52 -0700956 },
957 {
958 .pvr_mask = 0xf0000fff,
959 .pvr_value = 0x400008d3,
960 .cpu_name = "440EP Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -0500961 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100962 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Matt Porterc9cf73a2005-07-31 22:34:52 -0700963 .icache_bsize = 32,
964 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100965 .platform = "ppc440",
Matt Porterc9cf73a2005-07-31 22:34:52 -0700966 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000967 { /* 440GP Rev. B */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700968 .pvr_mask = 0xf0000fff,
969 .pvr_value = 0x40000440,
970 .cpu_name = "440GP Rev. B",
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,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700973 .icache_bsize = 32,
974 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100975 .platform = "ppc440gp",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700976 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000977 { /* 440GP Rev. C */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700978 .pvr_mask = 0xf0000fff,
979 .pvr_value = 0x40000481,
980 .cpu_name = "440GP Rev. C",
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,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700983 .icache_bsize = 32,
984 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100985 .platform = "ppc440gp",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700986 },
987 { /* 440GX Rev. A */
988 .pvr_mask = 0xf0000fff,
989 .pvr_value = 0x50000850,
990 .cpu_name = "440GX Rev. A",
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 = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700996 },
997 { /* 440GX Rev. B */
998 .pvr_mask = 0xf0000fff,
999 .pvr_value = 0x50000851,
1000 .cpu_name = "440GX Rev. B",
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 = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001006 },
1007 { /* 440GX Rev. C */
1008 .pvr_mask = 0xf0000fff,
1009 .pvr_value = 0x50000892,
1010 .cpu_name = "440GX Rev. C",
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 },
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001017 { /* 440GX Rev. F */
1018 .pvr_mask = 0xf0000fff,
1019 .pvr_value = 0x50000894,
1020 .cpu_name = "440GX Rev. F",
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,
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001023 .icache_bsize = 32,
1024 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001025 .platform = "ppc440",
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001026 },
Matt Porter656de7e2005-09-03 15:55:42 -07001027 { /* 440SP Rev. A */
1028 .pvr_mask = 0xff000fff,
1029 .pvr_value = 0x53000891,
1030 .cpu_name = "440SP Rev. A",
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,
Matt Porter656de7e2005-09-03 15:55:42 -07001033 .icache_bsize = 32,
1034 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001035 .platform = "ppc440",
Matt Porter656de7e2005-09-03 15:55:42 -07001036 },
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001037 { /* 440SPe Rev. A */
1038 .pvr_mask = 0xff000fff,
1039 .pvr_value = 0x53000890,
1040 .cpu_name = "440SPe Rev. A",
1041 .cpu_features = CPU_FTR_SPLIT_ID_CACHE |
1042 CPU_FTR_USE_TB,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001043 .cpu_user_features = COMMON_USER_BOOKE,
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001044 .icache_bsize = 32,
1045 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001046 .platform = "ppc440",
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001047 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001048#endif /* CONFIG_44x */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001049#ifdef CONFIG_FSL_BOOKE
Stephen Rothwell49209602005-10-12 15:55:09 +10001050 { /* e200z5 */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001051 .pvr_mask = 0xfff00000,
1052 .pvr_value = 0x81000000,
1053 .cpu_name = "e200z5",
1054 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001055 .cpu_features = CPU_FTRS_E200,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001056 .cpu_user_features = COMMON_USER_BOOKE |
1057 PPC_FEATURE_HAS_EFP_SINGLE |
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001058 PPC_FEATURE_UNIFIED_CACHE,
1059 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001060 .platform = "ppc5554",
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001061 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001062 { /* e200z6 */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001063 .pvr_mask = 0xfff00000,
1064 .pvr_value = 0x81100000,
1065 .cpu_name = "e200z6",
1066 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001067 .cpu_features = CPU_FTRS_E200,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001068 .cpu_user_features = COMMON_USER_BOOKE |
1069 PPC_FEATURE_SPE_COMP |
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001070 PPC_FEATURE_HAS_EFP_SINGLE |
1071 PPC_FEATURE_UNIFIED_CACHE,
1072 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001073 .platform = "ppc5554",
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001074 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001075 { /* e500 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001076 .pvr_mask = 0xffff0000,
1077 .pvr_value = 0x80200000,
1078 .cpu_name = "e500",
1079 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001080 .cpu_features = CPU_FTRS_E500,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001081 .cpu_user_features = COMMON_USER_BOOKE |
1082 PPC_FEATURE_SPE_COMP |
Linus Torvalds1da177e2005-04-16 15:20:36 -07001083 PPC_FEATURE_HAS_EFP_SINGLE,
1084 .icache_bsize = 32,
1085 .dcache_bsize = 32,
1086 .num_pmcs = 4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001087 .oprofile_cpu_type = "ppc/e500",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001088 .oprofile_type = PPC_OPROFILE_BOOKE,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001089 .platform = "ppc8540",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001090 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001091 { /* e500v2 */
Kumar Gala5b37b702005-06-21 17:15:18 -07001092 .pvr_mask = 0xffff0000,
1093 .pvr_value = 0x80210000,
1094 .cpu_name = "e500v2",
1095 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001096 .cpu_features = CPU_FTRS_E500_2,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001097 .cpu_user_features = COMMON_USER_BOOKE |
1098 PPC_FEATURE_SPE_COMP |
1099 PPC_FEATURE_HAS_EFP_SINGLE |
1100 PPC_FEATURE_HAS_EFP_DOUBLE,
Kumar Gala5b37b702005-06-21 17:15:18 -07001101 .icache_bsize = 32,
1102 .dcache_bsize = 32,
1103 .num_pmcs = 4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001104 .oprofile_cpu_type = "ppc/e500",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001105 .oprofile_type = PPC_OPROFILE_BOOKE,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001106 .platform = "ppc8548",
Kumar Gala5b37b702005-06-21 17:15:18 -07001107 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001108#endif
1109#if !CLASSIC_PPC
1110 { /* default match */
1111 .pvr_mask = 0x00000000,
1112 .pvr_value = 0x00000000,
1113 .cpu_name = "(generic PPC)",
Kumar Gala10b35d92005-09-23 14:08:58 -05001114 .cpu_features = CPU_FTRS_GENERIC_32,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001115 .cpu_user_features = PPC_FEATURE_32,
1116 .icache_bsize = 32,
1117 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001118 .platform = "powerpc",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001119 }
1120#endif /* !CLASSIC_PPC */
Stephen Rothwell49209602005-10-12 15:55:09 +10001121#endif /* CONFIG_PPC32 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001122};