blob: 83f9ab139d4c48a721034dd70a1841ee7eb31ce5 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Linus Torvalds1da177e2005-04-16 15:20:36 -07002 * Copyright (C) 2001 Ben. Herrenschmidt (benh@kernel.crashing.org)
3 *
Stephen Rothwell49209602005-10-12 15:55:09 +10004 * Modifications for ppc64:
5 * Copyright (C) 2003 Dave Engebretsen <engebret@us.ibm.com>
6 *
Linus Torvalds1da177e2005-04-16 15:20:36 -07007 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version
10 * 2 of the License, or (at your option) any later version.
11 */
12
13#include <linux/config.h>
14#include <linux/string.h>
15#include <linux/sched.h>
16#include <linux/threads.h>
17#include <linux/init.h>
Kumar Gala400d2212005-09-27 15:13:12 -050018#include <linux/module.h>
19
20#include <asm/oprofile_impl.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070021#include <asm/cputable.h>
22
Kumar Gala400d2212005-09-27 15:13:12 -050023struct cpu_spec* cur_cpu_spec = NULL;
Stephen Rothwell49209602005-10-12 15:55:09 +100024EXPORT_SYMBOL(cur_cpu_spec);
Linus Torvalds1da177e2005-04-16 15:20:36 -070025
Stephen Rothwell49209602005-10-12 15:55:09 +100026/* NOTE:
27 * Unlike ppc32, ppc64 will only call this once for the boot CPU, it's
28 * the responsibility of the appropriate CPU save/restore functions to
29 * eventually copy these settings over. Those save/restore aren't yet
30 * part of the cputable though. That has to be fixed for both ppc32
31 * and ppc64
32 */
Geoff Levandb26f1002006-05-19 14:24:18 +100033#ifdef CONFIG_PPC32
Kumar Gala400d2212005-09-27 15:13:12 -050034extern void __setup_cpu_603(unsigned long offset, struct cpu_spec* spec);
35extern void __setup_cpu_604(unsigned long offset, struct cpu_spec* spec);
36extern void __setup_cpu_750(unsigned long offset, struct cpu_spec* spec);
37extern void __setup_cpu_750cx(unsigned long offset, struct cpu_spec* spec);
38extern void __setup_cpu_750fx(unsigned long offset, struct cpu_spec* spec);
39extern void __setup_cpu_7400(unsigned long offset, struct cpu_spec* spec);
40extern void __setup_cpu_7410(unsigned long offset, struct cpu_spec* spec);
41extern void __setup_cpu_745x(unsigned long offset, struct cpu_spec* spec);
Stephen Rothwell49209602005-10-12 15:55:09 +100042#endif /* CONFIG_PPC32 */
Kumar Gala400d2212005-09-27 15:13:12 -050043extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec);
Linus Torvalds1da177e2005-04-16 15:20:36 -070044
Linus Torvalds1da177e2005-04-16 15:20:36 -070045/* This table only contains "desktop" CPUs, it need to be filled with embedded
46 * ones as well...
47 */
Stephen Rothwell49209602005-10-12 15:55:09 +100048#define COMMON_USER (PPC_FEATURE_32 | PPC_FEATURE_HAS_FPU | \
49 PPC_FEATURE_HAS_MMU)
50#define COMMON_USER_PPC64 (COMMON_USER | PPC_FEATURE_64)
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +110051#define COMMON_USER_POWER4 (COMMON_USER_PPC64 | PPC_FEATURE_POWER4)
Benjamin Herrenschmidtaa5cb022006-03-01 15:07:07 +110052#define COMMON_USER_POWER5 (COMMON_USER_PPC64 | PPC_FEATURE_POWER5 |\
53 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
54#define COMMON_USER_POWER5_PLUS (COMMON_USER_PPC64 | PPC_FEATURE_POWER5_PLUS|\
55 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
Anton Blanchard03054d52006-04-29 09:51:06 +100056#define COMMON_USER_POWER6 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_05 |\
57 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
Paul Mackerras80f15dc2006-01-14 10:11:39 +110058#define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \
59 PPC_FEATURE_BOOKE)
Linus Torvalds1da177e2005-04-16 15:20:36 -070060
Linus Torvalds1da177e2005-04-16 15:20:36 -070061/* We only set the spe features if the kernel was compiled with
62 * spe support
63 */
64#ifdef CONFIG_SPE
Stephen Rothwell49209602005-10-12 15:55:09 +100065#define PPC_FEATURE_SPE_COMP PPC_FEATURE_HAS_SPE
Linus Torvalds1da177e2005-04-16 15:20:36 -070066#else
Stephen Rothwell49209602005-10-12 15:55:09 +100067#define PPC_FEATURE_SPE_COMP 0
Linus Torvalds1da177e2005-04-16 15:20:36 -070068#endif
69
Linus Torvalds1da177e2005-04-16 15:20:36 -070070struct cpu_spec cpu_specs[] = {
Stephen Rothwell49209602005-10-12 15:55:09 +100071#ifdef CONFIG_PPC64
72 { /* Power3 */
73 .pvr_mask = 0xffff0000,
74 .pvr_value = 0x00400000,
75 .cpu_name = "POWER3 (630)",
76 .cpu_features = CPU_FTRS_POWER3,
77 .cpu_user_features = COMMON_USER_PPC64,
78 .icache_bsize = 128,
79 .dcache_bsize = 128,
80 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +100081 .oprofile_cpu_type = "ppc64/power3",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +000082 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +110083 .platform = "power3",
Stephen Rothwell49209602005-10-12 15:55:09 +100084 },
85 { /* Power3+ */
86 .pvr_mask = 0xffff0000,
87 .pvr_value = 0x00410000,
88 .cpu_name = "POWER3 (630+)",
89 .cpu_features = CPU_FTRS_POWER3,
90 .cpu_user_features = COMMON_USER_PPC64,
91 .icache_bsize = 128,
92 .dcache_bsize = 128,
93 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +100094 .oprofile_cpu_type = "ppc64/power3",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +000095 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +110096 .platform = "power3",
Stephen Rothwell49209602005-10-12 15:55:09 +100097 },
98 { /* Northstar */
99 .pvr_mask = 0xffff0000,
100 .pvr_value = 0x00330000,
101 .cpu_name = "RS64-II (northstar)",
102 .cpu_features = CPU_FTRS_RS64,
103 .cpu_user_features = COMMON_USER_PPC64,
104 .icache_bsize = 128,
105 .dcache_bsize = 128,
106 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000107 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000108 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100109 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000110 },
111 { /* Pulsar */
112 .pvr_mask = 0xffff0000,
113 .pvr_value = 0x00340000,
114 .cpu_name = "RS64-III (pulsar)",
115 .cpu_features = CPU_FTRS_RS64,
116 .cpu_user_features = COMMON_USER_PPC64,
117 .icache_bsize = 128,
118 .dcache_bsize = 128,
119 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000120 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000121 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100122 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000123 },
124 { /* I-star */
125 .pvr_mask = 0xffff0000,
126 .pvr_value = 0x00360000,
127 .cpu_name = "RS64-III (icestar)",
128 .cpu_features = CPU_FTRS_RS64,
129 .cpu_user_features = COMMON_USER_PPC64,
130 .icache_bsize = 128,
131 .dcache_bsize = 128,
132 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000133 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000134 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100135 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000136 },
137 { /* S-star */
138 .pvr_mask = 0xffff0000,
139 .pvr_value = 0x00370000,
140 .cpu_name = "RS64-IV (sstar)",
141 .cpu_features = CPU_FTRS_RS64,
142 .cpu_user_features = COMMON_USER_PPC64,
143 .icache_bsize = 128,
144 .dcache_bsize = 128,
145 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000146 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000147 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100148 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000149 },
150 { /* Power4 */
151 .pvr_mask = 0xffff0000,
152 .pvr_value = 0x00350000,
153 .cpu_name = "POWER4 (gp)",
154 .cpu_features = CPU_FTRS_POWER4,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100155 .cpu_user_features = COMMON_USER_POWER4,
Stephen Rothwell49209602005-10-12 15:55:09 +1000156 .icache_bsize = 128,
157 .dcache_bsize = 128,
158 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000159 .oprofile_cpu_type = "ppc64/power4",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000160 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100161 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000162 },
163 { /* Power4+ */
164 .pvr_mask = 0xffff0000,
165 .pvr_value = 0x00380000,
166 .cpu_name = "POWER4+ (gq)",
167 .cpu_features = CPU_FTRS_POWER4,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100168 .cpu_user_features = COMMON_USER_POWER4,
Stephen Rothwell49209602005-10-12 15:55:09 +1000169 .icache_bsize = 128,
170 .dcache_bsize = 128,
171 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000172 .oprofile_cpu_type = "ppc64/power4",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000173 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100174 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000175 },
176 { /* PPC970 */
177 .pvr_mask = 0xffff0000,
178 .pvr_value = 0x00390000,
179 .cpu_name = "PPC970",
180 .cpu_features = CPU_FTRS_PPC970,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100181 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000182 PPC_FEATURE_HAS_ALTIVEC_COMP,
183 .icache_bsize = 128,
184 .dcache_bsize = 128,
185 .num_pmcs = 8,
186 .cpu_setup = __setup_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000187 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000188 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100189 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000190 },
191#endif /* CONFIG_PPC64 */
192#if defined(CONFIG_PPC64) || defined(CONFIG_POWER4)
193 { /* PPC970FX */
194 .pvr_mask = 0xffff0000,
195 .pvr_value = 0x003c0000,
196 .cpu_name = "PPC970FX",
197#ifdef CONFIG_PPC32
198 .cpu_features = CPU_FTRS_970_32,
199#else
200 .cpu_features = CPU_FTRS_PPC970,
201#endif
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100202 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000203 PPC_FEATURE_HAS_ALTIVEC_COMP,
204 .icache_bsize = 128,
205 .dcache_bsize = 128,
206 .num_pmcs = 8,
207 .cpu_setup = __setup_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000208 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000209 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100210 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000211 },
212#endif /* defined(CONFIG_PPC64) || defined(CONFIG_POWER4) */
213#ifdef CONFIG_PPC64
214 { /* PPC970MP */
215 .pvr_mask = 0xffff0000,
216 .pvr_value = 0x00440000,
217 .cpu_name = "PPC970MP",
218 .cpu_features = CPU_FTRS_PPC970,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100219 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000220 PPC_FEATURE_HAS_ALTIVEC_COMP,
221 .icache_bsize = 128,
222 .dcache_bsize = 128,
Anton Blanchard87af41b2006-05-05 05:44:26 +1000223 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000224 .cpu_setup = __setup_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000225 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000226 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100227 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000228 },
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100229 { /* Power5 GR */
Stephen Rothwell49209602005-10-12 15:55:09 +1000230 .pvr_mask = 0xffff0000,
231 .pvr_value = 0x003a0000,
232 .cpu_name = "POWER5 (gr)",
233 .cpu_features = CPU_FTRS_POWER5,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100234 .cpu_user_features = COMMON_USER_POWER5,
Stephen Rothwell49209602005-10-12 15:55:09 +1000235 .icache_bsize = 128,
236 .dcache_bsize = 128,
237 .num_pmcs = 6,
Stephen Rothwell49209602005-10-12 15:55:09 +1000238 .oprofile_cpu_type = "ppc64/power5",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000239 .oprofile_type = PPC_OPROFILE_POWER4,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000240 /* SIHV / SIPR bits are implemented on POWER4+ (GQ)
241 * and above but only works on POWER5 and above
242 */
243 .oprofile_mmcra_sihv = MMCRA_SIHV,
244 .oprofile_mmcra_sipr = MMCRA_SIPR,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100245 .platform = "power5",
Stephen Rothwell49209602005-10-12 15:55:09 +1000246 },
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100247 { /* Power5 GS */
Stephen Rothwell49209602005-10-12 15:55:09 +1000248 .pvr_mask = 0xffff0000,
249 .pvr_value = 0x003b0000,
Anton Blanchard834608f2006-01-09 15:42:30 +1100250 .cpu_name = "POWER5+ (gs)",
Stephen Rothwell49209602005-10-12 15:55:09 +1000251 .cpu_features = CPU_FTRS_POWER5,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100252 .cpu_user_features = COMMON_USER_POWER5_PLUS,
Stephen Rothwell49209602005-10-12 15:55:09 +1000253 .icache_bsize = 128,
254 .dcache_bsize = 128,
255 .num_pmcs = 6,
Anton Blanchard834608f2006-01-09 15:42:30 +1100256 .oprofile_cpu_type = "ppc64/power5+",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000257 .oprofile_type = PPC_OPROFILE_POWER4,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000258 .oprofile_mmcra_sihv = MMCRA_SIHV,
259 .oprofile_mmcra_sipr = MMCRA_SIPR,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100260 .platform = "power5+",
Stephen Rothwell49209602005-10-12 15:55:09 +1000261 },
Anton Blanchard03054d52006-04-29 09:51:06 +1000262 { /* Power6 */
263 .pvr_mask = 0xffff0000,
264 .pvr_value = 0x003e0000,
265 .cpu_name = "POWER6",
266 .cpu_features = CPU_FTRS_POWER6,
267 .cpu_user_features = COMMON_USER_POWER6,
268 .icache_bsize = 128,
269 .dcache_bsize = 128,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000270 .num_pmcs = 8,
Anton Blanchard03054d52006-04-29 09:51:06 +1000271 .oprofile_cpu_type = "ppc64/power6",
272 .oprofile_type = PPC_OPROFILE_POWER4,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000273 .oprofile_mmcra_sihv = POWER6_MMCRA_SIHV,
274 .oprofile_mmcra_sipr = POWER6_MMCRA_SIPR,
275 .oprofile_mmcra_clear = POWER6_MMCRA_THRM |
276 POWER6_MMCRA_OTHER,
Anton Blanchard03054d52006-04-29 09:51:06 +1000277 .platform = "power6",
278 },
Arnd Bergmannc902be72006-01-04 19:55:53 +0000279 { /* Cell Broadband Engine */
Stephen Rothwell49209602005-10-12 15:55:09 +1000280 .pvr_mask = 0xffff0000,
281 .pvr_value = 0x00700000,
282 .cpu_name = "Cell Broadband Engine",
283 .cpu_features = CPU_FTRS_CELL,
284 .cpu_user_features = COMMON_USER_PPC64 |
Benjamin Herrenschmidtaa5cb022006-03-01 15:07:07 +1100285 PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP |
286 PPC_FEATURE_SMT,
Stephen Rothwell49209602005-10-12 15:55:09 +1000287 .icache_bsize = 128,
288 .dcache_bsize = 128,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100289 .platform = "ppc-cell-be",
Stephen Rothwell49209602005-10-12 15:55:09 +1000290 },
291 { /* default match */
292 .pvr_mask = 0x00000000,
293 .pvr_value = 0x00000000,
294 .cpu_name = "POWER4 (compatible)",
295 .cpu_features = CPU_FTRS_COMPATIBLE,
296 .cpu_user_features = COMMON_USER_PPC64,
297 .icache_bsize = 128,
298 .dcache_bsize = 128,
299 .num_pmcs = 6,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100300 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000301 }
302#endif /* CONFIG_PPC64 */
303#ifdef CONFIG_PPC32
Linus Torvalds1da177e2005-04-16 15:20:36 -0700304#if CLASSIC_PPC
Stephen Rothwell49209602005-10-12 15:55:09 +1000305 { /* 601 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700306 .pvr_mask = 0xffff0000,
307 .pvr_value = 0x00010000,
308 .cpu_name = "601",
Kumar Gala10b35d92005-09-23 14:08:58 -0500309 .cpu_features = CPU_FTRS_PPC601,
Stephen Rothwell49209602005-10-12 15:55:09 +1000310 .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR |
Paul Mackerras98599012005-10-22 16:51:34 +1000311 PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700312 .icache_bsize = 32,
313 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100314 .platform = "ppc601",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700315 },
316 { /* 603 */
317 .pvr_mask = 0xffff0000,
318 .pvr_value = 0x00030000,
319 .cpu_name = "603",
Kumar Gala10b35d92005-09-23 14:08:58 -0500320 .cpu_features = CPU_FTRS_603,
Stephen Rothwell49209602005-10-12 15:55:09 +1000321 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700322 .icache_bsize = 32,
323 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100324 .cpu_setup = __setup_cpu_603,
325 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700326 },
327 { /* 603e */
328 .pvr_mask = 0xffff0000,
329 .pvr_value = 0x00060000,
330 .cpu_name = "603e",
Kumar Gala10b35d92005-09-23 14:08:58 -0500331 .cpu_features = CPU_FTRS_603,
Stephen Rothwell49209602005-10-12 15:55:09 +1000332 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700333 .icache_bsize = 32,
334 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100335 .cpu_setup = __setup_cpu_603,
336 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700337 },
338 { /* 603ev */
339 .pvr_mask = 0xffff0000,
340 .pvr_value = 0x00070000,
341 .cpu_name = "603ev",
Kumar Gala10b35d92005-09-23 14:08:58 -0500342 .cpu_features = CPU_FTRS_603,
Stephen Rothwell49209602005-10-12 15:55:09 +1000343 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700344 .icache_bsize = 32,
345 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100346 .cpu_setup = __setup_cpu_603,
347 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700348 },
349 { /* 604 */
350 .pvr_mask = 0xffff0000,
351 .pvr_value = 0x00040000,
352 .cpu_name = "604",
Kumar Gala10b35d92005-09-23 14:08:58 -0500353 .cpu_features = CPU_FTRS_604,
Stephen Rothwell49209602005-10-12 15:55:09 +1000354 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700355 .icache_bsize = 32,
356 .dcache_bsize = 32,
357 .num_pmcs = 2,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100358 .cpu_setup = __setup_cpu_604,
359 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700360 },
361 { /* 604e */
362 .pvr_mask = 0xfffff000,
363 .pvr_value = 0x00090000,
364 .cpu_name = "604e",
Kumar Gala10b35d92005-09-23 14:08:58 -0500365 .cpu_features = CPU_FTRS_604,
Stephen Rothwell49209602005-10-12 15:55:09 +1000366 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700367 .icache_bsize = 32,
368 .dcache_bsize = 32,
369 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100370 .cpu_setup = __setup_cpu_604,
371 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700372 },
373 { /* 604r */
374 .pvr_mask = 0xffff0000,
375 .pvr_value = 0x00090000,
376 .cpu_name = "604r",
Kumar Gala10b35d92005-09-23 14:08:58 -0500377 .cpu_features = CPU_FTRS_604,
Stephen Rothwell49209602005-10-12 15:55:09 +1000378 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700379 .icache_bsize = 32,
380 .dcache_bsize = 32,
381 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100382 .cpu_setup = __setup_cpu_604,
383 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700384 },
385 { /* 604ev */
386 .pvr_mask = 0xffff0000,
387 .pvr_value = 0x000a0000,
388 .cpu_name = "604ev",
Kumar Gala10b35d92005-09-23 14:08:58 -0500389 .cpu_features = CPU_FTRS_604,
Stephen Rothwell49209602005-10-12 15:55:09 +1000390 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700391 .icache_bsize = 32,
392 .dcache_bsize = 32,
393 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100394 .cpu_setup = __setup_cpu_604,
395 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700396 },
397 { /* 740/750 (0x4202, don't support TAU ?) */
398 .pvr_mask = 0xffffffff,
399 .pvr_value = 0x00084202,
400 .cpu_name = "740/750",
Kumar Gala10b35d92005-09-23 14:08:58 -0500401 .cpu_features = CPU_FTRS_740_NOTAU,
Stephen Rothwell49209602005-10-12 15:55:09 +1000402 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700403 .icache_bsize = 32,
404 .dcache_bsize = 32,
405 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100406 .cpu_setup = __setup_cpu_750,
407 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700408 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700409 { /* 750CX (80100 and 8010x?) */
410 .pvr_mask = 0xfffffff0,
411 .pvr_value = 0x00080100,
412 .cpu_name = "750CX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500413 .cpu_features = CPU_FTRS_750,
Stephen Rothwell49209602005-10-12 15:55:09 +1000414 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700415 .icache_bsize = 32,
416 .dcache_bsize = 32,
417 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100418 .cpu_setup = __setup_cpu_750cx,
419 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700420 },
421 { /* 750CX (82201 and 82202) */
422 .pvr_mask = 0xfffffff0,
423 .pvr_value = 0x00082200,
424 .cpu_name = "750CX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500425 .cpu_features = CPU_FTRS_750,
Stephen Rothwell49209602005-10-12 15:55:09 +1000426 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700427 .icache_bsize = 32,
428 .dcache_bsize = 32,
429 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100430 .cpu_setup = __setup_cpu_750cx,
431 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700432 },
433 { /* 750CXe (82214) */
434 .pvr_mask = 0xfffffff0,
435 .pvr_value = 0x00082210,
436 .cpu_name = "750CXe",
Kumar Gala10b35d92005-09-23 14:08:58 -0500437 .cpu_features = CPU_FTRS_750,
Stephen Rothwell49209602005-10-12 15:55:09 +1000438 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700439 .icache_bsize = 32,
440 .dcache_bsize = 32,
441 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100442 .cpu_setup = __setup_cpu_750cx,
443 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700444 },
Arthur Othieno7c316252005-09-03 15:55:52 -0700445 { /* 750CXe "Gekko" (83214) */
446 .pvr_mask = 0xffffffff,
447 .pvr_value = 0x00083214,
448 .cpu_name = "750CXe",
Kumar Gala10b35d92005-09-23 14:08:58 -0500449 .cpu_features = CPU_FTRS_750,
Stephen Rothwell49209602005-10-12 15:55:09 +1000450 .cpu_user_features = COMMON_USER,
Arthur Othieno7c316252005-09-03 15:55:52 -0700451 .icache_bsize = 32,
452 .dcache_bsize = 32,
453 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100454 .cpu_setup = __setup_cpu_750cx,
455 .platform = "ppc750",
Arthur Othieno7c316252005-09-03 15:55:52 -0700456 },
Arthur Othienoac1ff042005-09-03 15:55:51 -0700457 { /* 745/755 */
458 .pvr_mask = 0xfffff000,
459 .pvr_value = 0x00083000,
460 .cpu_name = "745/755",
Kumar Gala10b35d92005-09-23 14:08:58 -0500461 .cpu_features = CPU_FTRS_750,
Stephen Rothwell49209602005-10-12 15:55:09 +1000462 .cpu_user_features = COMMON_USER,
Arthur Othienoac1ff042005-09-03 15:55:51 -0700463 .icache_bsize = 32,
464 .dcache_bsize = 32,
465 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100466 .cpu_setup = __setup_cpu_750,
467 .platform = "ppc750",
Arthur Othienoac1ff042005-09-03 15:55:51 -0700468 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700469 { /* 750FX rev 1.x */
470 .pvr_mask = 0xffffff00,
471 .pvr_value = 0x70000100,
472 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500473 .cpu_features = CPU_FTRS_750FX1,
Stephen Rothwell49209602005-10-12 15:55:09 +1000474 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700475 .icache_bsize = 32,
476 .dcache_bsize = 32,
477 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100478 .cpu_setup = __setup_cpu_750,
479 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700480 },
481 { /* 750FX rev 2.0 must disable HID0[DPM] */
482 .pvr_mask = 0xffffffff,
483 .pvr_value = 0x70000200,
484 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500485 .cpu_features = CPU_FTRS_750FX2,
Stephen Rothwell49209602005-10-12 15:55:09 +1000486 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700487 .icache_bsize = 32,
488 .dcache_bsize = 32,
489 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100490 .cpu_setup = __setup_cpu_750,
491 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700492 },
493 { /* 750FX (All revs except 2.0) */
494 .pvr_mask = 0xffff0000,
495 .pvr_value = 0x70000000,
496 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500497 .cpu_features = CPU_FTRS_750FX,
Stephen Rothwell49209602005-10-12 15:55:09 +1000498 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700499 .icache_bsize = 32,
500 .dcache_bsize = 32,
501 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100502 .cpu_setup = __setup_cpu_750fx,
503 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700504 },
505 { /* 750GX */
506 .pvr_mask = 0xffff0000,
507 .pvr_value = 0x70020000,
508 .cpu_name = "750GX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500509 .cpu_features = CPU_FTRS_750GX,
Stephen Rothwell49209602005-10-12 15:55:09 +1000510 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700511 .icache_bsize = 32,
512 .dcache_bsize = 32,
513 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100514 .cpu_setup = __setup_cpu_750fx,
515 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700516 },
517 { /* 740/750 (L2CR bit need fixup for 740) */
518 .pvr_mask = 0xffff0000,
519 .pvr_value = 0x00080000,
520 .cpu_name = "740/750",
Kumar Gala10b35d92005-09-23 14:08:58 -0500521 .cpu_features = CPU_FTRS_740,
Stephen Rothwell49209602005-10-12 15:55:09 +1000522 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700523 .icache_bsize = 32,
524 .dcache_bsize = 32,
525 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100526 .cpu_setup = __setup_cpu_750,
527 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700528 },
529 { /* 7400 rev 1.1 ? (no TAU) */
530 .pvr_mask = 0xffffffff,
531 .pvr_value = 0x000c1101,
532 .cpu_name = "7400 (1.1)",
Kumar Gala10b35d92005-09-23 14:08:58 -0500533 .cpu_features = CPU_FTRS_7400_NOTAU,
Stephen Rothwell49209602005-10-12 15:55:09 +1000534 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700535 .icache_bsize = 32,
536 .dcache_bsize = 32,
537 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100538 .cpu_setup = __setup_cpu_7400,
539 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700540 },
541 { /* 7400 */
542 .pvr_mask = 0xffff0000,
543 .pvr_value = 0x000c0000,
544 .cpu_name = "7400",
Kumar Gala10b35d92005-09-23 14:08:58 -0500545 .cpu_features = CPU_FTRS_7400,
Stephen Rothwell49209602005-10-12 15:55:09 +1000546 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700547 .icache_bsize = 32,
548 .dcache_bsize = 32,
549 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100550 .cpu_setup = __setup_cpu_7400,
551 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700552 },
553 { /* 7410 */
554 .pvr_mask = 0xffff0000,
555 .pvr_value = 0x800c0000,
556 .cpu_name = "7410",
Kumar Gala10b35d92005-09-23 14:08:58 -0500557 .cpu_features = CPU_FTRS_7400,
Stephen Rothwell49209602005-10-12 15:55:09 +1000558 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700559 .icache_bsize = 32,
560 .dcache_bsize = 32,
561 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100562 .cpu_setup = __setup_cpu_7410,
563 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700564 },
565 { /* 7450 2.0 - no doze/nap */
566 .pvr_mask = 0xffffffff,
567 .pvr_value = 0x80000200,
568 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500569 .cpu_features = CPU_FTRS_7450_20,
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.1 */
580 .pvr_mask = 0xffffffff,
581 .pvr_value = 0x80000201,
582 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500583 .cpu_features = CPU_FTRS_7450_21,
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 { /* 7450 2.3 and newer */
594 .pvr_mask = 0xffff0000,
595 .pvr_value = 0x80000000,
596 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500597 .cpu_features = CPU_FTRS_7450_23,
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 1.x */
608 .pvr_mask = 0xffffff00,
609 .pvr_value = 0x80010100,
610 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500611 .cpu_features = CPU_FTRS_7455_1,
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 rev 2.0 */
622 .pvr_mask = 0xffffffff,
623 .pvr_value = 0x80010200,
624 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500625 .cpu_features = CPU_FTRS_7455_20,
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 { /* 7455 others */
636 .pvr_mask = 0xffff0000,
637 .pvr_value = 0x80010000,
638 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500639 .cpu_features = CPU_FTRS_7455,
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.0 */
650 .pvr_mask = 0xffffffff,
651 .pvr_value = 0x80020100,
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.1 */
664 .pvr_mask = 0xffffffff,
665 .pvr_value = 0x80020101,
666 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500667 .cpu_features = CPU_FTRS_7447_10,
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 { /* 7447/7457 Rev 1.2 and later */
678 .pvr_mask = 0xffff0000,
679 .pvr_value = 0x80020000,
680 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500681 .cpu_features = CPU_FTRS_7447,
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 },
691 { /* 7447A */
692 .pvr_mask = 0xffff0000,
693 .pvr_value = 0x80030000,
694 .cpu_name = "7447A",
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,
Linus Torvalds1da177e2005-04-16 15:20:36 -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",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700704 },
Kumar Galabbde6302005-09-03 15:55:55 -0700705 { /* 7448 */
706 .pvr_mask = 0xffff0000,
707 .pvr_value = 0x80040000,
708 .cpu_name = "7448",
Kumar Gala10b35d92005-09-23 14:08:58 -0500709 .cpu_features = CPU_FTRS_7447A,
Stephen Rothwell49209602005-10-12 15:55:09 +1000710 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
Kumar Galabbde6302005-09-03 15:55:55 -0700711 .icache_bsize = 32,
712 .dcache_bsize = 32,
713 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600714 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600715 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000716 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100717 .platform = "ppc7450",
Kumar Galabbde6302005-09-03 15:55:55 -0700718 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700719 { /* 82xx (8240, 8245, 8260 are all 603e cores) */
720 .pvr_mask = 0x7fff0000,
721 .pvr_value = 0x00810000,
722 .cpu_name = "82xx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500723 .cpu_features = CPU_FTRS_82XX,
Stephen Rothwell49209602005-10-12 15:55:09 +1000724 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700725 .icache_bsize = 32,
726 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100727 .cpu_setup = __setup_cpu_603,
728 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700729 },
730 { /* All G2_LE (603e core, plus some) have the same pvr */
731 .pvr_mask = 0x7fff0000,
732 .pvr_value = 0x00820000,
733 .cpu_name = "G2_LE",
Kumar Gala10b35d92005-09-23 14:08:58 -0500734 .cpu_features = CPU_FTRS_G2_LE,
Stephen Rothwell49209602005-10-12 15:55:09 +1000735 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700736 .icache_bsize = 32,
737 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100738 .cpu_setup = __setup_cpu_603,
739 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700740 },
741 { /* e300 (a 603e core, plus some) on 83xx */
742 .pvr_mask = 0x7fff0000,
743 .pvr_value = 0x00830000,
744 .cpu_name = "e300",
Kumar Gala10b35d92005-09-23 14:08:58 -0500745 .cpu_features = CPU_FTRS_E300,
Stephen Rothwell49209602005-10-12 15:55:09 +1000746 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700747 .icache_bsize = 32,
748 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100749 .cpu_setup = __setup_cpu_603,
750 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700751 },
752 { /* default match, we assume split I/D cache & TB (non-601)... */
753 .pvr_mask = 0x00000000,
754 .pvr_value = 0x00000000,
755 .cpu_name = "(generic PPC)",
Kumar Gala10b35d92005-09-23 14:08:58 -0500756 .cpu_features = CPU_FTRS_CLASSIC32,
Stephen Rothwell49209602005-10-12 15:55:09 +1000757 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700758 .icache_bsize = 32,
759 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100760 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700761 },
762#endif /* CLASSIC_PPC */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700763#ifdef CONFIG_8xx
764 { /* 8xx */
765 .pvr_mask = 0xffff0000,
766 .pvr_value = 0x00500000,
767 .cpu_name = "8xx",
768 /* CPU_FTR_MAYBE_CAN_DOZE is possible,
769 * if the 8xx code is there.... */
Kumar Gala10b35d92005-09-23 14:08:58 -0500770 .cpu_features = CPU_FTRS_8XX,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700771 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
772 .icache_bsize = 16,
773 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100774 .platform = "ppc823",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700775 },
776#endif /* CONFIG_8xx */
777#ifdef CONFIG_40x
778 { /* 403GC */
779 .pvr_mask = 0xffffff00,
780 .pvr_value = 0x00200200,
781 .cpu_name = "403GC",
Kumar Gala10b35d92005-09-23 14:08:58 -0500782 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700783 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
784 .icache_bsize = 16,
785 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100786 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700787 },
788 { /* 403GCX */
789 .pvr_mask = 0xffffff00,
790 .pvr_value = 0x00201400,
791 .cpu_name = "403GCX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500792 .cpu_features = CPU_FTRS_40X,
Paul Mackerras98599012005-10-22 16:51:34 +1000793 .cpu_user_features = PPC_FEATURE_32 |
794 PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700795 .icache_bsize = 16,
796 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100797 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700798 },
799 { /* 403G ?? */
800 .pvr_mask = 0xffff0000,
801 .pvr_value = 0x00200000,
802 .cpu_name = "403G ??",
Kumar Gala10b35d92005-09-23 14:08:58 -0500803 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700804 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
805 .icache_bsize = 16,
806 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100807 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700808 },
809 { /* 405GP */
810 .pvr_mask = 0xffff0000,
811 .pvr_value = 0x40110000,
812 .cpu_name = "405GP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500813 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700814 .cpu_user_features = PPC_FEATURE_32 |
815 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
816 .icache_bsize = 32,
817 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100818 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700819 },
820 { /* STB 03xxx */
821 .pvr_mask = 0xffff0000,
822 .pvr_value = 0x40130000,
823 .cpu_name = "STB03xxx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500824 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700825 .cpu_user_features = PPC_FEATURE_32 |
826 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
827 .icache_bsize = 32,
828 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100829 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700830 },
831 { /* STB 04xxx */
832 .pvr_mask = 0xffff0000,
833 .pvr_value = 0x41810000,
834 .cpu_name = "STB04xxx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500835 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700836 .cpu_user_features = PPC_FEATURE_32 |
837 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
838 .icache_bsize = 32,
839 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100840 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700841 },
842 { /* NP405L */
843 .pvr_mask = 0xffff0000,
844 .pvr_value = 0x41610000,
845 .cpu_name = "NP405L",
Kumar Gala10b35d92005-09-23 14:08:58 -0500846 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700847 .cpu_user_features = PPC_FEATURE_32 |
848 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
849 .icache_bsize = 32,
850 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100851 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700852 },
853 { /* NP4GS3 */
854 .pvr_mask = 0xffff0000,
855 .pvr_value = 0x40B10000,
856 .cpu_name = "NP4GS3",
Kumar Gala10b35d92005-09-23 14:08:58 -0500857 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700858 .cpu_user_features = PPC_FEATURE_32 |
859 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
860 .icache_bsize = 32,
861 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100862 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700863 },
864 { /* NP405H */
865 .pvr_mask = 0xffff0000,
866 .pvr_value = 0x41410000,
867 .cpu_name = "NP405H",
Kumar Gala10b35d92005-09-23 14:08:58 -0500868 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700869 .cpu_user_features = PPC_FEATURE_32 |
870 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
871 .icache_bsize = 32,
872 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100873 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700874 },
875 { /* 405GPr */
876 .pvr_mask = 0xffff0000,
877 .pvr_value = 0x50910000,
878 .cpu_name = "405GPr",
Kumar Gala10b35d92005-09-23 14:08:58 -0500879 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700880 .cpu_user_features = PPC_FEATURE_32 |
881 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
882 .icache_bsize = 32,
883 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100884 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700885 },
886 { /* STBx25xx */
887 .pvr_mask = 0xffff0000,
888 .pvr_value = 0x51510000,
889 .cpu_name = "STBx25xx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500890 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700891 .cpu_user_features = PPC_FEATURE_32 |
892 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
893 .icache_bsize = 32,
894 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100895 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700896 },
897 { /* 405LP */
898 .pvr_mask = 0xffff0000,
899 .pvr_value = 0x41F10000,
900 .cpu_name = "405LP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500901 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700902 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
903 .icache_bsize = 32,
904 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100905 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700906 },
907 { /* Xilinx Virtex-II Pro */
Grant C. Likely72646c72006-01-19 01:13:20 -0700908 .pvr_mask = 0xfffff000,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700909 .pvr_value = 0x20010000,
910 .cpu_name = "Virtex-II Pro",
Kumar Gala10b35d92005-09-23 14:08:58 -0500911 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700912 .cpu_user_features = PPC_FEATURE_32 |
913 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
914 .icache_bsize = 32,
915 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100916 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700917 },
Grant C. Likely72646c72006-01-19 01:13:20 -0700918 { /* Xilinx Virtex-4 FX */
919 .pvr_mask = 0xfffff000,
920 .pvr_value = 0x20011000,
921 .cpu_name = "Virtex-4 FX",
922 .cpu_features = CPU_FTRS_40X,
923 .cpu_user_features = PPC_FEATURE_32 |
924 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
925 .icache_bsize = 32,
926 .dcache_bsize = 32,
927 },
Eugene Suroveginad95d602005-06-07 13:22:09 -0700928 { /* 405EP */
929 .pvr_mask = 0xffff0000,
930 .pvr_value = 0x51210000,
931 .cpu_name = "405EP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500932 .cpu_features = CPU_FTRS_40X,
Eugene Suroveginad95d602005-06-07 13:22:09 -0700933 .cpu_user_features = PPC_FEATURE_32 |
934 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
935 .icache_bsize = 32,
936 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100937 .platform = "ppc405",
Eugene Suroveginad95d602005-06-07 13:22:09 -0700938 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700939
940#endif /* CONFIG_40x */
941#ifdef CONFIG_44x
Matt Porterc9cf73a2005-07-31 22:34:52 -0700942 {
943 .pvr_mask = 0xf0000fff,
944 .pvr_value = 0x40000850,
945 .cpu_name = "440EP Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -0500946 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100947 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Matt Porterc9cf73a2005-07-31 22:34:52 -0700948 .icache_bsize = 32,
949 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100950 .platform = "ppc440",
Matt Porterc9cf73a2005-07-31 22:34:52 -0700951 },
952 {
953 .pvr_mask = 0xf0000fff,
954 .pvr_value = 0x400008d3,
955 .cpu_name = "440EP Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -0500956 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100957 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Matt Porterc9cf73a2005-07-31 22:34:52 -0700958 .icache_bsize = 32,
959 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100960 .platform = "ppc440",
Matt Porterc9cf73a2005-07-31 22:34:52 -0700961 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000962 { /* 440GP Rev. B */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700963 .pvr_mask = 0xf0000fff,
964 .pvr_value = 0x40000440,
965 .cpu_name = "440GP Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -0500966 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100967 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700968 .icache_bsize = 32,
969 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100970 .platform = "ppc440gp",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700971 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000972 { /* 440GP Rev. C */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700973 .pvr_mask = 0xf0000fff,
974 .pvr_value = 0x40000481,
975 .cpu_name = "440GP Rev. C",
Kumar Gala10b35d92005-09-23 14:08:58 -0500976 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100977 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700978 .icache_bsize = 32,
979 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100980 .platform = "ppc440gp",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700981 },
982 { /* 440GX Rev. A */
983 .pvr_mask = 0xf0000fff,
984 .pvr_value = 0x50000850,
985 .cpu_name = "440GX Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -0500986 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100987 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700988 .icache_bsize = 32,
989 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100990 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700991 },
992 { /* 440GX Rev. B */
993 .pvr_mask = 0xf0000fff,
994 .pvr_value = 0x50000851,
995 .cpu_name = "440GX Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -0500996 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100997 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700998 .icache_bsize = 32,
999 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001000 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001001 },
1002 { /* 440GX Rev. C */
1003 .pvr_mask = 0xf0000fff,
1004 .pvr_value = 0x50000892,
1005 .cpu_name = "440GX Rev. C",
Kumar Gala10b35d92005-09-23 14:08:58 -05001006 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001007 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001008 .icache_bsize = 32,
1009 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001010 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001011 },
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001012 { /* 440GX Rev. F */
1013 .pvr_mask = 0xf0000fff,
1014 .pvr_value = 0x50000894,
1015 .cpu_name = "440GX Rev. F",
Kumar Gala10b35d92005-09-23 14:08:58 -05001016 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001017 .cpu_user_features = COMMON_USER_BOOKE,
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001018 .icache_bsize = 32,
1019 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001020 .platform = "ppc440",
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001021 },
Matt Porter656de7e2005-09-03 15:55:42 -07001022 { /* 440SP Rev. A */
1023 .pvr_mask = 0xff000fff,
1024 .pvr_value = 0x53000891,
1025 .cpu_name = "440SP Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -05001026 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001027 .cpu_user_features = COMMON_USER_BOOKE,
Matt Porter656de7e2005-09-03 15:55:42 -07001028 .icache_bsize = 32,
1029 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001030 .platform = "ppc440",
Matt Porter656de7e2005-09-03 15:55:42 -07001031 },
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001032 { /* 440SPe Rev. A */
1033 .pvr_mask = 0xff000fff,
1034 .pvr_value = 0x53000890,
1035 .cpu_name = "440SPe Rev. A",
1036 .cpu_features = CPU_FTR_SPLIT_ID_CACHE |
1037 CPU_FTR_USE_TB,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001038 .cpu_user_features = COMMON_USER_BOOKE,
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001039 .icache_bsize = 32,
1040 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001041 .platform = "ppc440",
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001042 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001043#endif /* CONFIG_44x */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001044#ifdef CONFIG_FSL_BOOKE
Stephen Rothwell49209602005-10-12 15:55:09 +10001045 { /* e200z5 */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001046 .pvr_mask = 0xfff00000,
1047 .pvr_value = 0x81000000,
1048 .cpu_name = "e200z5",
1049 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001050 .cpu_features = CPU_FTRS_E200,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001051 .cpu_user_features = COMMON_USER_BOOKE |
1052 PPC_FEATURE_HAS_EFP_SINGLE |
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001053 PPC_FEATURE_UNIFIED_CACHE,
1054 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001055 .platform = "ppc5554",
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001056 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001057 { /* e200z6 */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001058 .pvr_mask = 0xfff00000,
1059 .pvr_value = 0x81100000,
1060 .cpu_name = "e200z6",
1061 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001062 .cpu_features = CPU_FTRS_E200,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001063 .cpu_user_features = COMMON_USER_BOOKE |
1064 PPC_FEATURE_SPE_COMP |
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001065 PPC_FEATURE_HAS_EFP_SINGLE |
1066 PPC_FEATURE_UNIFIED_CACHE,
1067 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001068 .platform = "ppc5554",
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001069 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001070 { /* e500 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001071 .pvr_mask = 0xffff0000,
1072 .pvr_value = 0x80200000,
1073 .cpu_name = "e500",
1074 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001075 .cpu_features = CPU_FTRS_E500,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001076 .cpu_user_features = COMMON_USER_BOOKE |
1077 PPC_FEATURE_SPE_COMP |
Linus Torvalds1da177e2005-04-16 15:20:36 -07001078 PPC_FEATURE_HAS_EFP_SINGLE,
1079 .icache_bsize = 32,
1080 .dcache_bsize = 32,
1081 .num_pmcs = 4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001082 .oprofile_cpu_type = "ppc/e500",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001083 .oprofile_type = PPC_OPROFILE_BOOKE,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001084 .platform = "ppc8540",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001085 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001086 { /* e500v2 */
Kumar Gala5b37b702005-06-21 17:15:18 -07001087 .pvr_mask = 0xffff0000,
1088 .pvr_value = 0x80210000,
1089 .cpu_name = "e500v2",
1090 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001091 .cpu_features = CPU_FTRS_E500_2,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001092 .cpu_user_features = COMMON_USER_BOOKE |
1093 PPC_FEATURE_SPE_COMP |
1094 PPC_FEATURE_HAS_EFP_SINGLE |
1095 PPC_FEATURE_HAS_EFP_DOUBLE,
Kumar Gala5b37b702005-06-21 17:15:18 -07001096 .icache_bsize = 32,
1097 .dcache_bsize = 32,
1098 .num_pmcs = 4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001099 .oprofile_cpu_type = "ppc/e500",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001100 .oprofile_type = PPC_OPROFILE_BOOKE,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001101 .platform = "ppc8548",
Kumar Gala5b37b702005-06-21 17:15:18 -07001102 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001103#endif
1104#if !CLASSIC_PPC
1105 { /* default match */
1106 .pvr_mask = 0x00000000,
1107 .pvr_value = 0x00000000,
1108 .cpu_name = "(generic PPC)",
Kumar Gala10b35d92005-09-23 14:08:58 -05001109 .cpu_features = CPU_FTRS_GENERIC_32,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001110 .cpu_user_features = PPC_FEATURE_32,
1111 .icache_bsize = 32,
1112 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001113 .platform = "powerpc",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001114 }
1115#endif /* !CLASSIC_PPC */
Stephen Rothwell49209602005-10-12 15:55:09 +10001116#endif /* CONFIG_PPC32 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001117};