blob: 10696456a4c616d0d3900ec0b6370b9a2cb41402 [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)
56#define COMMON_USER_POWER5 (COMMON_USER_PPC64 | PPC_FEATURE_POWER5)
57#define COMMON_USER_POWER5_PLUS (COMMON_USER_PPC64 | PPC_FEATURE_POWER5_PLUS)
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,
81 .cpu_setup = __setup_cpu_power3,
Stephen Rothwell49209602005-10-12 15:55:09 +100082 .oprofile_cpu_type = "ppc64/power3",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +000083 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +110084 .platform = "power3",
Stephen Rothwell49209602005-10-12 15:55:09 +100085 },
86 { /* Power3+ */
87 .pvr_mask = 0xffff0000,
88 .pvr_value = 0x00410000,
89 .cpu_name = "POWER3 (630+)",
90 .cpu_features = CPU_FTRS_POWER3,
91 .cpu_user_features = COMMON_USER_PPC64,
92 .icache_bsize = 128,
93 .dcache_bsize = 128,
94 .num_pmcs = 8,
95 .cpu_setup = __setup_cpu_power3,
Stephen Rothwell49209602005-10-12 15:55:09 +100096 .oprofile_cpu_type = "ppc64/power3",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +000097 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +110098 .platform = "power3",
Stephen Rothwell49209602005-10-12 15:55:09 +100099 },
100 { /* Northstar */
101 .pvr_mask = 0xffff0000,
102 .pvr_value = 0x00330000,
103 .cpu_name = "RS64-II (northstar)",
104 .cpu_features = CPU_FTRS_RS64,
105 .cpu_user_features = COMMON_USER_PPC64,
106 .icache_bsize = 128,
107 .dcache_bsize = 128,
108 .num_pmcs = 8,
109 .cpu_setup = __setup_cpu_power3,
Stephen Rothwell49209602005-10-12 15:55:09 +1000110 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000111 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100112 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000113 },
114 { /* Pulsar */
115 .pvr_mask = 0xffff0000,
116 .pvr_value = 0x00340000,
117 .cpu_name = "RS64-III (pulsar)",
118 .cpu_features = CPU_FTRS_RS64,
119 .cpu_user_features = COMMON_USER_PPC64,
120 .icache_bsize = 128,
121 .dcache_bsize = 128,
122 .num_pmcs = 8,
123 .cpu_setup = __setup_cpu_power3,
Stephen Rothwell49209602005-10-12 15:55:09 +1000124 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000125 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100126 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000127 },
128 { /* I-star */
129 .pvr_mask = 0xffff0000,
130 .pvr_value = 0x00360000,
131 .cpu_name = "RS64-III (icestar)",
132 .cpu_features = CPU_FTRS_RS64,
133 .cpu_user_features = COMMON_USER_PPC64,
134 .icache_bsize = 128,
135 .dcache_bsize = 128,
136 .num_pmcs = 8,
137 .cpu_setup = __setup_cpu_power3,
Stephen Rothwell49209602005-10-12 15:55:09 +1000138 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000139 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100140 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000141 },
142 { /* S-star */
143 .pvr_mask = 0xffff0000,
144 .pvr_value = 0x00370000,
145 .cpu_name = "RS64-IV (sstar)",
146 .cpu_features = CPU_FTRS_RS64,
147 .cpu_user_features = COMMON_USER_PPC64,
148 .icache_bsize = 128,
149 .dcache_bsize = 128,
150 .num_pmcs = 8,
151 .cpu_setup = __setup_cpu_power3,
Stephen Rothwell49209602005-10-12 15:55:09 +1000152 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000153 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100154 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000155 },
156 { /* Power4 */
157 .pvr_mask = 0xffff0000,
158 .pvr_value = 0x00350000,
159 .cpu_name = "POWER4 (gp)",
160 .cpu_features = CPU_FTRS_POWER4,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100161 .cpu_user_features = COMMON_USER_POWER4,
Stephen Rothwell49209602005-10-12 15:55:09 +1000162 .icache_bsize = 128,
163 .dcache_bsize = 128,
164 .num_pmcs = 8,
165 .cpu_setup = __setup_cpu_power4,
Stephen Rothwell49209602005-10-12 15:55:09 +1000166 .oprofile_cpu_type = "ppc64/power4",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000167 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100168 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000169 },
170 { /* Power4+ */
171 .pvr_mask = 0xffff0000,
172 .pvr_value = 0x00380000,
173 .cpu_name = "POWER4+ (gq)",
174 .cpu_features = CPU_FTRS_POWER4,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100175 .cpu_user_features = COMMON_USER_POWER4,
Stephen Rothwell49209602005-10-12 15:55:09 +1000176 .icache_bsize = 128,
177 .dcache_bsize = 128,
178 .num_pmcs = 8,
179 .cpu_setup = __setup_cpu_power4,
Stephen Rothwell49209602005-10-12 15:55:09 +1000180 .oprofile_cpu_type = "ppc64/power4",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000181 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100182 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000183 },
184 { /* PPC970 */
185 .pvr_mask = 0xffff0000,
186 .pvr_value = 0x00390000,
187 .cpu_name = "PPC970",
188 .cpu_features = CPU_FTRS_PPC970,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100189 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000190 PPC_FEATURE_HAS_ALTIVEC_COMP,
191 .icache_bsize = 128,
192 .dcache_bsize = 128,
193 .num_pmcs = 8,
194 .cpu_setup = __setup_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000195 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000196 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100197 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000198 },
199#endif /* CONFIG_PPC64 */
200#if defined(CONFIG_PPC64) || defined(CONFIG_POWER4)
201 { /* PPC970FX */
202 .pvr_mask = 0xffff0000,
203 .pvr_value = 0x003c0000,
204 .cpu_name = "PPC970FX",
205#ifdef CONFIG_PPC32
206 .cpu_features = CPU_FTRS_970_32,
207#else
208 .cpu_features = CPU_FTRS_PPC970,
209#endif
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100210 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000211 PPC_FEATURE_HAS_ALTIVEC_COMP,
212 .icache_bsize = 128,
213 .dcache_bsize = 128,
214 .num_pmcs = 8,
215 .cpu_setup = __setup_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000216 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000217 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100218 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000219 },
220#endif /* defined(CONFIG_PPC64) || defined(CONFIG_POWER4) */
221#ifdef CONFIG_PPC64
222 { /* PPC970MP */
223 .pvr_mask = 0xffff0000,
224 .pvr_value = 0x00440000,
225 .cpu_name = "PPC970MP",
226 .cpu_features = CPU_FTRS_PPC970,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100227 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000228 PPC_FEATURE_HAS_ALTIVEC_COMP,
229 .icache_bsize = 128,
230 .dcache_bsize = 128,
231 .cpu_setup = __setup_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000232 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000233 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100234 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000235 },
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100236 { /* Power5 GR */
Stephen Rothwell49209602005-10-12 15:55:09 +1000237 .pvr_mask = 0xffff0000,
238 .pvr_value = 0x003a0000,
239 .cpu_name = "POWER5 (gr)",
240 .cpu_features = CPU_FTRS_POWER5,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100241 .cpu_user_features = COMMON_USER_POWER5,
Stephen Rothwell49209602005-10-12 15:55:09 +1000242 .icache_bsize = 128,
243 .dcache_bsize = 128,
244 .num_pmcs = 6,
245 .cpu_setup = __setup_cpu_power4,
Stephen Rothwell49209602005-10-12 15:55:09 +1000246 .oprofile_cpu_type = "ppc64/power5",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000247 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100248 .platform = "power5",
Stephen Rothwell49209602005-10-12 15:55:09 +1000249 },
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100250 { /* Power5 GS */
Stephen Rothwell49209602005-10-12 15:55:09 +1000251 .pvr_mask = 0xffff0000,
252 .pvr_value = 0x003b0000,
Anton Blanchard834608f2006-01-09 15:42:30 +1100253 .cpu_name = "POWER5+ (gs)",
Stephen Rothwell49209602005-10-12 15:55:09 +1000254 .cpu_features = CPU_FTRS_POWER5,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100255 .cpu_user_features = COMMON_USER_POWER5_PLUS,
Stephen Rothwell49209602005-10-12 15:55:09 +1000256 .icache_bsize = 128,
257 .dcache_bsize = 128,
258 .num_pmcs = 6,
259 .cpu_setup = __setup_cpu_power4,
Anton Blanchard834608f2006-01-09 15:42:30 +1100260 .oprofile_cpu_type = "ppc64/power5+",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000261 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100262 .platform = "power5+",
Stephen Rothwell49209602005-10-12 15:55:09 +1000263 },
Arnd Bergmannc902be72006-01-04 19:55:53 +0000264 { /* Cell Broadband Engine */
Stephen Rothwell49209602005-10-12 15:55:09 +1000265 .pvr_mask = 0xffff0000,
266 .pvr_value = 0x00700000,
267 .cpu_name = "Cell Broadband Engine",
268 .cpu_features = CPU_FTRS_CELL,
269 .cpu_user_features = COMMON_USER_PPC64 |
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100270 PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP,
Stephen Rothwell49209602005-10-12 15:55:09 +1000271 .icache_bsize = 128,
272 .dcache_bsize = 128,
273 .cpu_setup = __setup_cpu_be,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100274 .platform = "ppc-cell-be",
Stephen Rothwell49209602005-10-12 15:55:09 +1000275 },
276 { /* default match */
277 .pvr_mask = 0x00000000,
278 .pvr_value = 0x00000000,
279 .cpu_name = "POWER4 (compatible)",
280 .cpu_features = CPU_FTRS_COMPATIBLE,
281 .cpu_user_features = COMMON_USER_PPC64,
282 .icache_bsize = 128,
283 .dcache_bsize = 128,
284 .num_pmcs = 6,
285 .cpu_setup = __setup_cpu_power4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100286 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000287 }
288#endif /* CONFIG_PPC64 */
289#ifdef CONFIG_PPC32
Linus Torvalds1da177e2005-04-16 15:20:36 -0700290#if CLASSIC_PPC
Stephen Rothwell49209602005-10-12 15:55:09 +1000291 { /* 601 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700292 .pvr_mask = 0xffff0000,
293 .pvr_value = 0x00010000,
294 .cpu_name = "601",
Kumar Gala10b35d92005-09-23 14:08:58 -0500295 .cpu_features = CPU_FTRS_PPC601,
Stephen Rothwell49209602005-10-12 15:55:09 +1000296 .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR |
Paul Mackerras98599012005-10-22 16:51:34 +1000297 PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700298 .icache_bsize = 32,
299 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100300 .platform = "ppc601",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700301 },
302 { /* 603 */
303 .pvr_mask = 0xffff0000,
304 .pvr_value = 0x00030000,
305 .cpu_name = "603",
Kumar Gala10b35d92005-09-23 14:08:58 -0500306 .cpu_features = CPU_FTRS_603,
Stephen Rothwell49209602005-10-12 15:55:09 +1000307 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700308 .icache_bsize = 32,
309 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100310 .cpu_setup = __setup_cpu_603,
311 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700312 },
313 { /* 603e */
314 .pvr_mask = 0xffff0000,
315 .pvr_value = 0x00060000,
316 .cpu_name = "603e",
Kumar Gala10b35d92005-09-23 14:08:58 -0500317 .cpu_features = CPU_FTRS_603,
Stephen Rothwell49209602005-10-12 15:55:09 +1000318 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700319 .icache_bsize = 32,
320 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100321 .cpu_setup = __setup_cpu_603,
322 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700323 },
324 { /* 603ev */
325 .pvr_mask = 0xffff0000,
326 .pvr_value = 0x00070000,
327 .cpu_name = "603ev",
Kumar Gala10b35d92005-09-23 14:08:58 -0500328 .cpu_features = CPU_FTRS_603,
Stephen Rothwell49209602005-10-12 15:55:09 +1000329 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700330 .icache_bsize = 32,
331 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100332 .cpu_setup = __setup_cpu_603,
333 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700334 },
335 { /* 604 */
336 .pvr_mask = 0xffff0000,
337 .pvr_value = 0x00040000,
338 .cpu_name = "604",
Kumar Gala10b35d92005-09-23 14:08:58 -0500339 .cpu_features = CPU_FTRS_604,
Stephen Rothwell49209602005-10-12 15:55:09 +1000340 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700341 .icache_bsize = 32,
342 .dcache_bsize = 32,
343 .num_pmcs = 2,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100344 .cpu_setup = __setup_cpu_604,
345 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700346 },
347 { /* 604e */
348 .pvr_mask = 0xfffff000,
349 .pvr_value = 0x00090000,
350 .cpu_name = "604e",
Kumar Gala10b35d92005-09-23 14:08:58 -0500351 .cpu_features = CPU_FTRS_604,
Stephen Rothwell49209602005-10-12 15:55:09 +1000352 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700353 .icache_bsize = 32,
354 .dcache_bsize = 32,
355 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100356 .cpu_setup = __setup_cpu_604,
357 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700358 },
359 { /* 604r */
360 .pvr_mask = 0xffff0000,
361 .pvr_value = 0x00090000,
362 .cpu_name = "604r",
Kumar Gala10b35d92005-09-23 14:08:58 -0500363 .cpu_features = CPU_FTRS_604,
Stephen Rothwell49209602005-10-12 15:55:09 +1000364 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700365 .icache_bsize = 32,
366 .dcache_bsize = 32,
367 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100368 .cpu_setup = __setup_cpu_604,
369 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700370 },
371 { /* 604ev */
372 .pvr_mask = 0xffff0000,
373 .pvr_value = 0x000a0000,
374 .cpu_name = "604ev",
Kumar Gala10b35d92005-09-23 14:08:58 -0500375 .cpu_features = CPU_FTRS_604,
Stephen Rothwell49209602005-10-12 15:55:09 +1000376 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700377 .icache_bsize = 32,
378 .dcache_bsize = 32,
379 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100380 .cpu_setup = __setup_cpu_604,
381 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700382 },
383 { /* 740/750 (0x4202, don't support TAU ?) */
384 .pvr_mask = 0xffffffff,
385 .pvr_value = 0x00084202,
386 .cpu_name = "740/750",
Kumar Gala10b35d92005-09-23 14:08:58 -0500387 .cpu_features = CPU_FTRS_740_NOTAU,
Stephen Rothwell49209602005-10-12 15:55:09 +1000388 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700389 .icache_bsize = 32,
390 .dcache_bsize = 32,
391 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100392 .cpu_setup = __setup_cpu_750,
393 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700394 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700395 { /* 750CX (80100 and 8010x?) */
396 .pvr_mask = 0xfffffff0,
397 .pvr_value = 0x00080100,
398 .cpu_name = "750CX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500399 .cpu_features = CPU_FTRS_750,
Stephen Rothwell49209602005-10-12 15:55:09 +1000400 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700401 .icache_bsize = 32,
402 .dcache_bsize = 32,
403 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100404 .cpu_setup = __setup_cpu_750cx,
405 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700406 },
407 { /* 750CX (82201 and 82202) */
408 .pvr_mask = 0xfffffff0,
409 .pvr_value = 0x00082200,
410 .cpu_name = "750CX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500411 .cpu_features = CPU_FTRS_750,
Stephen Rothwell49209602005-10-12 15:55:09 +1000412 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700413 .icache_bsize = 32,
414 .dcache_bsize = 32,
415 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100416 .cpu_setup = __setup_cpu_750cx,
417 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700418 },
419 { /* 750CXe (82214) */
420 .pvr_mask = 0xfffffff0,
421 .pvr_value = 0x00082210,
422 .cpu_name = "750CXe",
Kumar Gala10b35d92005-09-23 14:08:58 -0500423 .cpu_features = CPU_FTRS_750,
Stephen Rothwell49209602005-10-12 15:55:09 +1000424 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700425 .icache_bsize = 32,
426 .dcache_bsize = 32,
427 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100428 .cpu_setup = __setup_cpu_750cx,
429 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700430 },
Arthur Othieno7c316252005-09-03 15:55:52 -0700431 { /* 750CXe "Gekko" (83214) */
432 .pvr_mask = 0xffffffff,
433 .pvr_value = 0x00083214,
434 .cpu_name = "750CXe",
Kumar Gala10b35d92005-09-23 14:08:58 -0500435 .cpu_features = CPU_FTRS_750,
Stephen Rothwell49209602005-10-12 15:55:09 +1000436 .cpu_user_features = COMMON_USER,
Arthur Othieno7c316252005-09-03 15:55:52 -0700437 .icache_bsize = 32,
438 .dcache_bsize = 32,
439 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100440 .cpu_setup = __setup_cpu_750cx,
441 .platform = "ppc750",
Arthur Othieno7c316252005-09-03 15:55:52 -0700442 },
Arthur Othienoac1ff042005-09-03 15:55:51 -0700443 { /* 745/755 */
444 .pvr_mask = 0xfffff000,
445 .pvr_value = 0x00083000,
446 .cpu_name = "745/755",
Kumar Gala10b35d92005-09-23 14:08:58 -0500447 .cpu_features = CPU_FTRS_750,
Stephen Rothwell49209602005-10-12 15:55:09 +1000448 .cpu_user_features = COMMON_USER,
Arthur Othienoac1ff042005-09-03 15:55:51 -0700449 .icache_bsize = 32,
450 .dcache_bsize = 32,
451 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100452 .cpu_setup = __setup_cpu_750,
453 .platform = "ppc750",
Arthur Othienoac1ff042005-09-03 15:55:51 -0700454 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700455 { /* 750FX rev 1.x */
456 .pvr_mask = 0xffffff00,
457 .pvr_value = 0x70000100,
458 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500459 .cpu_features = CPU_FTRS_750FX1,
Stephen Rothwell49209602005-10-12 15:55:09 +1000460 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700461 .icache_bsize = 32,
462 .dcache_bsize = 32,
463 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100464 .cpu_setup = __setup_cpu_750,
465 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700466 },
467 { /* 750FX rev 2.0 must disable HID0[DPM] */
468 .pvr_mask = 0xffffffff,
469 .pvr_value = 0x70000200,
470 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500471 .cpu_features = CPU_FTRS_750FX2,
Stephen Rothwell49209602005-10-12 15:55:09 +1000472 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700473 .icache_bsize = 32,
474 .dcache_bsize = 32,
475 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100476 .cpu_setup = __setup_cpu_750,
477 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700478 },
479 { /* 750FX (All revs except 2.0) */
480 .pvr_mask = 0xffff0000,
481 .pvr_value = 0x70000000,
482 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500483 .cpu_features = CPU_FTRS_750FX,
Stephen Rothwell49209602005-10-12 15:55:09 +1000484 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700485 .icache_bsize = 32,
486 .dcache_bsize = 32,
487 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100488 .cpu_setup = __setup_cpu_750fx,
489 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700490 },
491 { /* 750GX */
492 .pvr_mask = 0xffff0000,
493 .pvr_value = 0x70020000,
494 .cpu_name = "750GX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500495 .cpu_features = CPU_FTRS_750GX,
Stephen Rothwell49209602005-10-12 15:55:09 +1000496 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700497 .icache_bsize = 32,
498 .dcache_bsize = 32,
499 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100500 .cpu_setup = __setup_cpu_750fx,
501 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700502 },
503 { /* 740/750 (L2CR bit need fixup for 740) */
504 .pvr_mask = 0xffff0000,
505 .pvr_value = 0x00080000,
506 .cpu_name = "740/750",
Kumar Gala10b35d92005-09-23 14:08:58 -0500507 .cpu_features = CPU_FTRS_740,
Stephen Rothwell49209602005-10-12 15:55:09 +1000508 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700509 .icache_bsize = 32,
510 .dcache_bsize = 32,
511 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100512 .cpu_setup = __setup_cpu_750,
513 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700514 },
515 { /* 7400 rev 1.1 ? (no TAU) */
516 .pvr_mask = 0xffffffff,
517 .pvr_value = 0x000c1101,
518 .cpu_name = "7400 (1.1)",
Kumar Gala10b35d92005-09-23 14:08:58 -0500519 .cpu_features = CPU_FTRS_7400_NOTAU,
Stephen Rothwell49209602005-10-12 15:55:09 +1000520 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700521 .icache_bsize = 32,
522 .dcache_bsize = 32,
523 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100524 .cpu_setup = __setup_cpu_7400,
525 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700526 },
527 { /* 7400 */
528 .pvr_mask = 0xffff0000,
529 .pvr_value = 0x000c0000,
530 .cpu_name = "7400",
Kumar Gala10b35d92005-09-23 14:08:58 -0500531 .cpu_features = CPU_FTRS_7400,
Stephen Rothwell49209602005-10-12 15:55:09 +1000532 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700533 .icache_bsize = 32,
534 .dcache_bsize = 32,
535 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100536 .cpu_setup = __setup_cpu_7400,
537 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700538 },
539 { /* 7410 */
540 .pvr_mask = 0xffff0000,
541 .pvr_value = 0x800c0000,
542 .cpu_name = "7410",
Kumar Gala10b35d92005-09-23 14:08:58 -0500543 .cpu_features = CPU_FTRS_7400,
Stephen Rothwell49209602005-10-12 15:55:09 +1000544 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700545 .icache_bsize = 32,
546 .dcache_bsize = 32,
547 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100548 .cpu_setup = __setup_cpu_7410,
549 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700550 },
551 { /* 7450 2.0 - no doze/nap */
552 .pvr_mask = 0xffffffff,
553 .pvr_value = 0x80000200,
554 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500555 .cpu_features = CPU_FTRS_7450_20,
Stephen Rothwell49209602005-10-12 15:55:09 +1000556 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700557 .icache_bsize = 32,
558 .dcache_bsize = 32,
559 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600560 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600561 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000562 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100563 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700564 },
565 { /* 7450 2.1 */
566 .pvr_mask = 0xffffffff,
567 .pvr_value = 0x80000201,
568 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500569 .cpu_features = CPU_FTRS_7450_21,
Stephen Rothwell49209602005-10-12 15:55:09 +1000570 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700571 .icache_bsize = 32,
572 .dcache_bsize = 32,
573 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600574 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600575 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000576 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100577 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700578 },
579 { /* 7450 2.3 and newer */
580 .pvr_mask = 0xffff0000,
581 .pvr_value = 0x80000000,
582 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500583 .cpu_features = CPU_FTRS_7450_23,
Stephen Rothwell49209602005-10-12 15:55:09 +1000584 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700585 .icache_bsize = 32,
586 .dcache_bsize = 32,
587 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600588 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600589 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000590 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100591 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700592 },
593 { /* 7455 rev 1.x */
594 .pvr_mask = 0xffffff00,
595 .pvr_value = 0x80010100,
596 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500597 .cpu_features = CPU_FTRS_7455_1,
Stephen Rothwell49209602005-10-12 15:55:09 +1000598 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700599 .icache_bsize = 32,
600 .dcache_bsize = 32,
601 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600602 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600603 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000604 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100605 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700606 },
607 { /* 7455 rev 2.0 */
608 .pvr_mask = 0xffffffff,
609 .pvr_value = 0x80010200,
610 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500611 .cpu_features = CPU_FTRS_7455_20,
Stephen Rothwell49209602005-10-12 15:55:09 +1000612 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700613 .icache_bsize = 32,
614 .dcache_bsize = 32,
615 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600616 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600617 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000618 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100619 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700620 },
621 { /* 7455 others */
622 .pvr_mask = 0xffff0000,
623 .pvr_value = 0x80010000,
624 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500625 .cpu_features = CPU_FTRS_7455,
Stephen Rothwell49209602005-10-12 15:55:09 +1000626 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700627 .icache_bsize = 32,
628 .dcache_bsize = 32,
629 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600630 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600631 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000632 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100633 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700634 },
635 { /* 7447/7457 Rev 1.0 */
636 .pvr_mask = 0xffffffff,
637 .pvr_value = 0x80020100,
638 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500639 .cpu_features = CPU_FTRS_7447_10,
Stephen Rothwell49209602005-10-12 15:55:09 +1000640 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700641 .icache_bsize = 32,
642 .dcache_bsize = 32,
643 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600644 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600645 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000646 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100647 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700648 },
649 { /* 7447/7457 Rev 1.1 */
650 .pvr_mask = 0xffffffff,
651 .pvr_value = 0x80020101,
652 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500653 .cpu_features = CPU_FTRS_7447_10,
Stephen Rothwell49209602005-10-12 15:55:09 +1000654 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700655 .icache_bsize = 32,
656 .dcache_bsize = 32,
657 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600658 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600659 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000660 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100661 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700662 },
663 { /* 7447/7457 Rev 1.2 and later */
664 .pvr_mask = 0xffff0000,
665 .pvr_value = 0x80020000,
666 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500667 .cpu_features = CPU_FTRS_7447,
Stephen Rothwell49209602005-10-12 15:55:09 +1000668 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700669 .icache_bsize = 32,
670 .dcache_bsize = 32,
671 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600672 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600673 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000674 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100675 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700676 },
677 { /* 7447A */
678 .pvr_mask = 0xffff0000,
679 .pvr_value = 0x80030000,
680 .cpu_name = "7447A",
Kumar Gala10b35d92005-09-23 14:08:58 -0500681 .cpu_features = CPU_FTRS_7447A,
Stephen Rothwell49209602005-10-12 15:55:09 +1000682 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700683 .icache_bsize = 32,
684 .dcache_bsize = 32,
685 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600686 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600687 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000688 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100689 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700690 },
Kumar Galabbde6302005-09-03 15:55:55 -0700691 { /* 7448 */
692 .pvr_mask = 0xffff0000,
693 .pvr_value = 0x80040000,
694 .cpu_name = "7448",
Kumar Gala10b35d92005-09-23 14:08:58 -0500695 .cpu_features = CPU_FTRS_7447A,
Stephen Rothwell49209602005-10-12 15:55:09 +1000696 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Kumar Galabbde6302005-09-03 15:55:55 -0700697 .icache_bsize = 32,
698 .dcache_bsize = 32,
699 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600700 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600701 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000702 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100703 .platform = "ppc7450",
Kumar Galabbde6302005-09-03 15:55:55 -0700704 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700705 { /* 82xx (8240, 8245, 8260 are all 603e cores) */
706 .pvr_mask = 0x7fff0000,
707 .pvr_value = 0x00810000,
708 .cpu_name = "82xx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500709 .cpu_features = CPU_FTRS_82XX,
Stephen Rothwell49209602005-10-12 15:55:09 +1000710 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700711 .icache_bsize = 32,
712 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100713 .cpu_setup = __setup_cpu_603,
714 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700715 },
716 { /* All G2_LE (603e core, plus some) have the same pvr */
717 .pvr_mask = 0x7fff0000,
718 .pvr_value = 0x00820000,
719 .cpu_name = "G2_LE",
Kumar Gala10b35d92005-09-23 14:08:58 -0500720 .cpu_features = CPU_FTRS_G2_LE,
Stephen Rothwell49209602005-10-12 15:55:09 +1000721 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700722 .icache_bsize = 32,
723 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100724 .cpu_setup = __setup_cpu_603,
725 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700726 },
727 { /* e300 (a 603e core, plus some) on 83xx */
728 .pvr_mask = 0x7fff0000,
729 .pvr_value = 0x00830000,
730 .cpu_name = "e300",
Kumar Gala10b35d92005-09-23 14:08:58 -0500731 .cpu_features = CPU_FTRS_E300,
Stephen Rothwell49209602005-10-12 15:55:09 +1000732 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700733 .icache_bsize = 32,
734 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100735 .cpu_setup = __setup_cpu_603,
736 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700737 },
738 { /* default match, we assume split I/D cache & TB (non-601)... */
739 .pvr_mask = 0x00000000,
740 .pvr_value = 0x00000000,
741 .cpu_name = "(generic PPC)",
Kumar Gala10b35d92005-09-23 14:08:58 -0500742 .cpu_features = CPU_FTRS_CLASSIC32,
Stephen Rothwell49209602005-10-12 15:55:09 +1000743 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700744 .icache_bsize = 32,
745 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100746 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700747 },
748#endif /* CLASSIC_PPC */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700749#ifdef CONFIG_8xx
750 { /* 8xx */
751 .pvr_mask = 0xffff0000,
752 .pvr_value = 0x00500000,
753 .cpu_name = "8xx",
754 /* CPU_FTR_MAYBE_CAN_DOZE is possible,
755 * if the 8xx code is there.... */
Kumar Gala10b35d92005-09-23 14:08:58 -0500756 .cpu_features = CPU_FTRS_8XX,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700757 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
758 .icache_bsize = 16,
759 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100760 .platform = "ppc823",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700761 },
762#endif /* CONFIG_8xx */
763#ifdef CONFIG_40x
764 { /* 403GC */
765 .pvr_mask = 0xffffff00,
766 .pvr_value = 0x00200200,
767 .cpu_name = "403GC",
Kumar Gala10b35d92005-09-23 14:08:58 -0500768 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700769 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
770 .icache_bsize = 16,
771 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100772 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700773 },
774 { /* 403GCX */
775 .pvr_mask = 0xffffff00,
776 .pvr_value = 0x00201400,
777 .cpu_name = "403GCX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500778 .cpu_features = CPU_FTRS_40X,
Paul Mackerras98599012005-10-22 16:51:34 +1000779 .cpu_user_features = PPC_FEATURE_32 |
780 PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700781 .icache_bsize = 16,
782 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100783 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700784 },
785 { /* 403G ?? */
786 .pvr_mask = 0xffff0000,
787 .pvr_value = 0x00200000,
788 .cpu_name = "403G ??",
Kumar Gala10b35d92005-09-23 14:08:58 -0500789 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700790 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
791 .icache_bsize = 16,
792 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100793 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700794 },
795 { /* 405GP */
796 .pvr_mask = 0xffff0000,
797 .pvr_value = 0x40110000,
798 .cpu_name = "405GP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500799 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700800 .cpu_user_features = PPC_FEATURE_32 |
801 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
802 .icache_bsize = 32,
803 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100804 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700805 },
806 { /* STB 03xxx */
807 .pvr_mask = 0xffff0000,
808 .pvr_value = 0x40130000,
809 .cpu_name = "STB03xxx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500810 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700811 .cpu_user_features = PPC_FEATURE_32 |
812 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
813 .icache_bsize = 32,
814 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100815 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700816 },
817 { /* STB 04xxx */
818 .pvr_mask = 0xffff0000,
819 .pvr_value = 0x41810000,
820 .cpu_name = "STB04xxx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500821 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700822 .cpu_user_features = PPC_FEATURE_32 |
823 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
824 .icache_bsize = 32,
825 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100826 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700827 },
828 { /* NP405L */
829 .pvr_mask = 0xffff0000,
830 .pvr_value = 0x41610000,
831 .cpu_name = "NP405L",
Kumar Gala10b35d92005-09-23 14:08:58 -0500832 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700833 .cpu_user_features = PPC_FEATURE_32 |
834 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
835 .icache_bsize = 32,
836 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100837 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700838 },
839 { /* NP4GS3 */
840 .pvr_mask = 0xffff0000,
841 .pvr_value = 0x40B10000,
842 .cpu_name = "NP4GS3",
Kumar Gala10b35d92005-09-23 14:08:58 -0500843 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700844 .cpu_user_features = PPC_FEATURE_32 |
845 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
846 .icache_bsize = 32,
847 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100848 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700849 },
850 { /* NP405H */
851 .pvr_mask = 0xffff0000,
852 .pvr_value = 0x41410000,
853 .cpu_name = "NP405H",
Kumar Gala10b35d92005-09-23 14:08:58 -0500854 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700855 .cpu_user_features = PPC_FEATURE_32 |
856 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
857 .icache_bsize = 32,
858 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100859 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700860 },
861 { /* 405GPr */
862 .pvr_mask = 0xffff0000,
863 .pvr_value = 0x50910000,
864 .cpu_name = "405GPr",
Kumar Gala10b35d92005-09-23 14:08:58 -0500865 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700866 .cpu_user_features = PPC_FEATURE_32 |
867 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
868 .icache_bsize = 32,
869 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100870 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700871 },
872 { /* STBx25xx */
873 .pvr_mask = 0xffff0000,
874 .pvr_value = 0x51510000,
875 .cpu_name = "STBx25xx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500876 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700877 .cpu_user_features = PPC_FEATURE_32 |
878 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
879 .icache_bsize = 32,
880 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100881 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700882 },
883 { /* 405LP */
884 .pvr_mask = 0xffff0000,
885 .pvr_value = 0x41F10000,
886 .cpu_name = "405LP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500887 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700888 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
889 .icache_bsize = 32,
890 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100891 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700892 },
893 { /* Xilinx Virtex-II Pro */
894 .pvr_mask = 0xffff0000,
895 .pvr_value = 0x20010000,
896 .cpu_name = "Virtex-II Pro",
Kumar Gala10b35d92005-09-23 14:08:58 -0500897 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700898 .cpu_user_features = PPC_FEATURE_32 |
899 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
900 .icache_bsize = 32,
901 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100902 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700903 },
Eugene Suroveginad95d602005-06-07 13:22:09 -0700904 { /* 405EP */
905 .pvr_mask = 0xffff0000,
906 .pvr_value = 0x51210000,
907 .cpu_name = "405EP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500908 .cpu_features = CPU_FTRS_40X,
Eugene Suroveginad95d602005-06-07 13:22:09 -0700909 .cpu_user_features = PPC_FEATURE_32 |
910 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
911 .icache_bsize = 32,
912 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100913 .platform = "ppc405",
Eugene Suroveginad95d602005-06-07 13:22:09 -0700914 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700915
916#endif /* CONFIG_40x */
917#ifdef CONFIG_44x
Matt Porterc9cf73a2005-07-31 22:34:52 -0700918 {
919 .pvr_mask = 0xf0000fff,
920 .pvr_value = 0x40000850,
921 .cpu_name = "440EP Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -0500922 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100923 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Matt Porterc9cf73a2005-07-31 22:34:52 -0700924 .icache_bsize = 32,
925 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100926 .platform = "ppc440",
Matt Porterc9cf73a2005-07-31 22:34:52 -0700927 },
928 {
929 .pvr_mask = 0xf0000fff,
930 .pvr_value = 0x400008d3,
931 .cpu_name = "440EP Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -0500932 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100933 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Matt Porterc9cf73a2005-07-31 22:34:52 -0700934 .icache_bsize = 32,
935 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100936 .platform = "ppc440",
Matt Porterc9cf73a2005-07-31 22:34:52 -0700937 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000938 { /* 440GP Rev. B */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700939 .pvr_mask = 0xf0000fff,
940 .pvr_value = 0x40000440,
941 .cpu_name = "440GP Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -0500942 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100943 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700944 .icache_bsize = 32,
945 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100946 .platform = "ppc440gp",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700947 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000948 { /* 440GP Rev. C */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700949 .pvr_mask = 0xf0000fff,
950 .pvr_value = 0x40000481,
951 .cpu_name = "440GP Rev. C",
Kumar Gala10b35d92005-09-23 14:08:58 -0500952 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100953 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700954 .icache_bsize = 32,
955 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100956 .platform = "ppc440gp",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700957 },
958 { /* 440GX Rev. A */
959 .pvr_mask = 0xf0000fff,
960 .pvr_value = 0x50000850,
961 .cpu_name = "440GX Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -0500962 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100963 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700964 .icache_bsize = 32,
965 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100966 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700967 },
968 { /* 440GX Rev. B */
969 .pvr_mask = 0xf0000fff,
970 .pvr_value = 0x50000851,
971 .cpu_name = "440GX Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -0500972 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100973 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700974 .icache_bsize = 32,
975 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100976 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700977 },
978 { /* 440GX Rev. C */
979 .pvr_mask = 0xf0000fff,
980 .pvr_value = 0x50000892,
981 .cpu_name = "440GX Rev. C",
Kumar Gala10b35d92005-09-23 14:08:58 -0500982 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100983 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700984 .icache_bsize = 32,
985 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100986 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700987 },
Eugene Surovegin9149fb32005-09-03 15:55:40 -0700988 { /* 440GX Rev. F */
989 .pvr_mask = 0xf0000fff,
990 .pvr_value = 0x50000894,
991 .cpu_name = "440GX Rev. F",
Kumar Gala10b35d92005-09-23 14:08:58 -0500992 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100993 .cpu_user_features = COMMON_USER_BOOKE,
Eugene Surovegin9149fb32005-09-03 15:55:40 -0700994 .icache_bsize = 32,
995 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100996 .platform = "ppc440",
Eugene Surovegin9149fb32005-09-03 15:55:40 -0700997 },
Matt Porter656de7e2005-09-03 15:55:42 -0700998 { /* 440SP Rev. A */
999 .pvr_mask = 0xff000fff,
1000 .pvr_value = 0x53000891,
1001 .cpu_name = "440SP Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -05001002 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001003 .cpu_user_features = COMMON_USER_BOOKE,
Matt Porter656de7e2005-09-03 15:55:42 -07001004 .icache_bsize = 32,
1005 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001006 .platform = "ppc440",
Matt Porter656de7e2005-09-03 15:55:42 -07001007 },
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001008 { /* 440SPe Rev. A */
1009 .pvr_mask = 0xff000fff,
1010 .pvr_value = 0x53000890,
1011 .cpu_name = "440SPe Rev. A",
1012 .cpu_features = CPU_FTR_SPLIT_ID_CACHE |
1013 CPU_FTR_USE_TB,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001014 .cpu_user_features = COMMON_USER_BOOKE,
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001015 .icache_bsize = 32,
1016 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001017 .platform = "ppc440",
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001018 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001019#endif /* CONFIG_44x */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001020#ifdef CONFIG_FSL_BOOKE
Stephen Rothwell49209602005-10-12 15:55:09 +10001021 { /* e200z5 */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001022 .pvr_mask = 0xfff00000,
1023 .pvr_value = 0x81000000,
1024 .cpu_name = "e200z5",
1025 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001026 .cpu_features = CPU_FTRS_E200,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001027 .cpu_user_features = COMMON_USER_BOOKE |
1028 PPC_FEATURE_HAS_EFP_SINGLE |
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001029 PPC_FEATURE_UNIFIED_CACHE,
1030 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001031 .platform = "ppc5554",
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001032 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001033 { /* e200z6 */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001034 .pvr_mask = 0xfff00000,
1035 .pvr_value = 0x81100000,
1036 .cpu_name = "e200z6",
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_SPE_COMP |
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001041 PPC_FEATURE_HAS_EFP_SINGLE |
1042 PPC_FEATURE_UNIFIED_CACHE,
1043 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001044 .platform = "ppc5554",
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001045 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001046 { /* e500 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001047 .pvr_mask = 0xffff0000,
1048 .pvr_value = 0x80200000,
1049 .cpu_name = "e500",
1050 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001051 .cpu_features = CPU_FTRS_E500,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001052 .cpu_user_features = COMMON_USER_BOOKE |
1053 PPC_FEATURE_SPE_COMP |
Linus Torvalds1da177e2005-04-16 15:20:36 -07001054 PPC_FEATURE_HAS_EFP_SINGLE,
1055 .icache_bsize = 32,
1056 .dcache_bsize = 32,
1057 .num_pmcs = 4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001058 .oprofile_cpu_type = "ppc/e500",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001059 .oprofile_type = PPC_OPROFILE_BOOKE,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001060 .platform = "ppc8540",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001061 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001062 { /* e500v2 */
Kumar Gala5b37b702005-06-21 17:15:18 -07001063 .pvr_mask = 0xffff0000,
1064 .pvr_value = 0x80210000,
1065 .cpu_name = "e500v2",
1066 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001067 .cpu_features = CPU_FTRS_E500_2,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001068 .cpu_user_features = COMMON_USER_BOOKE |
1069 PPC_FEATURE_SPE_COMP |
1070 PPC_FEATURE_HAS_EFP_SINGLE |
1071 PPC_FEATURE_HAS_EFP_DOUBLE,
Kumar Gala5b37b702005-06-21 17:15:18 -07001072 .icache_bsize = 32,
1073 .dcache_bsize = 32,
1074 .num_pmcs = 4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001075 .oprofile_cpu_type = "ppc/e500",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001076 .oprofile_type = PPC_OPROFILE_BOOKE,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001077 .platform = "ppc8548",
Kumar Gala5b37b702005-06-21 17:15:18 -07001078 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001079#endif
1080#if !CLASSIC_PPC
1081 { /* default match */
1082 .pvr_mask = 0x00000000,
1083 .pvr_value = 0x00000000,
1084 .cpu_name = "(generic PPC)",
Kumar Gala10b35d92005-09-23 14:08:58 -05001085 .cpu_features = CPU_FTRS_GENERIC_32,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001086 .cpu_user_features = PPC_FEATURE_32,
1087 .icache_bsize = 32,
1088 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001089 .platform = "powerpc",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001090 }
1091#endif /* !CLASSIC_PPC */
Stephen Rothwell49209602005-10-12 15:55:09 +10001092#endif /* CONFIG_PPC32 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001093};