blob: 0c487ee4d4830fae96041dcfff56b0f53405e13a [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
13#include <linux/config.h>
14#include <linux/string.h>
15#include <linux/sched.h>
16#include <linux/threads.h>
17#include <linux/init.h>
Kumar Gala400d2212005-09-27 15:13:12 -050018#include <linux/module.h>
19
20#include <asm/oprofile_impl.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070021#include <asm/cputable.h>
22
Kumar Gala400d2212005-09-27 15:13:12 -050023struct cpu_spec* cur_cpu_spec = NULL;
Stephen Rothwell49209602005-10-12 15:55:09 +100024EXPORT_SYMBOL(cur_cpu_spec);
Linus Torvalds1da177e2005-04-16 15:20:36 -070025
Stephen Rothwell49209602005-10-12 15:55:09 +100026/* NOTE:
27 * Unlike ppc32, ppc64 will only call this once for the boot CPU, it's
28 * the responsibility of the appropriate CPU save/restore functions to
29 * eventually copy these settings over. Those save/restore aren't yet
30 * part of the cputable though. That has to be fixed for both ppc32
31 * and ppc64
32 */
Geoff Levandb26f1002006-05-19 14:24:18 +100033#ifdef CONFIG_PPC32
Kumar Gala400d2212005-09-27 15:13:12 -050034extern void __setup_cpu_603(unsigned long offset, struct cpu_spec* spec);
35extern void __setup_cpu_604(unsigned long offset, struct cpu_spec* spec);
36extern void __setup_cpu_750(unsigned long offset, struct cpu_spec* spec);
37extern void __setup_cpu_750cx(unsigned long offset, struct cpu_spec* spec);
38extern void __setup_cpu_750fx(unsigned long offset, struct cpu_spec* spec);
39extern void __setup_cpu_7400(unsigned long offset, struct cpu_spec* spec);
40extern void __setup_cpu_7410(unsigned long offset, struct cpu_spec* spec);
41extern void __setup_cpu_745x(unsigned long offset, struct cpu_spec* spec);
Stephen Rothwell49209602005-10-12 15:55:09 +100042#endif /* CONFIG_PPC32 */
Kumar Gala400d2212005-09-27 15:13:12 -050043extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec);
Linus Torvalds1da177e2005-04-16 15:20:36 -070044
Linus Torvalds1da177e2005-04-16 15:20:36 -070045/* This table only contains "desktop" CPUs, it need to be filled with embedded
46 * ones as well...
47 */
Stephen Rothwell49209602005-10-12 15:55:09 +100048#define COMMON_USER (PPC_FEATURE_32 | PPC_FEATURE_HAS_FPU | \
49 PPC_FEATURE_HAS_MMU)
50#define COMMON_USER_PPC64 (COMMON_USER | PPC_FEATURE_64)
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +110051#define COMMON_USER_POWER4 (COMMON_USER_PPC64 | PPC_FEATURE_POWER4)
Benjamin Herrenschmidtaa5cb022006-03-01 15:07:07 +110052#define COMMON_USER_POWER5 (COMMON_USER_PPC64 | PPC_FEATURE_POWER5 |\
53 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
54#define COMMON_USER_POWER5_PLUS (COMMON_USER_PPC64 | PPC_FEATURE_POWER5_PLUS|\
55 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
Anton Blanchard03054d52006-04-29 09:51:06 +100056#define COMMON_USER_POWER6 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_05 |\
57 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
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,
77 .cpu_user_features = COMMON_USER_PPC64,
78 .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,
90 .cpu_user_features = COMMON_USER_PPC64,
91 .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 },
191#endif /* CONFIG_PPC64 */
192#if defined(CONFIG_PPC64) || defined(CONFIG_POWER4)
193 { /* PPC970FX */
194 .pvr_mask = 0xffff0000,
195 .pvr_value = 0x003c0000,
196 .cpu_name = "PPC970FX",
197#ifdef CONFIG_PPC32
198 .cpu_features = CPU_FTRS_970_32,
199#else
200 .cpu_features = CPU_FTRS_PPC970,
201#endif
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100202 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000203 PPC_FEATURE_HAS_ALTIVEC_COMP,
204 .icache_bsize = 128,
205 .dcache_bsize = 128,
206 .num_pmcs = 8,
207 .cpu_setup = __setup_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000208 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000209 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100210 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000211 },
212#endif /* defined(CONFIG_PPC64) || defined(CONFIG_POWER4) */
213#ifdef CONFIG_PPC64
214 { /* PPC970MP */
215 .pvr_mask = 0xffff0000,
216 .pvr_value = 0x00440000,
217 .cpu_name = "PPC970MP",
218 .cpu_features = CPU_FTRS_PPC970,
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,
223 .cpu_setup = __setup_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000224 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000225 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100226 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000227 },
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100228 { /* Power5 GR */
Stephen Rothwell49209602005-10-12 15:55:09 +1000229 .pvr_mask = 0xffff0000,
230 .pvr_value = 0x003a0000,
231 .cpu_name = "POWER5 (gr)",
232 .cpu_features = CPU_FTRS_POWER5,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100233 .cpu_user_features = COMMON_USER_POWER5,
Stephen Rothwell49209602005-10-12 15:55:09 +1000234 .icache_bsize = 128,
235 .dcache_bsize = 128,
236 .num_pmcs = 6,
Stephen Rothwell49209602005-10-12 15:55:09 +1000237 .oprofile_cpu_type = "ppc64/power5",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000238 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100239 .platform = "power5",
Stephen Rothwell49209602005-10-12 15:55:09 +1000240 },
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100241 { /* Power5 GS */
Stephen Rothwell49209602005-10-12 15:55:09 +1000242 .pvr_mask = 0xffff0000,
243 .pvr_value = 0x003b0000,
Anton Blanchard834608f2006-01-09 15:42:30 +1100244 .cpu_name = "POWER5+ (gs)",
Stephen Rothwell49209602005-10-12 15:55:09 +1000245 .cpu_features = CPU_FTRS_POWER5,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100246 .cpu_user_features = COMMON_USER_POWER5_PLUS,
Stephen Rothwell49209602005-10-12 15:55:09 +1000247 .icache_bsize = 128,
248 .dcache_bsize = 128,
249 .num_pmcs = 6,
Anton Blanchard834608f2006-01-09 15:42:30 +1100250 .oprofile_cpu_type = "ppc64/power5+",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000251 .oprofile_type = PPC_OPROFILE_POWER4,
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,
262 .num_pmcs = 6,
Anton Blanchard03054d52006-04-29 09:51:06 +1000263 .oprofile_cpu_type = "ppc64/power6",
264 .oprofile_type = PPC_OPROFILE_POWER4,
265 .platform = "power6",
266 },
Arnd Bergmannc902be72006-01-04 19:55:53 +0000267 { /* Cell Broadband Engine */
Stephen Rothwell49209602005-10-12 15:55:09 +1000268 .pvr_mask = 0xffff0000,
269 .pvr_value = 0x00700000,
270 .cpu_name = "Cell Broadband Engine",
271 .cpu_features = CPU_FTRS_CELL,
272 .cpu_user_features = COMMON_USER_PPC64 |
Benjamin Herrenschmidtaa5cb022006-03-01 15:07:07 +1100273 PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP |
274 PPC_FEATURE_SMT,
Stephen Rothwell49209602005-10-12 15:55:09 +1000275 .icache_bsize = 128,
276 .dcache_bsize = 128,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100277 .platform = "ppc-cell-be",
Stephen Rothwell49209602005-10-12 15:55:09 +1000278 },
279 { /* default match */
280 .pvr_mask = 0x00000000,
281 .pvr_value = 0x00000000,
282 .cpu_name = "POWER4 (compatible)",
283 .cpu_features = CPU_FTRS_COMPATIBLE,
284 .cpu_user_features = COMMON_USER_PPC64,
285 .icache_bsize = 128,
286 .dcache_bsize = 128,
287 .num_pmcs = 6,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100288 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000289 }
290#endif /* CONFIG_PPC64 */
291#ifdef CONFIG_PPC32
Linus Torvalds1da177e2005-04-16 15:20:36 -0700292#if CLASSIC_PPC
Stephen Rothwell49209602005-10-12 15:55:09 +1000293 { /* 601 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700294 .pvr_mask = 0xffff0000,
295 .pvr_value = 0x00010000,
296 .cpu_name = "601",
Kumar Gala10b35d92005-09-23 14:08:58 -0500297 .cpu_features = CPU_FTRS_PPC601,
Stephen Rothwell49209602005-10-12 15:55:09 +1000298 .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR |
Paul Mackerras98599012005-10-22 16:51:34 +1000299 PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700300 .icache_bsize = 32,
301 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100302 .platform = "ppc601",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700303 },
304 { /* 603 */
305 .pvr_mask = 0xffff0000,
306 .pvr_value = 0x00030000,
307 .cpu_name = "603",
Kumar Gala10b35d92005-09-23 14:08:58 -0500308 .cpu_features = CPU_FTRS_603,
Stephen Rothwell49209602005-10-12 15:55:09 +1000309 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700310 .icache_bsize = 32,
311 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100312 .cpu_setup = __setup_cpu_603,
313 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700314 },
315 { /* 603e */
316 .pvr_mask = 0xffff0000,
317 .pvr_value = 0x00060000,
318 .cpu_name = "603e",
Kumar Gala10b35d92005-09-23 14:08:58 -0500319 .cpu_features = CPU_FTRS_603,
Stephen Rothwell49209602005-10-12 15:55:09 +1000320 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700321 .icache_bsize = 32,
322 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100323 .cpu_setup = __setup_cpu_603,
324 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700325 },
326 { /* 603ev */
327 .pvr_mask = 0xffff0000,
328 .pvr_value = 0x00070000,
329 .cpu_name = "603ev",
Kumar Gala10b35d92005-09-23 14:08:58 -0500330 .cpu_features = CPU_FTRS_603,
Stephen Rothwell49209602005-10-12 15:55:09 +1000331 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700332 .icache_bsize = 32,
333 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100334 .cpu_setup = __setup_cpu_603,
335 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700336 },
337 { /* 604 */
338 .pvr_mask = 0xffff0000,
339 .pvr_value = 0x00040000,
340 .cpu_name = "604",
Kumar Gala10b35d92005-09-23 14:08:58 -0500341 .cpu_features = CPU_FTRS_604,
Stephen Rothwell49209602005-10-12 15:55:09 +1000342 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700343 .icache_bsize = 32,
344 .dcache_bsize = 32,
345 .num_pmcs = 2,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100346 .cpu_setup = __setup_cpu_604,
347 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700348 },
349 { /* 604e */
350 .pvr_mask = 0xfffff000,
351 .pvr_value = 0x00090000,
352 .cpu_name = "604e",
Kumar Gala10b35d92005-09-23 14:08:58 -0500353 .cpu_features = CPU_FTRS_604,
Stephen Rothwell49209602005-10-12 15:55:09 +1000354 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700355 .icache_bsize = 32,
356 .dcache_bsize = 32,
357 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100358 .cpu_setup = __setup_cpu_604,
359 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700360 },
361 { /* 604r */
362 .pvr_mask = 0xffff0000,
363 .pvr_value = 0x00090000,
364 .cpu_name = "604r",
Kumar Gala10b35d92005-09-23 14:08:58 -0500365 .cpu_features = CPU_FTRS_604,
Stephen Rothwell49209602005-10-12 15:55:09 +1000366 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700367 .icache_bsize = 32,
368 .dcache_bsize = 32,
369 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100370 .cpu_setup = __setup_cpu_604,
371 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700372 },
373 { /* 604ev */
374 .pvr_mask = 0xffff0000,
375 .pvr_value = 0x000a0000,
376 .cpu_name = "604ev",
Kumar Gala10b35d92005-09-23 14:08:58 -0500377 .cpu_features = CPU_FTRS_604,
Stephen Rothwell49209602005-10-12 15:55:09 +1000378 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700379 .icache_bsize = 32,
380 .dcache_bsize = 32,
381 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100382 .cpu_setup = __setup_cpu_604,
383 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700384 },
385 { /* 740/750 (0x4202, don't support TAU ?) */
386 .pvr_mask = 0xffffffff,
387 .pvr_value = 0x00084202,
388 .cpu_name = "740/750",
Kumar Gala10b35d92005-09-23 14:08:58 -0500389 .cpu_features = CPU_FTRS_740_NOTAU,
Stephen Rothwell49209602005-10-12 15:55:09 +1000390 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700391 .icache_bsize = 32,
392 .dcache_bsize = 32,
393 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100394 .cpu_setup = __setup_cpu_750,
395 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700396 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700397 { /* 750CX (80100 and 8010x?) */
398 .pvr_mask = 0xfffffff0,
399 .pvr_value = 0x00080100,
400 .cpu_name = "750CX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500401 .cpu_features = CPU_FTRS_750,
Stephen Rothwell49209602005-10-12 15:55:09 +1000402 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700403 .icache_bsize = 32,
404 .dcache_bsize = 32,
405 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100406 .cpu_setup = __setup_cpu_750cx,
407 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700408 },
409 { /* 750CX (82201 and 82202) */
410 .pvr_mask = 0xfffffff0,
411 .pvr_value = 0x00082200,
412 .cpu_name = "750CX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500413 .cpu_features = CPU_FTRS_750,
Stephen Rothwell49209602005-10-12 15:55:09 +1000414 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700415 .icache_bsize = 32,
416 .dcache_bsize = 32,
417 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100418 .cpu_setup = __setup_cpu_750cx,
419 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700420 },
421 { /* 750CXe (82214) */
422 .pvr_mask = 0xfffffff0,
423 .pvr_value = 0x00082210,
424 .cpu_name = "750CXe",
Kumar Gala10b35d92005-09-23 14:08:58 -0500425 .cpu_features = CPU_FTRS_750,
Stephen Rothwell49209602005-10-12 15:55:09 +1000426 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700427 .icache_bsize = 32,
428 .dcache_bsize = 32,
429 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100430 .cpu_setup = __setup_cpu_750cx,
431 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700432 },
Arthur Othieno7c316252005-09-03 15:55:52 -0700433 { /* 750CXe "Gekko" (83214) */
434 .pvr_mask = 0xffffffff,
435 .pvr_value = 0x00083214,
436 .cpu_name = "750CXe",
Kumar Gala10b35d92005-09-23 14:08:58 -0500437 .cpu_features = CPU_FTRS_750,
Stephen Rothwell49209602005-10-12 15:55:09 +1000438 .cpu_user_features = COMMON_USER,
Arthur Othieno7c316252005-09-03 15:55:52 -0700439 .icache_bsize = 32,
440 .dcache_bsize = 32,
441 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100442 .cpu_setup = __setup_cpu_750cx,
443 .platform = "ppc750",
Arthur Othieno7c316252005-09-03 15:55:52 -0700444 },
Arthur Othienoac1ff042005-09-03 15:55:51 -0700445 { /* 745/755 */
446 .pvr_mask = 0xfffff000,
447 .pvr_value = 0x00083000,
448 .cpu_name = "745/755",
Kumar Gala10b35d92005-09-23 14:08:58 -0500449 .cpu_features = CPU_FTRS_750,
Stephen Rothwell49209602005-10-12 15:55:09 +1000450 .cpu_user_features = COMMON_USER,
Arthur Othienoac1ff042005-09-03 15:55:51 -0700451 .icache_bsize = 32,
452 .dcache_bsize = 32,
453 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100454 .cpu_setup = __setup_cpu_750,
455 .platform = "ppc750",
Arthur Othienoac1ff042005-09-03 15:55:51 -0700456 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700457 { /* 750FX rev 1.x */
458 .pvr_mask = 0xffffff00,
459 .pvr_value = 0x70000100,
460 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500461 .cpu_features = CPU_FTRS_750FX1,
Stephen Rothwell49209602005-10-12 15:55:09 +1000462 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700463 .icache_bsize = 32,
464 .dcache_bsize = 32,
465 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100466 .cpu_setup = __setup_cpu_750,
467 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700468 },
469 { /* 750FX rev 2.0 must disable HID0[DPM] */
470 .pvr_mask = 0xffffffff,
471 .pvr_value = 0x70000200,
472 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500473 .cpu_features = CPU_FTRS_750FX2,
Stephen Rothwell49209602005-10-12 15:55:09 +1000474 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700475 .icache_bsize = 32,
476 .dcache_bsize = 32,
477 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100478 .cpu_setup = __setup_cpu_750,
479 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700480 },
481 { /* 750FX (All revs except 2.0) */
482 .pvr_mask = 0xffff0000,
483 .pvr_value = 0x70000000,
484 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500485 .cpu_features = CPU_FTRS_750FX,
Stephen Rothwell49209602005-10-12 15:55:09 +1000486 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700487 .icache_bsize = 32,
488 .dcache_bsize = 32,
489 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100490 .cpu_setup = __setup_cpu_750fx,
491 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700492 },
493 { /* 750GX */
494 .pvr_mask = 0xffff0000,
495 .pvr_value = 0x70020000,
496 .cpu_name = "750GX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500497 .cpu_features = CPU_FTRS_750GX,
Stephen Rothwell49209602005-10-12 15:55:09 +1000498 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700499 .icache_bsize = 32,
500 .dcache_bsize = 32,
501 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100502 .cpu_setup = __setup_cpu_750fx,
503 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700504 },
505 { /* 740/750 (L2CR bit need fixup for 740) */
506 .pvr_mask = 0xffff0000,
507 .pvr_value = 0x00080000,
508 .cpu_name = "740/750",
Kumar Gala10b35d92005-09-23 14:08:58 -0500509 .cpu_features = CPU_FTRS_740,
Stephen Rothwell49209602005-10-12 15:55:09 +1000510 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700511 .icache_bsize = 32,
512 .dcache_bsize = 32,
513 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100514 .cpu_setup = __setup_cpu_750,
515 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700516 },
517 { /* 7400 rev 1.1 ? (no TAU) */
518 .pvr_mask = 0xffffffff,
519 .pvr_value = 0x000c1101,
520 .cpu_name = "7400 (1.1)",
Kumar Gala10b35d92005-09-23 14:08:58 -0500521 .cpu_features = CPU_FTRS_7400_NOTAU,
Stephen Rothwell49209602005-10-12 15:55:09 +1000522 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700523 .icache_bsize = 32,
524 .dcache_bsize = 32,
525 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100526 .cpu_setup = __setup_cpu_7400,
527 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700528 },
529 { /* 7400 */
530 .pvr_mask = 0xffff0000,
531 .pvr_value = 0x000c0000,
532 .cpu_name = "7400",
Kumar Gala10b35d92005-09-23 14:08:58 -0500533 .cpu_features = CPU_FTRS_7400,
Stephen Rothwell49209602005-10-12 15:55:09 +1000534 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700535 .icache_bsize = 32,
536 .dcache_bsize = 32,
537 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100538 .cpu_setup = __setup_cpu_7400,
539 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700540 },
541 { /* 7410 */
542 .pvr_mask = 0xffff0000,
543 .pvr_value = 0x800c0000,
544 .cpu_name = "7410",
Kumar Gala10b35d92005-09-23 14:08:58 -0500545 .cpu_features = CPU_FTRS_7400,
Stephen Rothwell49209602005-10-12 15:55:09 +1000546 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700547 .icache_bsize = 32,
548 .dcache_bsize = 32,
549 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100550 .cpu_setup = __setup_cpu_7410,
551 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700552 },
553 { /* 7450 2.0 - no doze/nap */
554 .pvr_mask = 0xffffffff,
555 .pvr_value = 0x80000200,
556 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500557 .cpu_features = CPU_FTRS_7450_20,
Stephen Rothwell49209602005-10-12 15:55:09 +1000558 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700559 .icache_bsize = 32,
560 .dcache_bsize = 32,
561 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600562 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600563 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000564 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100565 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700566 },
567 { /* 7450 2.1 */
568 .pvr_mask = 0xffffffff,
569 .pvr_value = 0x80000201,
570 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500571 .cpu_features = CPU_FTRS_7450_21,
Stephen Rothwell49209602005-10-12 15:55:09 +1000572 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700573 .icache_bsize = 32,
574 .dcache_bsize = 32,
575 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600576 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600577 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000578 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100579 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700580 },
581 { /* 7450 2.3 and newer */
582 .pvr_mask = 0xffff0000,
583 .pvr_value = 0x80000000,
584 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500585 .cpu_features = CPU_FTRS_7450_23,
Stephen Rothwell49209602005-10-12 15:55:09 +1000586 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700587 .icache_bsize = 32,
588 .dcache_bsize = 32,
589 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600590 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600591 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000592 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100593 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700594 },
595 { /* 7455 rev 1.x */
596 .pvr_mask = 0xffffff00,
597 .pvr_value = 0x80010100,
598 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500599 .cpu_features = CPU_FTRS_7455_1,
Stephen Rothwell49209602005-10-12 15:55:09 +1000600 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700601 .icache_bsize = 32,
602 .dcache_bsize = 32,
603 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600604 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600605 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000606 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100607 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700608 },
609 { /* 7455 rev 2.0 */
610 .pvr_mask = 0xffffffff,
611 .pvr_value = 0x80010200,
612 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500613 .cpu_features = CPU_FTRS_7455_20,
Stephen Rothwell49209602005-10-12 15:55:09 +1000614 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700615 .icache_bsize = 32,
616 .dcache_bsize = 32,
617 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600618 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600619 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000620 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100621 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700622 },
623 { /* 7455 others */
624 .pvr_mask = 0xffff0000,
625 .pvr_value = 0x80010000,
626 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500627 .cpu_features = CPU_FTRS_7455,
Stephen Rothwell49209602005-10-12 15:55:09 +1000628 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700629 .icache_bsize = 32,
630 .dcache_bsize = 32,
631 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600632 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600633 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000634 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100635 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700636 },
637 { /* 7447/7457 Rev 1.0 */
638 .pvr_mask = 0xffffffff,
639 .pvr_value = 0x80020100,
640 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500641 .cpu_features = CPU_FTRS_7447_10,
Stephen Rothwell49209602005-10-12 15:55:09 +1000642 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700643 .icache_bsize = 32,
644 .dcache_bsize = 32,
645 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600646 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600647 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000648 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100649 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700650 },
651 { /* 7447/7457 Rev 1.1 */
652 .pvr_mask = 0xffffffff,
653 .pvr_value = 0x80020101,
654 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500655 .cpu_features = CPU_FTRS_7447_10,
Stephen Rothwell49209602005-10-12 15:55:09 +1000656 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
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.2 and later */
666 .pvr_mask = 0xffff0000,
667 .pvr_value = 0x80020000,
668 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500669 .cpu_features = CPU_FTRS_7447,
Stephen Rothwell49209602005-10-12 15:55:09 +1000670 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700671 .icache_bsize = 32,
672 .dcache_bsize = 32,
673 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600674 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600675 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000676 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100677 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700678 },
679 { /* 7447A */
680 .pvr_mask = 0xffff0000,
681 .pvr_value = 0x80030000,
682 .cpu_name = "7447A",
Kumar Gala10b35d92005-09-23 14:08:58 -0500683 .cpu_features = CPU_FTRS_7447A,
Stephen Rothwell49209602005-10-12 15:55:09 +1000684 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700685 .icache_bsize = 32,
686 .dcache_bsize = 32,
687 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600688 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600689 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000690 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100691 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700692 },
Kumar Galabbde6302005-09-03 15:55:55 -0700693 { /* 7448 */
694 .pvr_mask = 0xffff0000,
695 .pvr_value = 0x80040000,
696 .cpu_name = "7448",
Kumar Gala10b35d92005-09-23 14:08:58 -0500697 .cpu_features = CPU_FTRS_7447A,
Stephen Rothwell49209602005-10-12 15:55:09 +1000698 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Kumar Galabbde6302005-09-03 15:55:55 -0700699 .icache_bsize = 32,
700 .dcache_bsize = 32,
701 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600702 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600703 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000704 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100705 .platform = "ppc7450",
Kumar Galabbde6302005-09-03 15:55:55 -0700706 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700707 { /* 82xx (8240, 8245, 8260 are all 603e cores) */
708 .pvr_mask = 0x7fff0000,
709 .pvr_value = 0x00810000,
710 .cpu_name = "82xx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500711 .cpu_features = CPU_FTRS_82XX,
Stephen Rothwell49209602005-10-12 15:55:09 +1000712 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700713 .icache_bsize = 32,
714 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100715 .cpu_setup = __setup_cpu_603,
716 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700717 },
718 { /* All G2_LE (603e core, plus some) have the same pvr */
719 .pvr_mask = 0x7fff0000,
720 .pvr_value = 0x00820000,
721 .cpu_name = "G2_LE",
Kumar Gala10b35d92005-09-23 14:08:58 -0500722 .cpu_features = CPU_FTRS_G2_LE,
Stephen Rothwell49209602005-10-12 15:55:09 +1000723 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700724 .icache_bsize = 32,
725 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100726 .cpu_setup = __setup_cpu_603,
727 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700728 },
729 { /* e300 (a 603e core, plus some) on 83xx */
730 .pvr_mask = 0x7fff0000,
731 .pvr_value = 0x00830000,
732 .cpu_name = "e300",
Kumar Gala10b35d92005-09-23 14:08:58 -0500733 .cpu_features = CPU_FTRS_E300,
Stephen Rothwell49209602005-10-12 15:55:09 +1000734 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700735 .icache_bsize = 32,
736 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100737 .cpu_setup = __setup_cpu_603,
738 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700739 },
740 { /* default match, we assume split I/D cache & TB (non-601)... */
741 .pvr_mask = 0x00000000,
742 .pvr_value = 0x00000000,
743 .cpu_name = "(generic PPC)",
Kumar Gala10b35d92005-09-23 14:08:58 -0500744 .cpu_features = CPU_FTRS_CLASSIC32,
Stephen Rothwell49209602005-10-12 15:55:09 +1000745 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700746 .icache_bsize = 32,
747 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100748 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700749 },
750#endif /* CLASSIC_PPC */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700751#ifdef CONFIG_8xx
752 { /* 8xx */
753 .pvr_mask = 0xffff0000,
754 .pvr_value = 0x00500000,
755 .cpu_name = "8xx",
756 /* CPU_FTR_MAYBE_CAN_DOZE is possible,
757 * if the 8xx code is there.... */
Kumar Gala10b35d92005-09-23 14:08:58 -0500758 .cpu_features = CPU_FTRS_8XX,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700759 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
760 .icache_bsize = 16,
761 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100762 .platform = "ppc823",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700763 },
764#endif /* CONFIG_8xx */
765#ifdef CONFIG_40x
766 { /* 403GC */
767 .pvr_mask = 0xffffff00,
768 .pvr_value = 0x00200200,
769 .cpu_name = "403GC",
Kumar Gala10b35d92005-09-23 14:08:58 -0500770 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700771 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
772 .icache_bsize = 16,
773 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100774 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700775 },
776 { /* 403GCX */
777 .pvr_mask = 0xffffff00,
778 .pvr_value = 0x00201400,
779 .cpu_name = "403GCX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500780 .cpu_features = CPU_FTRS_40X,
Paul Mackerras98599012005-10-22 16:51:34 +1000781 .cpu_user_features = PPC_FEATURE_32 |
782 PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700783 .icache_bsize = 16,
784 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100785 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700786 },
787 { /* 403G ?? */
788 .pvr_mask = 0xffff0000,
789 .pvr_value = 0x00200000,
790 .cpu_name = "403G ??",
Kumar Gala10b35d92005-09-23 14:08:58 -0500791 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700792 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
793 .icache_bsize = 16,
794 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100795 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700796 },
797 { /* 405GP */
798 .pvr_mask = 0xffff0000,
799 .pvr_value = 0x40110000,
800 .cpu_name = "405GP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500801 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700802 .cpu_user_features = PPC_FEATURE_32 |
803 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
804 .icache_bsize = 32,
805 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100806 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700807 },
808 { /* STB 03xxx */
809 .pvr_mask = 0xffff0000,
810 .pvr_value = 0x40130000,
811 .cpu_name = "STB03xxx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500812 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700813 .cpu_user_features = PPC_FEATURE_32 |
814 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
815 .icache_bsize = 32,
816 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100817 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700818 },
819 { /* STB 04xxx */
820 .pvr_mask = 0xffff0000,
821 .pvr_value = 0x41810000,
822 .cpu_name = "STB04xxx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500823 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700824 .cpu_user_features = PPC_FEATURE_32 |
825 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
826 .icache_bsize = 32,
827 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100828 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700829 },
830 { /* NP405L */
831 .pvr_mask = 0xffff0000,
832 .pvr_value = 0x41610000,
833 .cpu_name = "NP405L",
Kumar Gala10b35d92005-09-23 14:08:58 -0500834 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700835 .cpu_user_features = PPC_FEATURE_32 |
836 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
837 .icache_bsize = 32,
838 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100839 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700840 },
841 { /* NP4GS3 */
842 .pvr_mask = 0xffff0000,
843 .pvr_value = 0x40B10000,
844 .cpu_name = "NP4GS3",
Kumar Gala10b35d92005-09-23 14:08:58 -0500845 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700846 .cpu_user_features = PPC_FEATURE_32 |
847 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
848 .icache_bsize = 32,
849 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100850 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700851 },
852 { /* NP405H */
853 .pvr_mask = 0xffff0000,
854 .pvr_value = 0x41410000,
855 .cpu_name = "NP405H",
Kumar Gala10b35d92005-09-23 14:08:58 -0500856 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700857 .cpu_user_features = PPC_FEATURE_32 |
858 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
859 .icache_bsize = 32,
860 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100861 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700862 },
863 { /* 405GPr */
864 .pvr_mask = 0xffff0000,
865 .pvr_value = 0x50910000,
866 .cpu_name = "405GPr",
Kumar Gala10b35d92005-09-23 14:08:58 -0500867 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700868 .cpu_user_features = PPC_FEATURE_32 |
869 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
870 .icache_bsize = 32,
871 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100872 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700873 },
874 { /* STBx25xx */
875 .pvr_mask = 0xffff0000,
876 .pvr_value = 0x51510000,
877 .cpu_name = "STBx25xx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500878 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700879 .cpu_user_features = PPC_FEATURE_32 |
880 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
881 .icache_bsize = 32,
882 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100883 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700884 },
885 { /* 405LP */
886 .pvr_mask = 0xffff0000,
887 .pvr_value = 0x41F10000,
888 .cpu_name = "405LP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500889 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700890 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
891 .icache_bsize = 32,
892 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100893 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700894 },
895 { /* Xilinx Virtex-II Pro */
Grant C. Likely72646c72006-01-19 01:13:20 -0700896 .pvr_mask = 0xfffff000,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700897 .pvr_value = 0x20010000,
898 .cpu_name = "Virtex-II Pro",
Kumar Gala10b35d92005-09-23 14:08:58 -0500899 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700900 .cpu_user_features = PPC_FEATURE_32 |
901 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
902 .icache_bsize = 32,
903 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100904 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700905 },
Grant C. Likely72646c72006-01-19 01:13:20 -0700906 { /* Xilinx Virtex-4 FX */
907 .pvr_mask = 0xfffff000,
908 .pvr_value = 0x20011000,
909 .cpu_name = "Virtex-4 FX",
910 .cpu_features = CPU_FTRS_40X,
911 .cpu_user_features = PPC_FEATURE_32 |
912 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
913 .icache_bsize = 32,
914 .dcache_bsize = 32,
915 },
Eugene Suroveginad95d602005-06-07 13:22:09 -0700916 { /* 405EP */
917 .pvr_mask = 0xffff0000,
918 .pvr_value = 0x51210000,
919 .cpu_name = "405EP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500920 .cpu_features = CPU_FTRS_40X,
Eugene Suroveginad95d602005-06-07 13:22:09 -0700921 .cpu_user_features = PPC_FEATURE_32 |
922 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
923 .icache_bsize = 32,
924 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100925 .platform = "ppc405",
Eugene Suroveginad95d602005-06-07 13:22:09 -0700926 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700927
928#endif /* CONFIG_40x */
929#ifdef CONFIG_44x
Matt Porterc9cf73a2005-07-31 22:34:52 -0700930 {
931 .pvr_mask = 0xf0000fff,
932 .pvr_value = 0x40000850,
933 .cpu_name = "440EP Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -0500934 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100935 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Matt Porterc9cf73a2005-07-31 22:34:52 -0700936 .icache_bsize = 32,
937 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100938 .platform = "ppc440",
Matt Porterc9cf73a2005-07-31 22:34:52 -0700939 },
940 {
941 .pvr_mask = 0xf0000fff,
942 .pvr_value = 0x400008d3,
943 .cpu_name = "440EP Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -0500944 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100945 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Matt Porterc9cf73a2005-07-31 22:34:52 -0700946 .icache_bsize = 32,
947 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100948 .platform = "ppc440",
Matt Porterc9cf73a2005-07-31 22:34:52 -0700949 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000950 { /* 440GP Rev. B */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700951 .pvr_mask = 0xf0000fff,
952 .pvr_value = 0x40000440,
953 .cpu_name = "440GP Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -0500954 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100955 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700956 .icache_bsize = 32,
957 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100958 .platform = "ppc440gp",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700959 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000960 { /* 440GP Rev. C */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700961 .pvr_mask = 0xf0000fff,
962 .pvr_value = 0x40000481,
963 .cpu_name = "440GP Rev. C",
Kumar Gala10b35d92005-09-23 14:08:58 -0500964 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100965 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700966 .icache_bsize = 32,
967 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100968 .platform = "ppc440gp",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700969 },
970 { /* 440GX Rev. A */
971 .pvr_mask = 0xf0000fff,
972 .pvr_value = 0x50000850,
973 .cpu_name = "440GX Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -0500974 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100975 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700976 .icache_bsize = 32,
977 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100978 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700979 },
980 { /* 440GX Rev. B */
981 .pvr_mask = 0xf0000fff,
982 .pvr_value = 0x50000851,
983 .cpu_name = "440GX Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -0500984 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100985 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700986 .icache_bsize = 32,
987 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100988 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700989 },
990 { /* 440GX Rev. C */
991 .pvr_mask = 0xf0000fff,
992 .pvr_value = 0x50000892,
993 .cpu_name = "440GX Rev. C",
Kumar Gala10b35d92005-09-23 14:08:58 -0500994 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100995 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700996 .icache_bsize = 32,
997 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100998 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700999 },
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001000 { /* 440GX Rev. F */
1001 .pvr_mask = 0xf0000fff,
1002 .pvr_value = 0x50000894,
1003 .cpu_name = "440GX Rev. F",
Kumar Gala10b35d92005-09-23 14:08:58 -05001004 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001005 .cpu_user_features = COMMON_USER_BOOKE,
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001006 .icache_bsize = 32,
1007 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001008 .platform = "ppc440",
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001009 },
Matt Porter656de7e2005-09-03 15:55:42 -07001010 { /* 440SP Rev. A */
1011 .pvr_mask = 0xff000fff,
1012 .pvr_value = 0x53000891,
1013 .cpu_name = "440SP Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -05001014 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001015 .cpu_user_features = COMMON_USER_BOOKE,
Matt Porter656de7e2005-09-03 15:55:42 -07001016 .icache_bsize = 32,
1017 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001018 .platform = "ppc440",
Matt Porter656de7e2005-09-03 15:55:42 -07001019 },
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001020 { /* 440SPe Rev. A */
1021 .pvr_mask = 0xff000fff,
1022 .pvr_value = 0x53000890,
1023 .cpu_name = "440SPe Rev. A",
1024 .cpu_features = CPU_FTR_SPLIT_ID_CACHE |
1025 CPU_FTR_USE_TB,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001026 .cpu_user_features = COMMON_USER_BOOKE,
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001027 .icache_bsize = 32,
1028 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001029 .platform = "ppc440",
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001030 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001031#endif /* CONFIG_44x */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001032#ifdef CONFIG_FSL_BOOKE
Stephen Rothwell49209602005-10-12 15:55:09 +10001033 { /* e200z5 */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001034 .pvr_mask = 0xfff00000,
1035 .pvr_value = 0x81000000,
1036 .cpu_name = "e200z5",
1037 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001038 .cpu_features = CPU_FTRS_E200,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001039 .cpu_user_features = COMMON_USER_BOOKE |
1040 PPC_FEATURE_HAS_EFP_SINGLE |
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001041 PPC_FEATURE_UNIFIED_CACHE,
1042 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001043 .platform = "ppc5554",
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001044 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001045 { /* e200z6 */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001046 .pvr_mask = 0xfff00000,
1047 .pvr_value = 0x81100000,
1048 .cpu_name = "e200z6",
1049 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001050 .cpu_features = CPU_FTRS_E200,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001051 .cpu_user_features = COMMON_USER_BOOKE |
1052 PPC_FEATURE_SPE_COMP |
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001053 PPC_FEATURE_HAS_EFP_SINGLE |
1054 PPC_FEATURE_UNIFIED_CACHE,
1055 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001056 .platform = "ppc5554",
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001057 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001058 { /* e500 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001059 .pvr_mask = 0xffff0000,
1060 .pvr_value = 0x80200000,
1061 .cpu_name = "e500",
1062 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001063 .cpu_features = CPU_FTRS_E500,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001064 .cpu_user_features = COMMON_USER_BOOKE |
1065 PPC_FEATURE_SPE_COMP |
Linus Torvalds1da177e2005-04-16 15:20:36 -07001066 PPC_FEATURE_HAS_EFP_SINGLE,
1067 .icache_bsize = 32,
1068 .dcache_bsize = 32,
1069 .num_pmcs = 4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001070 .oprofile_cpu_type = "ppc/e500",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001071 .oprofile_type = PPC_OPROFILE_BOOKE,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001072 .platform = "ppc8540",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001073 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001074 { /* e500v2 */
Kumar Gala5b37b702005-06-21 17:15:18 -07001075 .pvr_mask = 0xffff0000,
1076 .pvr_value = 0x80210000,
1077 .cpu_name = "e500v2",
1078 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001079 .cpu_features = CPU_FTRS_E500_2,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001080 .cpu_user_features = COMMON_USER_BOOKE |
1081 PPC_FEATURE_SPE_COMP |
1082 PPC_FEATURE_HAS_EFP_SINGLE |
1083 PPC_FEATURE_HAS_EFP_DOUBLE,
Kumar Gala5b37b702005-06-21 17:15:18 -07001084 .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 = "ppc8548",
Kumar Gala5b37b702005-06-21 17:15:18 -07001090 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001091#endif
1092#if !CLASSIC_PPC
1093 { /* default match */
1094 .pvr_mask = 0x00000000,
1095 .pvr_value = 0x00000000,
1096 .cpu_name = "(generic PPC)",
Kumar Gala10b35d92005-09-23 14:08:58 -05001097 .cpu_features = CPU_FTRS_GENERIC_32,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001098 .cpu_user_features = PPC_FEATURE_32,
1099 .icache_bsize = 32,
1100 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001101 .platform = "powerpc",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001102 }
1103#endif /* !CLASSIC_PPC */
Stephen Rothwell49209602005-10-12 15:55:09 +10001104#endif /* CONFIG_PPC32 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001105};