blob: dfe2fcfb20a095c2a93b6d9e275f34ace6739ade [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 |\
Paul Mackerrasfab5db92006-06-07 16:14:40 +100057 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \
58 PPC_FEATURE_TRUE_LE)
Paul Mackerras80f15dc2006-01-14 10:11:39 +110059#define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \
60 PPC_FEATURE_BOOKE)
Linus Torvalds1da177e2005-04-16 15:20:36 -070061
Linus Torvalds1da177e2005-04-16 15:20:36 -070062/* We only set the spe features if the kernel was compiled with
63 * spe support
64 */
65#ifdef CONFIG_SPE
Stephen Rothwell49209602005-10-12 15:55:09 +100066#define PPC_FEATURE_SPE_COMP PPC_FEATURE_HAS_SPE
Linus Torvalds1da177e2005-04-16 15:20:36 -070067#else
Stephen Rothwell49209602005-10-12 15:55:09 +100068#define PPC_FEATURE_SPE_COMP 0
Linus Torvalds1da177e2005-04-16 15:20:36 -070069#endif
70
Linus Torvalds1da177e2005-04-16 15:20:36 -070071struct cpu_spec cpu_specs[] = {
Stephen Rothwell49209602005-10-12 15:55:09 +100072#ifdef CONFIG_PPC64
73 { /* Power3 */
74 .pvr_mask = 0xffff0000,
75 .pvr_value = 0x00400000,
76 .cpu_name = "POWER3 (630)",
77 .cpu_features = CPU_FTRS_POWER3,
Paul Mackerrasfab5db92006-06-07 16:14:40 +100078 .cpu_user_features = COMMON_USER_PPC64|PPC_FEATURE_PPC_LE,
Stephen Rothwell49209602005-10-12 15:55:09 +100079 .icache_bsize = 128,
80 .dcache_bsize = 128,
81 .num_pmcs = 8,
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,
Paul Mackerrasfab5db92006-06-07 16:14:40 +100091 .cpu_user_features = COMMON_USER_PPC64|PPC_FEATURE_PPC_LE,
Stephen Rothwell49209602005-10-12 15:55:09 +100092 .icache_bsize = 128,
93 .dcache_bsize = 128,
94 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +100095 .oprofile_cpu_type = "ppc64/power3",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +000096 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +110097 .platform = "power3",
Stephen Rothwell49209602005-10-12 15:55:09 +100098 },
99 { /* Northstar */
100 .pvr_mask = 0xffff0000,
101 .pvr_value = 0x00330000,
102 .cpu_name = "RS64-II (northstar)",
103 .cpu_features = CPU_FTRS_RS64,
104 .cpu_user_features = COMMON_USER_PPC64,
105 .icache_bsize = 128,
106 .dcache_bsize = 128,
107 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000108 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000109 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100110 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000111 },
112 { /* Pulsar */
113 .pvr_mask = 0xffff0000,
114 .pvr_value = 0x00340000,
115 .cpu_name = "RS64-III (pulsar)",
116 .cpu_features = CPU_FTRS_RS64,
117 .cpu_user_features = COMMON_USER_PPC64,
118 .icache_bsize = 128,
119 .dcache_bsize = 128,
120 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000121 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000122 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100123 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000124 },
125 { /* I-star */
126 .pvr_mask = 0xffff0000,
127 .pvr_value = 0x00360000,
128 .cpu_name = "RS64-III (icestar)",
129 .cpu_features = CPU_FTRS_RS64,
130 .cpu_user_features = COMMON_USER_PPC64,
131 .icache_bsize = 128,
132 .dcache_bsize = 128,
133 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000134 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000135 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100136 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000137 },
138 { /* S-star */
139 .pvr_mask = 0xffff0000,
140 .pvr_value = 0x00370000,
141 .cpu_name = "RS64-IV (sstar)",
142 .cpu_features = CPU_FTRS_RS64,
143 .cpu_user_features = COMMON_USER_PPC64,
144 .icache_bsize = 128,
145 .dcache_bsize = 128,
146 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000147 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000148 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100149 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000150 },
151 { /* Power4 */
152 .pvr_mask = 0xffff0000,
153 .pvr_value = 0x00350000,
154 .cpu_name = "POWER4 (gp)",
155 .cpu_features = CPU_FTRS_POWER4,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100156 .cpu_user_features = COMMON_USER_POWER4,
Stephen Rothwell49209602005-10-12 15:55:09 +1000157 .icache_bsize = 128,
158 .dcache_bsize = 128,
159 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000160 .oprofile_cpu_type = "ppc64/power4",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000161 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100162 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000163 },
164 { /* Power4+ */
165 .pvr_mask = 0xffff0000,
166 .pvr_value = 0x00380000,
167 .cpu_name = "POWER4+ (gq)",
168 .cpu_features = CPU_FTRS_POWER4,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100169 .cpu_user_features = COMMON_USER_POWER4,
Stephen Rothwell49209602005-10-12 15:55:09 +1000170 .icache_bsize = 128,
171 .dcache_bsize = 128,
172 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000173 .oprofile_cpu_type = "ppc64/power4",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000174 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100175 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000176 },
177 { /* PPC970 */
178 .pvr_mask = 0xffff0000,
179 .pvr_value = 0x00390000,
180 .cpu_name = "PPC970",
181 .cpu_features = CPU_FTRS_PPC970,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100182 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000183 PPC_FEATURE_HAS_ALTIVEC_COMP,
184 .icache_bsize = 128,
185 .dcache_bsize = 128,
186 .num_pmcs = 8,
187 .cpu_setup = __setup_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000188 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000189 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100190 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000191 },
192#endif /* CONFIG_PPC64 */
193#if defined(CONFIG_PPC64) || defined(CONFIG_POWER4)
194 { /* PPC970FX */
195 .pvr_mask = 0xffff0000,
196 .pvr_value = 0x003c0000,
197 .cpu_name = "PPC970FX",
198#ifdef CONFIG_PPC32
199 .cpu_features = CPU_FTRS_970_32,
200#else
201 .cpu_features = CPU_FTRS_PPC970,
202#endif
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100203 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000204 PPC_FEATURE_HAS_ALTIVEC_COMP,
205 .icache_bsize = 128,
206 .dcache_bsize = 128,
207 .num_pmcs = 8,
208 .cpu_setup = __setup_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000209 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000210 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100211 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000212 },
213#endif /* defined(CONFIG_PPC64) || defined(CONFIG_POWER4) */
214#ifdef CONFIG_PPC64
215 { /* PPC970MP */
216 .pvr_mask = 0xffff0000,
217 .pvr_value = 0x00440000,
218 .cpu_name = "PPC970MP",
219 .cpu_features = CPU_FTRS_PPC970,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100220 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000221 PPC_FEATURE_HAS_ALTIVEC_COMP,
222 .icache_bsize = 128,
223 .dcache_bsize = 128,
Anton Blanchard87af41b2006-05-05 05:44:26 +1000224 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000225 .cpu_setup = __setup_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000226 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000227 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100228 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000229 },
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100230 { /* Power5 GR */
Stephen Rothwell49209602005-10-12 15:55:09 +1000231 .pvr_mask = 0xffff0000,
232 .pvr_value = 0x003a0000,
233 .cpu_name = "POWER5 (gr)",
234 .cpu_features = CPU_FTRS_POWER5,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100235 .cpu_user_features = COMMON_USER_POWER5,
Stephen Rothwell49209602005-10-12 15:55:09 +1000236 .icache_bsize = 128,
237 .dcache_bsize = 128,
238 .num_pmcs = 6,
Stephen Rothwell49209602005-10-12 15:55:09 +1000239 .oprofile_cpu_type = "ppc64/power5",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000240 .oprofile_type = PPC_OPROFILE_POWER4,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000241 /* SIHV / SIPR bits are implemented on POWER4+ (GQ)
242 * and above but only works on POWER5 and above
243 */
244 .oprofile_mmcra_sihv = MMCRA_SIHV,
245 .oprofile_mmcra_sipr = MMCRA_SIPR,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100246 .platform = "power5",
Stephen Rothwell49209602005-10-12 15:55:09 +1000247 },
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100248 { /* Power5 GS */
Stephen Rothwell49209602005-10-12 15:55:09 +1000249 .pvr_mask = 0xffff0000,
250 .pvr_value = 0x003b0000,
Anton Blanchard834608f2006-01-09 15:42:30 +1100251 .cpu_name = "POWER5+ (gs)",
Stephen Rothwell49209602005-10-12 15:55:09 +1000252 .cpu_features = CPU_FTRS_POWER5,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100253 .cpu_user_features = COMMON_USER_POWER5_PLUS,
Stephen Rothwell49209602005-10-12 15:55:09 +1000254 .icache_bsize = 128,
255 .dcache_bsize = 128,
256 .num_pmcs = 6,
Anton Blanchard834608f2006-01-09 15:42:30 +1100257 .oprofile_cpu_type = "ppc64/power5+",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000258 .oprofile_type = PPC_OPROFILE_POWER4,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000259 .oprofile_mmcra_sihv = MMCRA_SIHV,
260 .oprofile_mmcra_sipr = MMCRA_SIPR,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100261 .platform = "power5+",
Stephen Rothwell49209602005-10-12 15:55:09 +1000262 },
Anton Blanchard03054d52006-04-29 09:51:06 +1000263 { /* Power6 */
264 .pvr_mask = 0xffff0000,
265 .pvr_value = 0x003e0000,
266 .cpu_name = "POWER6",
267 .cpu_features = CPU_FTRS_POWER6,
268 .cpu_user_features = COMMON_USER_POWER6,
269 .icache_bsize = 128,
270 .dcache_bsize = 128,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000271 .num_pmcs = 8,
Anton Blanchard03054d52006-04-29 09:51:06 +1000272 .oprofile_cpu_type = "ppc64/power6",
273 .oprofile_type = PPC_OPROFILE_POWER4,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000274 .oprofile_mmcra_sihv = POWER6_MMCRA_SIHV,
275 .oprofile_mmcra_sipr = POWER6_MMCRA_SIPR,
276 .oprofile_mmcra_clear = POWER6_MMCRA_THRM |
277 POWER6_MMCRA_OTHER,
Anton Blanchard03054d52006-04-29 09:51:06 +1000278 .platform = "power6",
279 },
Arnd Bergmannc902be72006-01-04 19:55:53 +0000280 { /* Cell Broadband Engine */
Stephen Rothwell49209602005-10-12 15:55:09 +1000281 .pvr_mask = 0xffff0000,
282 .pvr_value = 0x00700000,
283 .cpu_name = "Cell Broadband Engine",
284 .cpu_features = CPU_FTRS_CELL,
285 .cpu_user_features = COMMON_USER_PPC64 |
Benjamin Herrenschmidtaa5cb022006-03-01 15:07:07 +1100286 PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP |
287 PPC_FEATURE_SMT,
Stephen Rothwell49209602005-10-12 15:55:09 +1000288 .icache_bsize = 128,
289 .dcache_bsize = 128,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100290 .platform = "ppc-cell-be",
Stephen Rothwell49209602005-10-12 15:55:09 +1000291 },
292 { /* default match */
293 .pvr_mask = 0x00000000,
294 .pvr_value = 0x00000000,
295 .cpu_name = "POWER4 (compatible)",
296 .cpu_features = CPU_FTRS_COMPATIBLE,
297 .cpu_user_features = COMMON_USER_PPC64,
298 .icache_bsize = 128,
299 .dcache_bsize = 128,
300 .num_pmcs = 6,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100301 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000302 }
303#endif /* CONFIG_PPC64 */
304#ifdef CONFIG_PPC32
Linus Torvalds1da177e2005-04-16 15:20:36 -0700305#if CLASSIC_PPC
Stephen Rothwell49209602005-10-12 15:55:09 +1000306 { /* 601 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700307 .pvr_mask = 0xffff0000,
308 .pvr_value = 0x00010000,
309 .cpu_name = "601",
Kumar Gala10b35d92005-09-23 14:08:58 -0500310 .cpu_features = CPU_FTRS_PPC601,
Stephen Rothwell49209602005-10-12 15:55:09 +1000311 .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR |
Paul Mackerras98599012005-10-22 16:51:34 +1000312 PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700313 .icache_bsize = 32,
314 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100315 .platform = "ppc601",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700316 },
317 { /* 603 */
318 .pvr_mask = 0xffff0000,
319 .pvr_value = 0x00030000,
320 .cpu_name = "603",
Kumar Gala10b35d92005-09-23 14:08:58 -0500321 .cpu_features = CPU_FTRS_603,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000322 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700323 .icache_bsize = 32,
324 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100325 .cpu_setup = __setup_cpu_603,
326 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700327 },
328 { /* 603e */
329 .pvr_mask = 0xffff0000,
330 .pvr_value = 0x00060000,
331 .cpu_name = "603e",
Kumar Gala10b35d92005-09-23 14:08:58 -0500332 .cpu_features = CPU_FTRS_603,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000333 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700334 .icache_bsize = 32,
335 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100336 .cpu_setup = __setup_cpu_603,
337 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700338 },
339 { /* 603ev */
340 .pvr_mask = 0xffff0000,
341 .pvr_value = 0x00070000,
342 .cpu_name = "603ev",
Kumar Gala10b35d92005-09-23 14:08:58 -0500343 .cpu_features = CPU_FTRS_603,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000344 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700345 .icache_bsize = 32,
346 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100347 .cpu_setup = __setup_cpu_603,
348 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700349 },
350 { /* 604 */
351 .pvr_mask = 0xffff0000,
352 .pvr_value = 0x00040000,
353 .cpu_name = "604",
Kumar Gala10b35d92005-09-23 14:08:58 -0500354 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000355 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700356 .icache_bsize = 32,
357 .dcache_bsize = 32,
358 .num_pmcs = 2,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100359 .cpu_setup = __setup_cpu_604,
360 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700361 },
362 { /* 604e */
363 .pvr_mask = 0xfffff000,
364 .pvr_value = 0x00090000,
365 .cpu_name = "604e",
Kumar Gala10b35d92005-09-23 14:08:58 -0500366 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000367 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700368 .icache_bsize = 32,
369 .dcache_bsize = 32,
370 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100371 .cpu_setup = __setup_cpu_604,
372 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700373 },
374 { /* 604r */
375 .pvr_mask = 0xffff0000,
376 .pvr_value = 0x00090000,
377 .cpu_name = "604r",
Kumar Gala10b35d92005-09-23 14:08:58 -0500378 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000379 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700380 .icache_bsize = 32,
381 .dcache_bsize = 32,
382 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100383 .cpu_setup = __setup_cpu_604,
384 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700385 },
386 { /* 604ev */
387 .pvr_mask = 0xffff0000,
388 .pvr_value = 0x000a0000,
389 .cpu_name = "604ev",
Kumar Gala10b35d92005-09-23 14:08:58 -0500390 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000391 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700392 .icache_bsize = 32,
393 .dcache_bsize = 32,
394 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100395 .cpu_setup = __setup_cpu_604,
396 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700397 },
398 { /* 740/750 (0x4202, don't support TAU ?) */
399 .pvr_mask = 0xffffffff,
400 .pvr_value = 0x00084202,
401 .cpu_name = "740/750",
Kumar Gala10b35d92005-09-23 14:08:58 -0500402 .cpu_features = CPU_FTRS_740_NOTAU,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000403 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700404 .icache_bsize = 32,
405 .dcache_bsize = 32,
406 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100407 .cpu_setup = __setup_cpu_750,
408 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700409 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700410 { /* 750CX (80100 and 8010x?) */
411 .pvr_mask = 0xfffffff0,
412 .pvr_value = 0x00080100,
413 .cpu_name = "750CX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500414 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000415 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700416 .icache_bsize = 32,
417 .dcache_bsize = 32,
418 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100419 .cpu_setup = __setup_cpu_750cx,
420 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700421 },
422 { /* 750CX (82201 and 82202) */
423 .pvr_mask = 0xfffffff0,
424 .pvr_value = 0x00082200,
425 .cpu_name = "750CX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500426 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000427 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700428 .icache_bsize = 32,
429 .dcache_bsize = 32,
430 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100431 .cpu_setup = __setup_cpu_750cx,
432 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700433 },
434 { /* 750CXe (82214) */
435 .pvr_mask = 0xfffffff0,
436 .pvr_value = 0x00082210,
437 .cpu_name = "750CXe",
Kumar Gala10b35d92005-09-23 14:08:58 -0500438 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000439 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700440 .icache_bsize = 32,
441 .dcache_bsize = 32,
442 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100443 .cpu_setup = __setup_cpu_750cx,
444 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700445 },
Arthur Othieno7c316252005-09-03 15:55:52 -0700446 { /* 750CXe "Gekko" (83214) */
447 .pvr_mask = 0xffffffff,
448 .pvr_value = 0x00083214,
449 .cpu_name = "750CXe",
Kumar Gala10b35d92005-09-23 14:08:58 -0500450 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000451 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Arthur Othieno7c316252005-09-03 15:55:52 -0700452 .icache_bsize = 32,
453 .dcache_bsize = 32,
454 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100455 .cpu_setup = __setup_cpu_750cx,
456 .platform = "ppc750",
Arthur Othieno7c316252005-09-03 15:55:52 -0700457 },
Arthur Othienoac1ff042005-09-03 15:55:51 -0700458 { /* 745/755 */
459 .pvr_mask = 0xfffff000,
460 .pvr_value = 0x00083000,
461 .cpu_name = "745/755",
Kumar Gala10b35d92005-09-23 14:08:58 -0500462 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000463 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Arthur Othienoac1ff042005-09-03 15:55:51 -0700464 .icache_bsize = 32,
465 .dcache_bsize = 32,
466 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100467 .cpu_setup = __setup_cpu_750,
468 .platform = "ppc750",
Arthur Othienoac1ff042005-09-03 15:55:51 -0700469 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700470 { /* 750FX rev 1.x */
471 .pvr_mask = 0xffffff00,
472 .pvr_value = 0x70000100,
473 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500474 .cpu_features = CPU_FTRS_750FX1,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000475 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700476 .icache_bsize = 32,
477 .dcache_bsize = 32,
478 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100479 .cpu_setup = __setup_cpu_750,
480 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700481 },
482 { /* 750FX rev 2.0 must disable HID0[DPM] */
483 .pvr_mask = 0xffffffff,
484 .pvr_value = 0x70000200,
485 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500486 .cpu_features = CPU_FTRS_750FX2,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000487 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700488 .icache_bsize = 32,
489 .dcache_bsize = 32,
490 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100491 .cpu_setup = __setup_cpu_750,
492 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700493 },
494 { /* 750FX (All revs except 2.0) */
495 .pvr_mask = 0xffff0000,
496 .pvr_value = 0x70000000,
497 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500498 .cpu_features = CPU_FTRS_750FX,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000499 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700500 .icache_bsize = 32,
501 .dcache_bsize = 32,
502 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100503 .cpu_setup = __setup_cpu_750fx,
504 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700505 },
506 { /* 750GX */
507 .pvr_mask = 0xffff0000,
508 .pvr_value = 0x70020000,
509 .cpu_name = "750GX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500510 .cpu_features = CPU_FTRS_750GX,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000511 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700512 .icache_bsize = 32,
513 .dcache_bsize = 32,
514 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100515 .cpu_setup = __setup_cpu_750fx,
516 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700517 },
518 { /* 740/750 (L2CR bit need fixup for 740) */
519 .pvr_mask = 0xffff0000,
520 .pvr_value = 0x00080000,
521 .cpu_name = "740/750",
Kumar Gala10b35d92005-09-23 14:08:58 -0500522 .cpu_features = CPU_FTRS_740,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000523 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700524 .icache_bsize = 32,
525 .dcache_bsize = 32,
526 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100527 .cpu_setup = __setup_cpu_750,
528 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700529 },
530 { /* 7400 rev 1.1 ? (no TAU) */
531 .pvr_mask = 0xffffffff,
532 .pvr_value = 0x000c1101,
533 .cpu_name = "7400 (1.1)",
Kumar Gala10b35d92005-09-23 14:08:58 -0500534 .cpu_features = CPU_FTRS_7400_NOTAU,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000535 .cpu_user_features = COMMON_USER |
536 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700537 .icache_bsize = 32,
538 .dcache_bsize = 32,
539 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100540 .cpu_setup = __setup_cpu_7400,
541 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700542 },
543 { /* 7400 */
544 .pvr_mask = 0xffff0000,
545 .pvr_value = 0x000c0000,
546 .cpu_name = "7400",
Kumar Gala10b35d92005-09-23 14:08:58 -0500547 .cpu_features = CPU_FTRS_7400,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000548 .cpu_user_features = COMMON_USER |
549 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700550 .icache_bsize = 32,
551 .dcache_bsize = 32,
552 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100553 .cpu_setup = __setup_cpu_7400,
554 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700555 },
556 { /* 7410 */
557 .pvr_mask = 0xffff0000,
558 .pvr_value = 0x800c0000,
559 .cpu_name = "7410",
Kumar Gala10b35d92005-09-23 14:08:58 -0500560 .cpu_features = CPU_FTRS_7400,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000561 .cpu_user_features = COMMON_USER |
562 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700563 .icache_bsize = 32,
564 .dcache_bsize = 32,
565 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100566 .cpu_setup = __setup_cpu_7410,
567 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700568 },
569 { /* 7450 2.0 - no doze/nap */
570 .pvr_mask = 0xffffffff,
571 .pvr_value = 0x80000200,
572 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500573 .cpu_features = CPU_FTRS_7450_20,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000574 .cpu_user_features = COMMON_USER |
575 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700576 .icache_bsize = 32,
577 .dcache_bsize = 32,
578 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600579 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600580 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000581 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100582 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700583 },
584 { /* 7450 2.1 */
585 .pvr_mask = 0xffffffff,
586 .pvr_value = 0x80000201,
587 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500588 .cpu_features = CPU_FTRS_7450_21,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000589 .cpu_user_features = COMMON_USER |
590 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700591 .icache_bsize = 32,
592 .dcache_bsize = 32,
593 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600594 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600595 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000596 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100597 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700598 },
599 { /* 7450 2.3 and newer */
600 .pvr_mask = 0xffff0000,
601 .pvr_value = 0x80000000,
602 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500603 .cpu_features = CPU_FTRS_7450_23,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000604 .cpu_user_features = COMMON_USER |
605 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700606 .icache_bsize = 32,
607 .dcache_bsize = 32,
608 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600609 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600610 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000611 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100612 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700613 },
614 { /* 7455 rev 1.x */
615 .pvr_mask = 0xffffff00,
616 .pvr_value = 0x80010100,
617 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500618 .cpu_features = CPU_FTRS_7455_1,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000619 .cpu_user_features = COMMON_USER |
620 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700621 .icache_bsize = 32,
622 .dcache_bsize = 32,
623 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600624 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600625 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000626 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100627 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700628 },
629 { /* 7455 rev 2.0 */
630 .pvr_mask = 0xffffffff,
631 .pvr_value = 0x80010200,
632 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500633 .cpu_features = CPU_FTRS_7455_20,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000634 .cpu_user_features = COMMON_USER |
635 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700636 .icache_bsize = 32,
637 .dcache_bsize = 32,
638 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600639 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600640 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000641 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100642 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700643 },
644 { /* 7455 others */
645 .pvr_mask = 0xffff0000,
646 .pvr_value = 0x80010000,
647 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500648 .cpu_features = CPU_FTRS_7455,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000649 .cpu_user_features = COMMON_USER |
650 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700651 .icache_bsize = 32,
652 .dcache_bsize = 32,
653 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600654 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600655 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000656 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100657 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700658 },
659 { /* 7447/7457 Rev 1.0 */
660 .pvr_mask = 0xffffffff,
661 .pvr_value = 0x80020100,
662 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500663 .cpu_features = CPU_FTRS_7447_10,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000664 .cpu_user_features = COMMON_USER |
665 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700666 .icache_bsize = 32,
667 .dcache_bsize = 32,
668 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600669 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600670 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000671 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100672 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700673 },
674 { /* 7447/7457 Rev 1.1 */
675 .pvr_mask = 0xffffffff,
676 .pvr_value = 0x80020101,
677 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500678 .cpu_features = CPU_FTRS_7447_10,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000679 .cpu_user_features = COMMON_USER |
680 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700681 .icache_bsize = 32,
682 .dcache_bsize = 32,
683 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600684 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600685 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000686 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100687 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700688 },
689 { /* 7447/7457 Rev 1.2 and later */
690 .pvr_mask = 0xffff0000,
691 .pvr_value = 0x80020000,
692 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500693 .cpu_features = CPU_FTRS_7447,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000694 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700695 .icache_bsize = 32,
696 .dcache_bsize = 32,
697 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600698 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600699 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000700 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100701 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700702 },
703 { /* 7447A */
704 .pvr_mask = 0xffff0000,
705 .pvr_value = 0x80030000,
706 .cpu_name = "7447A",
Kumar Gala10b35d92005-09-23 14:08:58 -0500707 .cpu_features = CPU_FTRS_7447A,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000708 .cpu_user_features = COMMON_USER |
709 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700710 .icache_bsize = 32,
711 .dcache_bsize = 32,
712 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600713 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600714 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000715 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100716 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700717 },
Kumar Galabbde6302005-09-03 15:55:55 -0700718 { /* 7448 */
719 .pvr_mask = 0xffff0000,
720 .pvr_value = 0x80040000,
721 .cpu_name = "7448",
Kumar Gala10b35d92005-09-23 14:08:58 -0500722 .cpu_features = CPU_FTRS_7447A,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000723 .cpu_user_features = COMMON_USER |
724 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Kumar Galabbde6302005-09-03 15:55:55 -0700725 .icache_bsize = 32,
726 .dcache_bsize = 32,
727 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600728 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600729 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000730 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100731 .platform = "ppc7450",
Kumar Galabbde6302005-09-03 15:55:55 -0700732 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700733 { /* 82xx (8240, 8245, 8260 are all 603e cores) */
734 .pvr_mask = 0x7fff0000,
735 .pvr_value = 0x00810000,
736 .cpu_name = "82xx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500737 .cpu_features = CPU_FTRS_82XX,
Stephen Rothwell49209602005-10-12 15:55:09 +1000738 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700739 .icache_bsize = 32,
740 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100741 .cpu_setup = __setup_cpu_603,
742 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700743 },
744 { /* All G2_LE (603e core, plus some) have the same pvr */
745 .pvr_mask = 0x7fff0000,
746 .pvr_value = 0x00820000,
747 .cpu_name = "G2_LE",
Kumar Gala10b35d92005-09-23 14:08:58 -0500748 .cpu_features = CPU_FTRS_G2_LE,
Stephen Rothwell49209602005-10-12 15:55:09 +1000749 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700750 .icache_bsize = 32,
751 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100752 .cpu_setup = __setup_cpu_603,
753 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700754 },
755 { /* e300 (a 603e core, plus some) on 83xx */
756 .pvr_mask = 0x7fff0000,
757 .pvr_value = 0x00830000,
758 .cpu_name = "e300",
Kumar Gala10b35d92005-09-23 14:08:58 -0500759 .cpu_features = CPU_FTRS_E300,
Stephen Rothwell49209602005-10-12 15:55:09 +1000760 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700761 .icache_bsize = 32,
762 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100763 .cpu_setup = __setup_cpu_603,
764 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700765 },
766 { /* default match, we assume split I/D cache & TB (non-601)... */
767 .pvr_mask = 0x00000000,
768 .pvr_value = 0x00000000,
769 .cpu_name = "(generic PPC)",
Kumar Gala10b35d92005-09-23 14:08:58 -0500770 .cpu_features = CPU_FTRS_CLASSIC32,
Stephen Rothwell49209602005-10-12 15:55:09 +1000771 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700772 .icache_bsize = 32,
773 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100774 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700775 },
776#endif /* CLASSIC_PPC */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700777#ifdef CONFIG_8xx
778 { /* 8xx */
779 .pvr_mask = 0xffff0000,
780 .pvr_value = 0x00500000,
781 .cpu_name = "8xx",
782 /* CPU_FTR_MAYBE_CAN_DOZE is possible,
783 * if the 8xx code is there.... */
Kumar Gala10b35d92005-09-23 14:08:58 -0500784 .cpu_features = CPU_FTRS_8XX,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700785 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
786 .icache_bsize = 16,
787 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100788 .platform = "ppc823",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700789 },
790#endif /* CONFIG_8xx */
791#ifdef CONFIG_40x
792 { /* 403GC */
793 .pvr_mask = 0xffffff00,
794 .pvr_value = 0x00200200,
795 .cpu_name = "403GC",
Kumar Gala10b35d92005-09-23 14:08:58 -0500796 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700797 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
798 .icache_bsize = 16,
799 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100800 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700801 },
802 { /* 403GCX */
803 .pvr_mask = 0xffffff00,
804 .pvr_value = 0x00201400,
805 .cpu_name = "403GCX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500806 .cpu_features = CPU_FTRS_40X,
Paul Mackerras98599012005-10-22 16:51:34 +1000807 .cpu_user_features = PPC_FEATURE_32 |
808 PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700809 .icache_bsize = 16,
810 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100811 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700812 },
813 { /* 403G ?? */
814 .pvr_mask = 0xffff0000,
815 .pvr_value = 0x00200000,
816 .cpu_name = "403G ??",
Kumar Gala10b35d92005-09-23 14:08:58 -0500817 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700818 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
819 .icache_bsize = 16,
820 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100821 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700822 },
823 { /* 405GP */
824 .pvr_mask = 0xffff0000,
825 .pvr_value = 0x40110000,
826 .cpu_name = "405GP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500827 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700828 .cpu_user_features = PPC_FEATURE_32 |
829 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
830 .icache_bsize = 32,
831 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100832 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700833 },
834 { /* STB 03xxx */
835 .pvr_mask = 0xffff0000,
836 .pvr_value = 0x40130000,
837 .cpu_name = "STB03xxx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500838 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700839 .cpu_user_features = PPC_FEATURE_32 |
840 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
841 .icache_bsize = 32,
842 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100843 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700844 },
845 { /* STB 04xxx */
846 .pvr_mask = 0xffff0000,
847 .pvr_value = 0x41810000,
848 .cpu_name = "STB04xxx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500849 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700850 .cpu_user_features = PPC_FEATURE_32 |
851 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
852 .icache_bsize = 32,
853 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100854 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700855 },
856 { /* NP405L */
857 .pvr_mask = 0xffff0000,
858 .pvr_value = 0x41610000,
859 .cpu_name = "NP405L",
Kumar Gala10b35d92005-09-23 14:08:58 -0500860 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700861 .cpu_user_features = PPC_FEATURE_32 |
862 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
863 .icache_bsize = 32,
864 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100865 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700866 },
867 { /* NP4GS3 */
868 .pvr_mask = 0xffff0000,
869 .pvr_value = 0x40B10000,
870 .cpu_name = "NP4GS3",
Kumar Gala10b35d92005-09-23 14:08:58 -0500871 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700872 .cpu_user_features = PPC_FEATURE_32 |
873 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
874 .icache_bsize = 32,
875 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100876 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700877 },
878 { /* NP405H */
879 .pvr_mask = 0xffff0000,
880 .pvr_value = 0x41410000,
881 .cpu_name = "NP405H",
Kumar Gala10b35d92005-09-23 14:08:58 -0500882 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700883 .cpu_user_features = PPC_FEATURE_32 |
884 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
885 .icache_bsize = 32,
886 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100887 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700888 },
889 { /* 405GPr */
890 .pvr_mask = 0xffff0000,
891 .pvr_value = 0x50910000,
892 .cpu_name = "405GPr",
Kumar Gala10b35d92005-09-23 14:08:58 -0500893 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700894 .cpu_user_features = PPC_FEATURE_32 |
895 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
896 .icache_bsize = 32,
897 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100898 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700899 },
900 { /* STBx25xx */
901 .pvr_mask = 0xffff0000,
902 .pvr_value = 0x51510000,
903 .cpu_name = "STBx25xx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500904 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700905 .cpu_user_features = PPC_FEATURE_32 |
906 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
907 .icache_bsize = 32,
908 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100909 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700910 },
911 { /* 405LP */
912 .pvr_mask = 0xffff0000,
913 .pvr_value = 0x41F10000,
914 .cpu_name = "405LP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500915 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700916 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
917 .icache_bsize = 32,
918 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100919 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700920 },
921 { /* Xilinx Virtex-II Pro */
Grant C. Likely72646c72006-01-19 01:13:20 -0700922 .pvr_mask = 0xfffff000,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700923 .pvr_value = 0x20010000,
924 .cpu_name = "Virtex-II Pro",
Kumar Gala10b35d92005-09-23 14:08:58 -0500925 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700926 .cpu_user_features = PPC_FEATURE_32 |
927 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
928 .icache_bsize = 32,
929 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100930 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700931 },
Grant C. Likely72646c72006-01-19 01:13:20 -0700932 { /* Xilinx Virtex-4 FX */
933 .pvr_mask = 0xfffff000,
934 .pvr_value = 0x20011000,
935 .cpu_name = "Virtex-4 FX",
936 .cpu_features = CPU_FTRS_40X,
937 .cpu_user_features = PPC_FEATURE_32 |
938 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
939 .icache_bsize = 32,
940 .dcache_bsize = 32,
941 },
Eugene Suroveginad95d602005-06-07 13:22:09 -0700942 { /* 405EP */
943 .pvr_mask = 0xffff0000,
944 .pvr_value = 0x51210000,
945 .cpu_name = "405EP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500946 .cpu_features = CPU_FTRS_40X,
Eugene Suroveginad95d602005-06-07 13:22:09 -0700947 .cpu_user_features = PPC_FEATURE_32 |
948 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
949 .icache_bsize = 32,
950 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100951 .platform = "ppc405",
Eugene Suroveginad95d602005-06-07 13:22:09 -0700952 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700953
954#endif /* CONFIG_40x */
955#ifdef CONFIG_44x
Matt Porterc9cf73a2005-07-31 22:34:52 -0700956 {
957 .pvr_mask = 0xf0000fff,
958 .pvr_value = 0x40000850,
959 .cpu_name = "440EP Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -0500960 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100961 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Matt Porterc9cf73a2005-07-31 22:34:52 -0700962 .icache_bsize = 32,
963 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100964 .platform = "ppc440",
Matt Porterc9cf73a2005-07-31 22:34:52 -0700965 },
966 {
967 .pvr_mask = 0xf0000fff,
968 .pvr_value = 0x400008d3,
969 .cpu_name = "440EP Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -0500970 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100971 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Matt Porterc9cf73a2005-07-31 22:34:52 -0700972 .icache_bsize = 32,
973 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100974 .platform = "ppc440",
Matt Porterc9cf73a2005-07-31 22:34:52 -0700975 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000976 { /* 440GP Rev. B */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700977 .pvr_mask = 0xf0000fff,
978 .pvr_value = 0x40000440,
979 .cpu_name = "440GP Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -0500980 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100981 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700982 .icache_bsize = 32,
983 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100984 .platform = "ppc440gp",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700985 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000986 { /* 440GP Rev. C */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700987 .pvr_mask = 0xf0000fff,
988 .pvr_value = 0x40000481,
989 .cpu_name = "440GP Rev. C",
Kumar Gala10b35d92005-09-23 14:08:58 -0500990 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100991 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700992 .icache_bsize = 32,
993 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100994 .platform = "ppc440gp",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700995 },
996 { /* 440GX Rev. A */
997 .pvr_mask = 0xf0000fff,
998 .pvr_value = 0x50000850,
999 .cpu_name = "440GX Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -05001000 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001001 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001002 .icache_bsize = 32,
1003 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001004 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001005 },
1006 { /* 440GX Rev. B */
1007 .pvr_mask = 0xf0000fff,
1008 .pvr_value = 0x50000851,
1009 .cpu_name = "440GX Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -05001010 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001011 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001012 .icache_bsize = 32,
1013 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001014 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001015 },
1016 { /* 440GX Rev. C */
1017 .pvr_mask = 0xf0000fff,
1018 .pvr_value = 0x50000892,
1019 .cpu_name = "440GX Rev. C",
Kumar Gala10b35d92005-09-23 14:08:58 -05001020 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001021 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001022 .icache_bsize = 32,
1023 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001024 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001025 },
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001026 { /* 440GX Rev. F */
1027 .pvr_mask = 0xf0000fff,
1028 .pvr_value = 0x50000894,
1029 .cpu_name = "440GX Rev. F",
Kumar Gala10b35d92005-09-23 14:08:58 -05001030 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001031 .cpu_user_features = COMMON_USER_BOOKE,
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001032 .icache_bsize = 32,
1033 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001034 .platform = "ppc440",
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001035 },
Matt Porter656de7e2005-09-03 15:55:42 -07001036 { /* 440SP Rev. A */
1037 .pvr_mask = 0xff000fff,
1038 .pvr_value = 0x53000891,
1039 .cpu_name = "440SP Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -05001040 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001041 .cpu_user_features = COMMON_USER_BOOKE,
Matt Porter656de7e2005-09-03 15:55:42 -07001042 .icache_bsize = 32,
1043 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001044 .platform = "ppc440",
Matt Porter656de7e2005-09-03 15:55:42 -07001045 },
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001046 { /* 440SPe Rev. A */
1047 .pvr_mask = 0xff000fff,
1048 .pvr_value = 0x53000890,
1049 .cpu_name = "440SPe Rev. A",
1050 .cpu_features = CPU_FTR_SPLIT_ID_CACHE |
1051 CPU_FTR_USE_TB,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001052 .cpu_user_features = COMMON_USER_BOOKE,
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001053 .icache_bsize = 32,
1054 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001055 .platform = "ppc440",
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001056 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001057#endif /* CONFIG_44x */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001058#ifdef CONFIG_FSL_BOOKE
Stephen Rothwell49209602005-10-12 15:55:09 +10001059 { /* e200z5 */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001060 .pvr_mask = 0xfff00000,
1061 .pvr_value = 0x81000000,
1062 .cpu_name = "e200z5",
1063 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001064 .cpu_features = CPU_FTRS_E200,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001065 .cpu_user_features = COMMON_USER_BOOKE |
1066 PPC_FEATURE_HAS_EFP_SINGLE |
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001067 PPC_FEATURE_UNIFIED_CACHE,
1068 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001069 .platform = "ppc5554",
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001070 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001071 { /* e200z6 */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001072 .pvr_mask = 0xfff00000,
1073 .pvr_value = 0x81100000,
1074 .cpu_name = "e200z6",
1075 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001076 .cpu_features = CPU_FTRS_E200,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001077 .cpu_user_features = COMMON_USER_BOOKE |
1078 PPC_FEATURE_SPE_COMP |
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001079 PPC_FEATURE_HAS_EFP_SINGLE |
1080 PPC_FEATURE_UNIFIED_CACHE,
1081 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001082 .platform = "ppc5554",
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001083 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001084 { /* e500 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001085 .pvr_mask = 0xffff0000,
1086 .pvr_value = 0x80200000,
1087 .cpu_name = "e500",
1088 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001089 .cpu_features = CPU_FTRS_E500,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001090 .cpu_user_features = COMMON_USER_BOOKE |
1091 PPC_FEATURE_SPE_COMP |
Linus Torvalds1da177e2005-04-16 15:20:36 -07001092 PPC_FEATURE_HAS_EFP_SINGLE,
1093 .icache_bsize = 32,
1094 .dcache_bsize = 32,
1095 .num_pmcs = 4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001096 .oprofile_cpu_type = "ppc/e500",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001097 .oprofile_type = PPC_OPROFILE_BOOKE,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001098 .platform = "ppc8540",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001099 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001100 { /* e500v2 */
Kumar Gala5b37b702005-06-21 17:15:18 -07001101 .pvr_mask = 0xffff0000,
1102 .pvr_value = 0x80210000,
1103 .cpu_name = "e500v2",
1104 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001105 .cpu_features = CPU_FTRS_E500_2,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001106 .cpu_user_features = COMMON_USER_BOOKE |
1107 PPC_FEATURE_SPE_COMP |
1108 PPC_FEATURE_HAS_EFP_SINGLE |
1109 PPC_FEATURE_HAS_EFP_DOUBLE,
Kumar Gala5b37b702005-06-21 17:15:18 -07001110 .icache_bsize = 32,
1111 .dcache_bsize = 32,
1112 .num_pmcs = 4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001113 .oprofile_cpu_type = "ppc/e500",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001114 .oprofile_type = PPC_OPROFILE_BOOKE,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001115 .platform = "ppc8548",
Kumar Gala5b37b702005-06-21 17:15:18 -07001116 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001117#endif
1118#if !CLASSIC_PPC
1119 { /* default match */
1120 .pvr_mask = 0x00000000,
1121 .pvr_value = 0x00000000,
1122 .cpu_name = "(generic PPC)",
Kumar Gala10b35d92005-09-23 14:08:58 -05001123 .cpu_features = CPU_FTRS_GENERIC_32,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001124 .cpu_user_features = PPC_FEATURE_32,
1125 .icache_bsize = 32,
1126 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001127 .platform = "powerpc",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001128 }
1129#endif /* !CLASSIC_PPC */
Stephen Rothwell49209602005-10-12 15:55:09 +10001130#endif /* CONFIG_PPC32 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001131};