blob: 3f7182db9ed50cbafcc2992c0bb64fbb66a836e1 [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 */
33#ifdef CONFIG_PPC64
34extern void __setup_cpu_power3(unsigned long offset, struct cpu_spec* spec);
35extern void __setup_cpu_power4(unsigned long offset, struct cpu_spec* spec);
36extern void __setup_cpu_be(unsigned long offset, struct cpu_spec* spec);
37#else
Kumar Gala400d2212005-09-27 15:13:12 -050038extern void __setup_cpu_603(unsigned long offset, struct cpu_spec* spec);
39extern void __setup_cpu_604(unsigned long offset, struct cpu_spec* spec);
40extern void __setup_cpu_750(unsigned long offset, struct cpu_spec* spec);
41extern void __setup_cpu_750cx(unsigned long offset, struct cpu_spec* spec);
42extern void __setup_cpu_750fx(unsigned long offset, struct cpu_spec* spec);
43extern void __setup_cpu_7400(unsigned long offset, struct cpu_spec* spec);
44extern void __setup_cpu_7410(unsigned long offset, struct cpu_spec* spec);
45extern void __setup_cpu_745x(unsigned long offset, struct cpu_spec* spec);
Stephen Rothwell49209602005-10-12 15:55:09 +100046#endif /* CONFIG_PPC32 */
Kumar Gala400d2212005-09-27 15:13:12 -050047extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec);
Linus Torvalds1da177e2005-04-16 15:20:36 -070048
Linus Torvalds1da177e2005-04-16 15:20:36 -070049/* This table only contains "desktop" CPUs, it need to be filled with embedded
50 * ones as well...
51 */
Stephen Rothwell49209602005-10-12 15:55:09 +100052#define COMMON_USER (PPC_FEATURE_32 | PPC_FEATURE_HAS_FPU | \
53 PPC_FEATURE_HAS_MMU)
54#define COMMON_USER_PPC64 (COMMON_USER | PPC_FEATURE_64)
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +110055#define COMMON_USER_POWER4 (COMMON_USER_PPC64 | PPC_FEATURE_POWER4)
Benjamin Herrenschmidtaa5cb022006-03-01 15:07:07 +110056#define COMMON_USER_POWER5 (COMMON_USER_PPC64 | PPC_FEATURE_POWER5 |\
57 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
58#define COMMON_USER_POWER5_PLUS (COMMON_USER_PPC64 | PPC_FEATURE_POWER5_PLUS|\
59 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
Anton Blanchard03054d52006-04-29 09:51:06 +100060#define COMMON_USER_POWER6 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_05 |\
61 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
Paul Mackerras80f15dc2006-01-14 10:11:39 +110062#define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \
63 PPC_FEATURE_BOOKE)
Linus Torvalds1da177e2005-04-16 15:20:36 -070064
Linus Torvalds1da177e2005-04-16 15:20:36 -070065/* We only set the spe features if the kernel was compiled with
66 * spe support
67 */
68#ifdef CONFIG_SPE
Stephen Rothwell49209602005-10-12 15:55:09 +100069#define PPC_FEATURE_SPE_COMP PPC_FEATURE_HAS_SPE
Linus Torvalds1da177e2005-04-16 15:20:36 -070070#else
Stephen Rothwell49209602005-10-12 15:55:09 +100071#define PPC_FEATURE_SPE_COMP 0
Linus Torvalds1da177e2005-04-16 15:20:36 -070072#endif
73
Linus Torvalds1da177e2005-04-16 15:20:36 -070074struct cpu_spec cpu_specs[] = {
Stephen Rothwell49209602005-10-12 15:55:09 +100075#ifdef CONFIG_PPC64
76 { /* Power3 */
77 .pvr_mask = 0xffff0000,
78 .pvr_value = 0x00400000,
79 .cpu_name = "POWER3 (630)",
80 .cpu_features = CPU_FTRS_POWER3,
81 .cpu_user_features = COMMON_USER_PPC64,
82 .icache_bsize = 128,
83 .dcache_bsize = 128,
84 .num_pmcs = 8,
85 .cpu_setup = __setup_cpu_power3,
Stephen Rothwell49209602005-10-12 15:55:09 +100086 .oprofile_cpu_type = "ppc64/power3",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +000087 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +110088 .platform = "power3",
Stephen Rothwell49209602005-10-12 15:55:09 +100089 },
90 { /* Power3+ */
91 .pvr_mask = 0xffff0000,
92 .pvr_value = 0x00410000,
93 .cpu_name = "POWER3 (630+)",
94 .cpu_features = CPU_FTRS_POWER3,
95 .cpu_user_features = COMMON_USER_PPC64,
96 .icache_bsize = 128,
97 .dcache_bsize = 128,
98 .num_pmcs = 8,
99 .cpu_setup = __setup_cpu_power3,
Stephen Rothwell49209602005-10-12 15:55:09 +1000100 .oprofile_cpu_type = "ppc64/power3",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000101 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100102 .platform = "power3",
Stephen Rothwell49209602005-10-12 15:55:09 +1000103 },
104 { /* Northstar */
105 .pvr_mask = 0xffff0000,
106 .pvr_value = 0x00330000,
107 .cpu_name = "RS64-II (northstar)",
108 .cpu_features = CPU_FTRS_RS64,
109 .cpu_user_features = COMMON_USER_PPC64,
110 .icache_bsize = 128,
111 .dcache_bsize = 128,
112 .num_pmcs = 8,
113 .cpu_setup = __setup_cpu_power3,
Stephen Rothwell49209602005-10-12 15:55:09 +1000114 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000115 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100116 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000117 },
118 { /* Pulsar */
119 .pvr_mask = 0xffff0000,
120 .pvr_value = 0x00340000,
121 .cpu_name = "RS64-III (pulsar)",
122 .cpu_features = CPU_FTRS_RS64,
123 .cpu_user_features = COMMON_USER_PPC64,
124 .icache_bsize = 128,
125 .dcache_bsize = 128,
126 .num_pmcs = 8,
127 .cpu_setup = __setup_cpu_power3,
Stephen Rothwell49209602005-10-12 15:55:09 +1000128 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000129 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100130 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000131 },
132 { /* I-star */
133 .pvr_mask = 0xffff0000,
134 .pvr_value = 0x00360000,
135 .cpu_name = "RS64-III (icestar)",
136 .cpu_features = CPU_FTRS_RS64,
137 .cpu_user_features = COMMON_USER_PPC64,
138 .icache_bsize = 128,
139 .dcache_bsize = 128,
140 .num_pmcs = 8,
141 .cpu_setup = __setup_cpu_power3,
Stephen Rothwell49209602005-10-12 15:55:09 +1000142 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000143 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100144 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000145 },
146 { /* S-star */
147 .pvr_mask = 0xffff0000,
148 .pvr_value = 0x00370000,
149 .cpu_name = "RS64-IV (sstar)",
150 .cpu_features = CPU_FTRS_RS64,
151 .cpu_user_features = COMMON_USER_PPC64,
152 .icache_bsize = 128,
153 .dcache_bsize = 128,
154 .num_pmcs = 8,
155 .cpu_setup = __setup_cpu_power3,
Stephen Rothwell49209602005-10-12 15:55:09 +1000156 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000157 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100158 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000159 },
160 { /* Power4 */
161 .pvr_mask = 0xffff0000,
162 .pvr_value = 0x00350000,
163 .cpu_name = "POWER4 (gp)",
164 .cpu_features = CPU_FTRS_POWER4,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100165 .cpu_user_features = COMMON_USER_POWER4,
Stephen Rothwell49209602005-10-12 15:55:09 +1000166 .icache_bsize = 128,
167 .dcache_bsize = 128,
168 .num_pmcs = 8,
169 .cpu_setup = __setup_cpu_power4,
Stephen Rothwell49209602005-10-12 15:55:09 +1000170 .oprofile_cpu_type = "ppc64/power4",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000171 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100172 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000173 },
174 { /* Power4+ */
175 .pvr_mask = 0xffff0000,
176 .pvr_value = 0x00380000,
177 .cpu_name = "POWER4+ (gq)",
178 .cpu_features = CPU_FTRS_POWER4,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100179 .cpu_user_features = COMMON_USER_POWER4,
Stephen Rothwell49209602005-10-12 15:55:09 +1000180 .icache_bsize = 128,
181 .dcache_bsize = 128,
182 .num_pmcs = 8,
183 .cpu_setup = __setup_cpu_power4,
Stephen Rothwell49209602005-10-12 15:55:09 +1000184 .oprofile_cpu_type = "ppc64/power4",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000185 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100186 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000187 },
188 { /* PPC970 */
189 .pvr_mask = 0xffff0000,
190 .pvr_value = 0x00390000,
191 .cpu_name = "PPC970",
192 .cpu_features = CPU_FTRS_PPC970,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100193 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000194 PPC_FEATURE_HAS_ALTIVEC_COMP,
195 .icache_bsize = 128,
196 .dcache_bsize = 128,
197 .num_pmcs = 8,
198 .cpu_setup = __setup_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000199 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000200 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100201 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000202 },
203#endif /* CONFIG_PPC64 */
204#if defined(CONFIG_PPC64) || defined(CONFIG_POWER4)
205 { /* PPC970FX */
206 .pvr_mask = 0xffff0000,
207 .pvr_value = 0x003c0000,
208 .cpu_name = "PPC970FX",
209#ifdef CONFIG_PPC32
210 .cpu_features = CPU_FTRS_970_32,
211#else
212 .cpu_features = CPU_FTRS_PPC970,
213#endif
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100214 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000215 PPC_FEATURE_HAS_ALTIVEC_COMP,
216 .icache_bsize = 128,
217 .dcache_bsize = 128,
218 .num_pmcs = 8,
219 .cpu_setup = __setup_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000220 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000221 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100222 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000223 },
224#endif /* defined(CONFIG_PPC64) || defined(CONFIG_POWER4) */
225#ifdef CONFIG_PPC64
226 { /* PPC970MP */
227 .pvr_mask = 0xffff0000,
228 .pvr_value = 0x00440000,
229 .cpu_name = "PPC970MP",
230 .cpu_features = CPU_FTRS_PPC970,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100231 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000232 PPC_FEATURE_HAS_ALTIVEC_COMP,
233 .icache_bsize = 128,
234 .dcache_bsize = 128,
235 .cpu_setup = __setup_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000236 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000237 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100238 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000239 },
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100240 { /* Power5 GR */
Stephen Rothwell49209602005-10-12 15:55:09 +1000241 .pvr_mask = 0xffff0000,
242 .pvr_value = 0x003a0000,
243 .cpu_name = "POWER5 (gr)",
244 .cpu_features = CPU_FTRS_POWER5,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100245 .cpu_user_features = COMMON_USER_POWER5,
Stephen Rothwell49209602005-10-12 15:55:09 +1000246 .icache_bsize = 128,
247 .dcache_bsize = 128,
248 .num_pmcs = 6,
249 .cpu_setup = __setup_cpu_power4,
Stephen Rothwell49209602005-10-12 15:55:09 +1000250 .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 },
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100254 { /* Power5 GS */
Stephen Rothwell49209602005-10-12 15:55:09 +1000255 .pvr_mask = 0xffff0000,
256 .pvr_value = 0x003b0000,
Anton Blanchard834608f2006-01-09 15:42:30 +1100257 .cpu_name = "POWER5+ (gs)",
Stephen Rothwell49209602005-10-12 15:55:09 +1000258 .cpu_features = CPU_FTRS_POWER5,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100259 .cpu_user_features = COMMON_USER_POWER5_PLUS,
Stephen Rothwell49209602005-10-12 15:55:09 +1000260 .icache_bsize = 128,
261 .dcache_bsize = 128,
262 .num_pmcs = 6,
263 .cpu_setup = __setup_cpu_power4,
Anton Blanchard834608f2006-01-09 15:42:30 +1100264 .oprofile_cpu_type = "ppc64/power5+",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000265 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100266 .platform = "power5+",
Stephen Rothwell49209602005-10-12 15:55:09 +1000267 },
Anton Blanchard03054d52006-04-29 09:51:06 +1000268 { /* Power6 */
269 .pvr_mask = 0xffff0000,
270 .pvr_value = 0x003e0000,
271 .cpu_name = "POWER6",
272 .cpu_features = CPU_FTRS_POWER6,
273 .cpu_user_features = COMMON_USER_POWER6,
274 .icache_bsize = 128,
275 .dcache_bsize = 128,
276 .num_pmcs = 6,
277 .cpu_setup = __setup_cpu_power4,
278 .oprofile_cpu_type = "ppc64/power6",
279 .oprofile_type = PPC_OPROFILE_POWER4,
280 .platform = "power6",
281 },
Arnd Bergmannc902be72006-01-04 19:55:53 +0000282 { /* Cell Broadband Engine */
Stephen Rothwell49209602005-10-12 15:55:09 +1000283 .pvr_mask = 0xffff0000,
284 .pvr_value = 0x00700000,
285 .cpu_name = "Cell Broadband Engine",
286 .cpu_features = CPU_FTRS_CELL,
287 .cpu_user_features = COMMON_USER_PPC64 |
Benjamin Herrenschmidtaa5cb022006-03-01 15:07:07 +1100288 PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP |
289 PPC_FEATURE_SMT,
Stephen Rothwell49209602005-10-12 15:55:09 +1000290 .icache_bsize = 128,
291 .dcache_bsize = 128,
292 .cpu_setup = __setup_cpu_be,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100293 .platform = "ppc-cell-be",
Stephen Rothwell49209602005-10-12 15:55:09 +1000294 },
295 { /* default match */
296 .pvr_mask = 0x00000000,
297 .pvr_value = 0x00000000,
298 .cpu_name = "POWER4 (compatible)",
299 .cpu_features = CPU_FTRS_COMPATIBLE,
300 .cpu_user_features = COMMON_USER_PPC64,
301 .icache_bsize = 128,
302 .dcache_bsize = 128,
303 .num_pmcs = 6,
304 .cpu_setup = __setup_cpu_power4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100305 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000306 }
307#endif /* CONFIG_PPC64 */
308#ifdef CONFIG_PPC32
Linus Torvalds1da177e2005-04-16 15:20:36 -0700309#if CLASSIC_PPC
Stephen Rothwell49209602005-10-12 15:55:09 +1000310 { /* 601 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700311 .pvr_mask = 0xffff0000,
312 .pvr_value = 0x00010000,
313 .cpu_name = "601",
Kumar Gala10b35d92005-09-23 14:08:58 -0500314 .cpu_features = CPU_FTRS_PPC601,
Stephen Rothwell49209602005-10-12 15:55:09 +1000315 .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR |
Paul Mackerras98599012005-10-22 16:51:34 +1000316 PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700317 .icache_bsize = 32,
318 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100319 .platform = "ppc601",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700320 },
321 { /* 603 */
322 .pvr_mask = 0xffff0000,
323 .pvr_value = 0x00030000,
324 .cpu_name = "603",
Kumar Gala10b35d92005-09-23 14:08:58 -0500325 .cpu_features = CPU_FTRS_603,
Stephen Rothwell49209602005-10-12 15:55:09 +1000326 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700327 .icache_bsize = 32,
328 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100329 .cpu_setup = __setup_cpu_603,
330 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700331 },
332 { /* 603e */
333 .pvr_mask = 0xffff0000,
334 .pvr_value = 0x00060000,
335 .cpu_name = "603e",
Kumar Gala10b35d92005-09-23 14:08:58 -0500336 .cpu_features = CPU_FTRS_603,
Stephen Rothwell49209602005-10-12 15:55:09 +1000337 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700338 .icache_bsize = 32,
339 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100340 .cpu_setup = __setup_cpu_603,
341 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700342 },
343 { /* 603ev */
344 .pvr_mask = 0xffff0000,
345 .pvr_value = 0x00070000,
346 .cpu_name = "603ev",
Kumar Gala10b35d92005-09-23 14:08:58 -0500347 .cpu_features = CPU_FTRS_603,
Stephen Rothwell49209602005-10-12 15:55:09 +1000348 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700349 .icache_bsize = 32,
350 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100351 .cpu_setup = __setup_cpu_603,
352 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700353 },
354 { /* 604 */
355 .pvr_mask = 0xffff0000,
356 .pvr_value = 0x00040000,
357 .cpu_name = "604",
Kumar Gala10b35d92005-09-23 14:08:58 -0500358 .cpu_features = CPU_FTRS_604,
Stephen Rothwell49209602005-10-12 15:55:09 +1000359 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700360 .icache_bsize = 32,
361 .dcache_bsize = 32,
362 .num_pmcs = 2,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100363 .cpu_setup = __setup_cpu_604,
364 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700365 },
366 { /* 604e */
367 .pvr_mask = 0xfffff000,
368 .pvr_value = 0x00090000,
369 .cpu_name = "604e",
Kumar Gala10b35d92005-09-23 14:08:58 -0500370 .cpu_features = CPU_FTRS_604,
Stephen Rothwell49209602005-10-12 15:55:09 +1000371 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700372 .icache_bsize = 32,
373 .dcache_bsize = 32,
374 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100375 .cpu_setup = __setup_cpu_604,
376 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700377 },
378 { /* 604r */
379 .pvr_mask = 0xffff0000,
380 .pvr_value = 0x00090000,
381 .cpu_name = "604r",
Kumar Gala10b35d92005-09-23 14:08:58 -0500382 .cpu_features = CPU_FTRS_604,
Stephen Rothwell49209602005-10-12 15:55:09 +1000383 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700384 .icache_bsize = 32,
385 .dcache_bsize = 32,
386 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100387 .cpu_setup = __setup_cpu_604,
388 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700389 },
390 { /* 604ev */
391 .pvr_mask = 0xffff0000,
392 .pvr_value = 0x000a0000,
393 .cpu_name = "604ev",
Kumar Gala10b35d92005-09-23 14:08:58 -0500394 .cpu_features = CPU_FTRS_604,
Stephen Rothwell49209602005-10-12 15:55:09 +1000395 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700396 .icache_bsize = 32,
397 .dcache_bsize = 32,
398 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100399 .cpu_setup = __setup_cpu_604,
400 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700401 },
402 { /* 740/750 (0x4202, don't support TAU ?) */
403 .pvr_mask = 0xffffffff,
404 .pvr_value = 0x00084202,
405 .cpu_name = "740/750",
Kumar Gala10b35d92005-09-23 14:08:58 -0500406 .cpu_features = CPU_FTRS_740_NOTAU,
Stephen Rothwell49209602005-10-12 15:55:09 +1000407 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700408 .icache_bsize = 32,
409 .dcache_bsize = 32,
410 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100411 .cpu_setup = __setup_cpu_750,
412 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700413 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700414 { /* 750CX (80100 and 8010x?) */
415 .pvr_mask = 0xfffffff0,
416 .pvr_value = 0x00080100,
417 .cpu_name = "750CX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500418 .cpu_features = CPU_FTRS_750,
Stephen Rothwell49209602005-10-12 15:55:09 +1000419 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700420 .icache_bsize = 32,
421 .dcache_bsize = 32,
422 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100423 .cpu_setup = __setup_cpu_750cx,
424 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700425 },
426 { /* 750CX (82201 and 82202) */
427 .pvr_mask = 0xfffffff0,
428 .pvr_value = 0x00082200,
429 .cpu_name = "750CX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500430 .cpu_features = CPU_FTRS_750,
Stephen Rothwell49209602005-10-12 15:55:09 +1000431 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700432 .icache_bsize = 32,
433 .dcache_bsize = 32,
434 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100435 .cpu_setup = __setup_cpu_750cx,
436 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700437 },
438 { /* 750CXe (82214) */
439 .pvr_mask = 0xfffffff0,
440 .pvr_value = 0x00082210,
441 .cpu_name = "750CXe",
Kumar Gala10b35d92005-09-23 14:08:58 -0500442 .cpu_features = CPU_FTRS_750,
Stephen Rothwell49209602005-10-12 15:55:09 +1000443 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700444 .icache_bsize = 32,
445 .dcache_bsize = 32,
446 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100447 .cpu_setup = __setup_cpu_750cx,
448 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700449 },
Arthur Othieno7c316252005-09-03 15:55:52 -0700450 { /* 750CXe "Gekko" (83214) */
451 .pvr_mask = 0xffffffff,
452 .pvr_value = 0x00083214,
453 .cpu_name = "750CXe",
Kumar Gala10b35d92005-09-23 14:08:58 -0500454 .cpu_features = CPU_FTRS_750,
Stephen Rothwell49209602005-10-12 15:55:09 +1000455 .cpu_user_features = COMMON_USER,
Arthur Othieno7c316252005-09-03 15:55:52 -0700456 .icache_bsize = 32,
457 .dcache_bsize = 32,
458 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100459 .cpu_setup = __setup_cpu_750cx,
460 .platform = "ppc750",
Arthur Othieno7c316252005-09-03 15:55:52 -0700461 },
Arthur Othienoac1ff042005-09-03 15:55:51 -0700462 { /* 745/755 */
463 .pvr_mask = 0xfffff000,
464 .pvr_value = 0x00083000,
465 .cpu_name = "745/755",
Kumar Gala10b35d92005-09-23 14:08:58 -0500466 .cpu_features = CPU_FTRS_750,
Stephen Rothwell49209602005-10-12 15:55:09 +1000467 .cpu_user_features = COMMON_USER,
Arthur Othienoac1ff042005-09-03 15:55:51 -0700468 .icache_bsize = 32,
469 .dcache_bsize = 32,
470 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100471 .cpu_setup = __setup_cpu_750,
472 .platform = "ppc750",
Arthur Othienoac1ff042005-09-03 15:55:51 -0700473 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700474 { /* 750FX rev 1.x */
475 .pvr_mask = 0xffffff00,
476 .pvr_value = 0x70000100,
477 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500478 .cpu_features = CPU_FTRS_750FX1,
Stephen Rothwell49209602005-10-12 15:55:09 +1000479 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700480 .icache_bsize = 32,
481 .dcache_bsize = 32,
482 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100483 .cpu_setup = __setup_cpu_750,
484 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700485 },
486 { /* 750FX rev 2.0 must disable HID0[DPM] */
487 .pvr_mask = 0xffffffff,
488 .pvr_value = 0x70000200,
489 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500490 .cpu_features = CPU_FTRS_750FX2,
Stephen Rothwell49209602005-10-12 15:55:09 +1000491 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700492 .icache_bsize = 32,
493 .dcache_bsize = 32,
494 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100495 .cpu_setup = __setup_cpu_750,
496 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700497 },
498 { /* 750FX (All revs except 2.0) */
499 .pvr_mask = 0xffff0000,
500 .pvr_value = 0x70000000,
501 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500502 .cpu_features = CPU_FTRS_750FX,
Stephen Rothwell49209602005-10-12 15:55:09 +1000503 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700504 .icache_bsize = 32,
505 .dcache_bsize = 32,
506 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100507 .cpu_setup = __setup_cpu_750fx,
508 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700509 },
510 { /* 750GX */
511 .pvr_mask = 0xffff0000,
512 .pvr_value = 0x70020000,
513 .cpu_name = "750GX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500514 .cpu_features = CPU_FTRS_750GX,
Stephen Rothwell49209602005-10-12 15:55:09 +1000515 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700516 .icache_bsize = 32,
517 .dcache_bsize = 32,
518 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100519 .cpu_setup = __setup_cpu_750fx,
520 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700521 },
522 { /* 740/750 (L2CR bit need fixup for 740) */
523 .pvr_mask = 0xffff0000,
524 .pvr_value = 0x00080000,
525 .cpu_name = "740/750",
Kumar Gala10b35d92005-09-23 14:08:58 -0500526 .cpu_features = CPU_FTRS_740,
Stephen Rothwell49209602005-10-12 15:55:09 +1000527 .cpu_user_features = COMMON_USER,
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_750,
532 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700533 },
534 { /* 7400 rev 1.1 ? (no TAU) */
535 .pvr_mask = 0xffffffff,
536 .pvr_value = 0x000c1101,
537 .cpu_name = "7400 (1.1)",
Kumar Gala10b35d92005-09-23 14:08:58 -0500538 .cpu_features = CPU_FTRS_7400_NOTAU,
Stephen Rothwell49209602005-10-12 15:55:09 +1000539 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700540 .icache_bsize = 32,
541 .dcache_bsize = 32,
542 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100543 .cpu_setup = __setup_cpu_7400,
544 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700545 },
546 { /* 7400 */
547 .pvr_mask = 0xffff0000,
548 .pvr_value = 0x000c0000,
549 .cpu_name = "7400",
Kumar Gala10b35d92005-09-23 14:08:58 -0500550 .cpu_features = CPU_FTRS_7400,
Stephen Rothwell49209602005-10-12 15:55:09 +1000551 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700552 .icache_bsize = 32,
553 .dcache_bsize = 32,
554 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100555 .cpu_setup = __setup_cpu_7400,
556 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700557 },
558 { /* 7410 */
559 .pvr_mask = 0xffff0000,
560 .pvr_value = 0x800c0000,
561 .cpu_name = "7410",
Kumar Gala10b35d92005-09-23 14:08:58 -0500562 .cpu_features = CPU_FTRS_7400,
Stephen Rothwell49209602005-10-12 15:55:09 +1000563 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700564 .icache_bsize = 32,
565 .dcache_bsize = 32,
566 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100567 .cpu_setup = __setup_cpu_7410,
568 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700569 },
570 { /* 7450 2.0 - no doze/nap */
571 .pvr_mask = 0xffffffff,
572 .pvr_value = 0x80000200,
573 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500574 .cpu_features = CPU_FTRS_7450_20,
Stephen Rothwell49209602005-10-12 15:55:09 +1000575 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700576 .icache_bsize = 32,
577 .dcache_bsize = 32,
578 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600579 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600580 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000581 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100582 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700583 },
584 { /* 7450 2.1 */
585 .pvr_mask = 0xffffffff,
586 .pvr_value = 0x80000201,
587 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500588 .cpu_features = CPU_FTRS_7450_21,
Stephen Rothwell49209602005-10-12 15:55:09 +1000589 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700590 .icache_bsize = 32,
591 .dcache_bsize = 32,
592 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600593 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600594 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000595 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100596 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700597 },
598 { /* 7450 2.3 and newer */
599 .pvr_mask = 0xffff0000,
600 .pvr_value = 0x80000000,
601 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500602 .cpu_features = CPU_FTRS_7450_23,
Stephen Rothwell49209602005-10-12 15:55:09 +1000603 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700604 .icache_bsize = 32,
605 .dcache_bsize = 32,
606 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600607 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600608 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000609 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100610 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700611 },
612 { /* 7455 rev 1.x */
613 .pvr_mask = 0xffffff00,
614 .pvr_value = 0x80010100,
615 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500616 .cpu_features = CPU_FTRS_7455_1,
Stephen Rothwell49209602005-10-12 15:55:09 +1000617 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700618 .icache_bsize = 32,
619 .dcache_bsize = 32,
620 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600621 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600622 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000623 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100624 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700625 },
626 { /* 7455 rev 2.0 */
627 .pvr_mask = 0xffffffff,
628 .pvr_value = 0x80010200,
629 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500630 .cpu_features = CPU_FTRS_7455_20,
Stephen Rothwell49209602005-10-12 15:55:09 +1000631 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700632 .icache_bsize = 32,
633 .dcache_bsize = 32,
634 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600635 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600636 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000637 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100638 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700639 },
640 { /* 7455 others */
641 .pvr_mask = 0xffff0000,
642 .pvr_value = 0x80010000,
643 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500644 .cpu_features = CPU_FTRS_7455,
Stephen Rothwell49209602005-10-12 15:55:09 +1000645 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700646 .icache_bsize = 32,
647 .dcache_bsize = 32,
648 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600649 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600650 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000651 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100652 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700653 },
654 { /* 7447/7457 Rev 1.0 */
655 .pvr_mask = 0xffffffff,
656 .pvr_value = 0x80020100,
657 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500658 .cpu_features = CPU_FTRS_7447_10,
Stephen Rothwell49209602005-10-12 15:55:09 +1000659 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700660 .icache_bsize = 32,
661 .dcache_bsize = 32,
662 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600663 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600664 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000665 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100666 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700667 },
668 { /* 7447/7457 Rev 1.1 */
669 .pvr_mask = 0xffffffff,
670 .pvr_value = 0x80020101,
671 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500672 .cpu_features = CPU_FTRS_7447_10,
Stephen Rothwell49209602005-10-12 15:55:09 +1000673 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700674 .icache_bsize = 32,
675 .dcache_bsize = 32,
676 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600677 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600678 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000679 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100680 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700681 },
682 { /* 7447/7457 Rev 1.2 and later */
683 .pvr_mask = 0xffff0000,
684 .pvr_value = 0x80020000,
685 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500686 .cpu_features = CPU_FTRS_7447,
Stephen Rothwell49209602005-10-12 15:55:09 +1000687 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700688 .icache_bsize = 32,
689 .dcache_bsize = 32,
690 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600691 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600692 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000693 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100694 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700695 },
696 { /* 7447A */
697 .pvr_mask = 0xffff0000,
698 .pvr_value = 0x80030000,
699 .cpu_name = "7447A",
Kumar Gala10b35d92005-09-23 14:08:58 -0500700 .cpu_features = CPU_FTRS_7447A,
Stephen Rothwell49209602005-10-12 15:55:09 +1000701 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700702 .icache_bsize = 32,
703 .dcache_bsize = 32,
704 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600705 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600706 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000707 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100708 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700709 },
Kumar Galabbde6302005-09-03 15:55:55 -0700710 { /* 7448 */
711 .pvr_mask = 0xffff0000,
712 .pvr_value = 0x80040000,
713 .cpu_name = "7448",
Kumar Gala10b35d92005-09-23 14:08:58 -0500714 .cpu_features = CPU_FTRS_7447A,
Stephen Rothwell49209602005-10-12 15:55:09 +1000715 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
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};