blob: 1c114880dc0504fe7d8e5c64b851ad23fdc69cab [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 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000192 { /* PPC970FX */
193 .pvr_mask = 0xffff0000,
194 .pvr_value = 0x003c0000,
195 .cpu_name = "PPC970FX",
Stephen Rothwell49209602005-10-12 15:55:09 +1000196 .cpu_features = CPU_FTRS_PPC970,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100197 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000198 PPC_FEATURE_HAS_ALTIVEC_COMP,
199 .icache_bsize = 128,
200 .dcache_bsize = 128,
201 .num_pmcs = 8,
202 .cpu_setup = __setup_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000203 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000204 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100205 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000206 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000207 { /* PPC970MP */
208 .pvr_mask = 0xffff0000,
209 .pvr_value = 0x00440000,
210 .cpu_name = "PPC970MP",
211 .cpu_features = CPU_FTRS_PPC970,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100212 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000213 PPC_FEATURE_HAS_ALTIVEC_COMP,
214 .icache_bsize = 128,
215 .dcache_bsize = 128,
Anton Blanchard87af41b2006-05-05 05:44:26 +1000216 .num_pmcs = 8,
Stephen Rothwell49209602005-10-12 15:55:09 +1000217 .cpu_setup = __setup_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000218 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000219 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100220 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000221 },
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100222 { /* Power5 GR */
Stephen Rothwell49209602005-10-12 15:55:09 +1000223 .pvr_mask = 0xffff0000,
224 .pvr_value = 0x003a0000,
225 .cpu_name = "POWER5 (gr)",
226 .cpu_features = CPU_FTRS_POWER5,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100227 .cpu_user_features = COMMON_USER_POWER5,
Stephen Rothwell49209602005-10-12 15:55:09 +1000228 .icache_bsize = 128,
229 .dcache_bsize = 128,
230 .num_pmcs = 6,
Stephen Rothwell49209602005-10-12 15:55:09 +1000231 .oprofile_cpu_type = "ppc64/power5",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000232 .oprofile_type = PPC_OPROFILE_POWER4,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000233 /* SIHV / SIPR bits are implemented on POWER4+ (GQ)
234 * and above but only works on POWER5 and above
235 */
236 .oprofile_mmcra_sihv = MMCRA_SIHV,
237 .oprofile_mmcra_sipr = MMCRA_SIPR,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100238 .platform = "power5",
Stephen Rothwell49209602005-10-12 15:55:09 +1000239 },
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100240 { /* Power5 GS */
Stephen Rothwell49209602005-10-12 15:55:09 +1000241 .pvr_mask = 0xffff0000,
242 .pvr_value = 0x003b0000,
Anton Blanchard834608f2006-01-09 15:42:30 +1100243 .cpu_name = "POWER5+ (gs)",
Stephen Rothwell49209602005-10-12 15:55:09 +1000244 .cpu_features = CPU_FTRS_POWER5,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100245 .cpu_user_features = COMMON_USER_POWER5_PLUS,
Stephen Rothwell49209602005-10-12 15:55:09 +1000246 .icache_bsize = 128,
247 .dcache_bsize = 128,
248 .num_pmcs = 6,
Anton Blanchard834608f2006-01-09 15:42:30 +1100249 .oprofile_cpu_type = "ppc64/power5+",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000250 .oprofile_type = PPC_OPROFILE_POWER4,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000251 .oprofile_mmcra_sihv = MMCRA_SIHV,
252 .oprofile_mmcra_sipr = MMCRA_SIPR,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100253 .platform = "power5+",
Stephen Rothwell49209602005-10-12 15:55:09 +1000254 },
Anton Blanchard03054d52006-04-29 09:51:06 +1000255 { /* Power6 */
256 .pvr_mask = 0xffff0000,
257 .pvr_value = 0x003e0000,
258 .cpu_name = "POWER6",
259 .cpu_features = CPU_FTRS_POWER6,
260 .cpu_user_features = COMMON_USER_POWER6,
261 .icache_bsize = 128,
262 .dcache_bsize = 128,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000263 .num_pmcs = 8,
Anton Blanchard03054d52006-04-29 09:51:06 +1000264 .oprofile_cpu_type = "ppc64/power6",
265 .oprofile_type = PPC_OPROFILE_POWER4,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000266 .oprofile_mmcra_sihv = POWER6_MMCRA_SIHV,
267 .oprofile_mmcra_sipr = POWER6_MMCRA_SIPR,
268 .oprofile_mmcra_clear = POWER6_MMCRA_THRM |
269 POWER6_MMCRA_OTHER,
Anton Blanchard03054d52006-04-29 09:51:06 +1000270 .platform = "power6",
271 },
Arnd Bergmannc902be72006-01-04 19:55:53 +0000272 { /* Cell Broadband Engine */
Stephen Rothwell49209602005-10-12 15:55:09 +1000273 .pvr_mask = 0xffff0000,
274 .pvr_value = 0x00700000,
275 .cpu_name = "Cell Broadband Engine",
276 .cpu_features = CPU_FTRS_CELL,
277 .cpu_user_features = COMMON_USER_PPC64 |
Benjamin Herrenschmidtaa5cb022006-03-01 15:07:07 +1100278 PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP |
279 PPC_FEATURE_SMT,
Stephen Rothwell49209602005-10-12 15:55:09 +1000280 .icache_bsize = 128,
281 .dcache_bsize = 128,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100282 .platform = "ppc-cell-be",
Stephen Rothwell49209602005-10-12 15:55:09 +1000283 },
284 { /* default match */
285 .pvr_mask = 0x00000000,
286 .pvr_value = 0x00000000,
287 .cpu_name = "POWER4 (compatible)",
288 .cpu_features = CPU_FTRS_COMPATIBLE,
289 .cpu_user_features = COMMON_USER_PPC64,
290 .icache_bsize = 128,
291 .dcache_bsize = 128,
292 .num_pmcs = 6,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100293 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000294 }
295#endif /* CONFIG_PPC64 */
296#ifdef CONFIG_PPC32
Linus Torvalds1da177e2005-04-16 15:20:36 -0700297#if CLASSIC_PPC
Stephen Rothwell49209602005-10-12 15:55:09 +1000298 { /* 601 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700299 .pvr_mask = 0xffff0000,
300 .pvr_value = 0x00010000,
301 .cpu_name = "601",
Kumar Gala10b35d92005-09-23 14:08:58 -0500302 .cpu_features = CPU_FTRS_PPC601,
Stephen Rothwell49209602005-10-12 15:55:09 +1000303 .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR |
Paul Mackerras98599012005-10-22 16:51:34 +1000304 PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700305 .icache_bsize = 32,
306 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100307 .platform = "ppc601",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700308 },
309 { /* 603 */
310 .pvr_mask = 0xffff0000,
311 .pvr_value = 0x00030000,
312 .cpu_name = "603",
Kumar Gala10b35d92005-09-23 14:08:58 -0500313 .cpu_features = CPU_FTRS_603,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000314 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700315 .icache_bsize = 32,
316 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100317 .cpu_setup = __setup_cpu_603,
318 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700319 },
320 { /* 603e */
321 .pvr_mask = 0xffff0000,
322 .pvr_value = 0x00060000,
323 .cpu_name = "603e",
Kumar Gala10b35d92005-09-23 14:08:58 -0500324 .cpu_features = CPU_FTRS_603,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000325 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700326 .icache_bsize = 32,
327 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100328 .cpu_setup = __setup_cpu_603,
329 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700330 },
331 { /* 603ev */
332 .pvr_mask = 0xffff0000,
333 .pvr_value = 0x00070000,
334 .cpu_name = "603ev",
Kumar Gala10b35d92005-09-23 14:08:58 -0500335 .cpu_features = CPU_FTRS_603,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000336 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700337 .icache_bsize = 32,
338 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100339 .cpu_setup = __setup_cpu_603,
340 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700341 },
342 { /* 604 */
343 .pvr_mask = 0xffff0000,
344 .pvr_value = 0x00040000,
345 .cpu_name = "604",
Kumar Gala10b35d92005-09-23 14:08:58 -0500346 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000347 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700348 .icache_bsize = 32,
349 .dcache_bsize = 32,
350 .num_pmcs = 2,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100351 .cpu_setup = __setup_cpu_604,
352 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700353 },
354 { /* 604e */
355 .pvr_mask = 0xfffff000,
356 .pvr_value = 0x00090000,
357 .cpu_name = "604e",
Kumar Gala10b35d92005-09-23 14:08:58 -0500358 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000359 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700360 .icache_bsize = 32,
361 .dcache_bsize = 32,
362 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100363 .cpu_setup = __setup_cpu_604,
364 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700365 },
366 { /* 604r */
367 .pvr_mask = 0xffff0000,
368 .pvr_value = 0x00090000,
369 .cpu_name = "604r",
Kumar Gala10b35d92005-09-23 14:08:58 -0500370 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000371 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700372 .icache_bsize = 32,
373 .dcache_bsize = 32,
374 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100375 .cpu_setup = __setup_cpu_604,
376 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700377 },
378 { /* 604ev */
379 .pvr_mask = 0xffff0000,
380 .pvr_value = 0x000a0000,
381 .cpu_name = "604ev",
Kumar Gala10b35d92005-09-23 14:08:58 -0500382 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000383 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700384 .icache_bsize = 32,
385 .dcache_bsize = 32,
386 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100387 .cpu_setup = __setup_cpu_604,
388 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700389 },
390 { /* 740/750 (0x4202, don't support TAU ?) */
391 .pvr_mask = 0xffffffff,
392 .pvr_value = 0x00084202,
393 .cpu_name = "740/750",
Kumar Gala10b35d92005-09-23 14:08:58 -0500394 .cpu_features = CPU_FTRS_740_NOTAU,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000395 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700396 .icache_bsize = 32,
397 .dcache_bsize = 32,
398 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100399 .cpu_setup = __setup_cpu_750,
400 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700401 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700402 { /* 750CX (80100 and 8010x?) */
403 .pvr_mask = 0xfffffff0,
404 .pvr_value = 0x00080100,
405 .cpu_name = "750CX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500406 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000407 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700408 .icache_bsize = 32,
409 .dcache_bsize = 32,
410 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100411 .cpu_setup = __setup_cpu_750cx,
412 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700413 },
414 { /* 750CX (82201 and 82202) */
415 .pvr_mask = 0xfffffff0,
416 .pvr_value = 0x00082200,
417 .cpu_name = "750CX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500418 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000419 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700420 .icache_bsize = 32,
421 .dcache_bsize = 32,
422 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100423 .cpu_setup = __setup_cpu_750cx,
424 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700425 },
426 { /* 750CXe (82214) */
427 .pvr_mask = 0xfffffff0,
428 .pvr_value = 0x00082210,
429 .cpu_name = "750CXe",
Kumar Gala10b35d92005-09-23 14:08:58 -0500430 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000431 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700432 .icache_bsize = 32,
433 .dcache_bsize = 32,
434 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100435 .cpu_setup = __setup_cpu_750cx,
436 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700437 },
Arthur Othieno7c316252005-09-03 15:55:52 -0700438 { /* 750CXe "Gekko" (83214) */
439 .pvr_mask = 0xffffffff,
440 .pvr_value = 0x00083214,
441 .cpu_name = "750CXe",
Kumar Gala10b35d92005-09-23 14:08:58 -0500442 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000443 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Arthur Othieno7c316252005-09-03 15:55:52 -0700444 .icache_bsize = 32,
445 .dcache_bsize = 32,
446 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100447 .cpu_setup = __setup_cpu_750cx,
448 .platform = "ppc750",
Arthur Othieno7c316252005-09-03 15:55:52 -0700449 },
Arthur Othienoac1ff042005-09-03 15:55:51 -0700450 { /* 745/755 */
451 .pvr_mask = 0xfffff000,
452 .pvr_value = 0x00083000,
453 .cpu_name = "745/755",
Kumar Gala10b35d92005-09-23 14:08:58 -0500454 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000455 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Arthur Othienoac1ff042005-09-03 15:55:51 -0700456 .icache_bsize = 32,
457 .dcache_bsize = 32,
458 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100459 .cpu_setup = __setup_cpu_750,
460 .platform = "ppc750",
Arthur Othienoac1ff042005-09-03 15:55:51 -0700461 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700462 { /* 750FX rev 1.x */
463 .pvr_mask = 0xffffff00,
464 .pvr_value = 0x70000100,
465 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500466 .cpu_features = CPU_FTRS_750FX1,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000467 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700468 .icache_bsize = 32,
469 .dcache_bsize = 32,
470 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100471 .cpu_setup = __setup_cpu_750,
472 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700473 },
474 { /* 750FX rev 2.0 must disable HID0[DPM] */
475 .pvr_mask = 0xffffffff,
476 .pvr_value = 0x70000200,
477 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500478 .cpu_features = CPU_FTRS_750FX2,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000479 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700480 .icache_bsize = 32,
481 .dcache_bsize = 32,
482 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100483 .cpu_setup = __setup_cpu_750,
484 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700485 },
486 { /* 750FX (All revs except 2.0) */
487 .pvr_mask = 0xffff0000,
488 .pvr_value = 0x70000000,
489 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500490 .cpu_features = CPU_FTRS_750FX,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000491 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700492 .icache_bsize = 32,
493 .dcache_bsize = 32,
494 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100495 .cpu_setup = __setup_cpu_750fx,
496 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700497 },
498 { /* 750GX */
499 .pvr_mask = 0xffff0000,
500 .pvr_value = 0x70020000,
501 .cpu_name = "750GX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500502 .cpu_features = CPU_FTRS_750GX,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000503 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700504 .icache_bsize = 32,
505 .dcache_bsize = 32,
506 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100507 .cpu_setup = __setup_cpu_750fx,
508 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700509 },
510 { /* 740/750 (L2CR bit need fixup for 740) */
511 .pvr_mask = 0xffff0000,
512 .pvr_value = 0x00080000,
513 .cpu_name = "740/750",
Kumar Gala10b35d92005-09-23 14:08:58 -0500514 .cpu_features = CPU_FTRS_740,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000515 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700516 .icache_bsize = 32,
517 .dcache_bsize = 32,
518 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100519 .cpu_setup = __setup_cpu_750,
520 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700521 },
522 { /* 7400 rev 1.1 ? (no TAU) */
523 .pvr_mask = 0xffffffff,
524 .pvr_value = 0x000c1101,
525 .cpu_name = "7400 (1.1)",
Kumar Gala10b35d92005-09-23 14:08:58 -0500526 .cpu_features = CPU_FTRS_7400_NOTAU,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000527 .cpu_user_features = COMMON_USER |
528 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700529 .icache_bsize = 32,
530 .dcache_bsize = 32,
531 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100532 .cpu_setup = __setup_cpu_7400,
533 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700534 },
535 { /* 7400 */
536 .pvr_mask = 0xffff0000,
537 .pvr_value = 0x000c0000,
538 .cpu_name = "7400",
Kumar Gala10b35d92005-09-23 14:08:58 -0500539 .cpu_features = CPU_FTRS_7400,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000540 .cpu_user_features = COMMON_USER |
541 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700542 .icache_bsize = 32,
543 .dcache_bsize = 32,
544 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100545 .cpu_setup = __setup_cpu_7400,
546 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700547 },
548 { /* 7410 */
549 .pvr_mask = 0xffff0000,
550 .pvr_value = 0x800c0000,
551 .cpu_name = "7410",
Kumar Gala10b35d92005-09-23 14:08:58 -0500552 .cpu_features = CPU_FTRS_7400,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000553 .cpu_user_features = COMMON_USER |
554 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700555 .icache_bsize = 32,
556 .dcache_bsize = 32,
557 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100558 .cpu_setup = __setup_cpu_7410,
559 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700560 },
561 { /* 7450 2.0 - no doze/nap */
562 .pvr_mask = 0xffffffff,
563 .pvr_value = 0x80000200,
564 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500565 .cpu_features = CPU_FTRS_7450_20,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000566 .cpu_user_features = COMMON_USER |
567 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700568 .icache_bsize = 32,
569 .dcache_bsize = 32,
570 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600571 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600572 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000573 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100574 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700575 },
576 { /* 7450 2.1 */
577 .pvr_mask = 0xffffffff,
578 .pvr_value = 0x80000201,
579 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500580 .cpu_features = CPU_FTRS_7450_21,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000581 .cpu_user_features = COMMON_USER |
582 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700583 .icache_bsize = 32,
584 .dcache_bsize = 32,
585 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600586 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600587 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000588 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100589 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700590 },
591 { /* 7450 2.3 and newer */
592 .pvr_mask = 0xffff0000,
593 .pvr_value = 0x80000000,
594 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500595 .cpu_features = CPU_FTRS_7450_23,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000596 .cpu_user_features = COMMON_USER |
597 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700598 .icache_bsize = 32,
599 .dcache_bsize = 32,
600 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600601 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600602 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000603 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100604 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700605 },
606 { /* 7455 rev 1.x */
607 .pvr_mask = 0xffffff00,
608 .pvr_value = 0x80010100,
609 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500610 .cpu_features = CPU_FTRS_7455_1,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000611 .cpu_user_features = COMMON_USER |
612 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
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,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000626 .cpu_user_features = COMMON_USER |
627 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700628 .icache_bsize = 32,
629 .dcache_bsize = 32,
630 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600631 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600632 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000633 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100634 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700635 },
636 { /* 7455 others */
637 .pvr_mask = 0xffff0000,
638 .pvr_value = 0x80010000,
639 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500640 .cpu_features = CPU_FTRS_7455,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000641 .cpu_user_features = COMMON_USER |
642 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700643 .icache_bsize = 32,
644 .dcache_bsize = 32,
645 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600646 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600647 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000648 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100649 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700650 },
651 { /* 7447/7457 Rev 1.0 */
652 .pvr_mask = 0xffffffff,
653 .pvr_value = 0x80020100,
654 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500655 .cpu_features = CPU_FTRS_7447_10,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000656 .cpu_user_features = COMMON_USER |
657 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700658 .icache_bsize = 32,
659 .dcache_bsize = 32,
660 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600661 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600662 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000663 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100664 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700665 },
666 { /* 7447/7457 Rev 1.1 */
667 .pvr_mask = 0xffffffff,
668 .pvr_value = 0x80020101,
669 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500670 .cpu_features = CPU_FTRS_7447_10,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000671 .cpu_user_features = COMMON_USER |
672 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700673 .icache_bsize = 32,
674 .dcache_bsize = 32,
675 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600676 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600677 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000678 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100679 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700680 },
681 { /* 7447/7457 Rev 1.2 and later */
682 .pvr_mask = 0xffff0000,
683 .pvr_value = 0x80020000,
684 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500685 .cpu_features = CPU_FTRS_7447,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000686 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700687 .icache_bsize = 32,
688 .dcache_bsize = 32,
689 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600690 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600691 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000692 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100693 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700694 },
695 { /* 7447A */
696 .pvr_mask = 0xffff0000,
697 .pvr_value = 0x80030000,
698 .cpu_name = "7447A",
Kumar Gala10b35d92005-09-23 14:08:58 -0500699 .cpu_features = CPU_FTRS_7447A,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000700 .cpu_user_features = COMMON_USER |
701 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700702 .icache_bsize = 32,
703 .dcache_bsize = 32,
704 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600705 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600706 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000707 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100708 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700709 },
Kumar Galabbde6302005-09-03 15:55:55 -0700710 { /* 7448 */
711 .pvr_mask = 0xffff0000,
712 .pvr_value = 0x80040000,
713 .cpu_name = "7448",
Kumar Gala10b35d92005-09-23 14:08:58 -0500714 .cpu_features = CPU_FTRS_7447A,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000715 .cpu_user_features = COMMON_USER |
716 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Kumar Galabbde6302005-09-03 15:55:55 -0700717 .icache_bsize = 32,
718 .dcache_bsize = 32,
719 .num_pmcs = 6,
Andy Fleming555d97a2005-12-15 20:02:04 -0600720 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600721 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000722 .oprofile_type = PPC_OPROFILE_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100723 .platform = "ppc7450",
Kumar Galabbde6302005-09-03 15:55:55 -0700724 },
Jon Loeliger9674ed32006-06-17 17:52:40 -0500725 { /* 8641 */
726 .pvr_mask = 0xffffffff,
727 .pvr_value = 0x80040010,
728 .cpu_name = "8641",
729 .cpu_features = CPU_FTRS_7447A,
730 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
731 .icache_bsize = 32,
732 .dcache_bsize = 32,
733 .num_pmcs = 6,
734 .cpu_setup = __setup_cpu_745x
735 },
736
Linus Torvalds1da177e2005-04-16 15:20:36 -0700737 { /* 82xx (8240, 8245, 8260 are all 603e cores) */
738 .pvr_mask = 0x7fff0000,
739 .pvr_value = 0x00810000,
740 .cpu_name = "82xx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500741 .cpu_features = CPU_FTRS_82XX,
Stephen Rothwell49209602005-10-12 15:55:09 +1000742 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700743 .icache_bsize = 32,
744 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100745 .cpu_setup = __setup_cpu_603,
746 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700747 },
748 { /* All G2_LE (603e core, plus some) have the same pvr */
749 .pvr_mask = 0x7fff0000,
750 .pvr_value = 0x00820000,
751 .cpu_name = "G2_LE",
Kumar Gala10b35d92005-09-23 14:08:58 -0500752 .cpu_features = CPU_FTRS_G2_LE,
Stephen Rothwell49209602005-10-12 15:55:09 +1000753 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700754 .icache_bsize = 32,
755 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100756 .cpu_setup = __setup_cpu_603,
757 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700758 },
759 { /* e300 (a 603e core, plus some) on 83xx */
760 .pvr_mask = 0x7fff0000,
761 .pvr_value = 0x00830000,
762 .cpu_name = "e300",
Kumar Gala10b35d92005-09-23 14:08:58 -0500763 .cpu_features = CPU_FTRS_E300,
Stephen Rothwell49209602005-10-12 15:55:09 +1000764 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700765 .icache_bsize = 32,
766 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100767 .cpu_setup = __setup_cpu_603,
768 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700769 },
770 { /* default match, we assume split I/D cache & TB (non-601)... */
771 .pvr_mask = 0x00000000,
772 .pvr_value = 0x00000000,
773 .cpu_name = "(generic PPC)",
Kumar Gala10b35d92005-09-23 14:08:58 -0500774 .cpu_features = CPU_FTRS_CLASSIC32,
Stephen Rothwell49209602005-10-12 15:55:09 +1000775 .cpu_user_features = COMMON_USER,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700776 .icache_bsize = 32,
777 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100778 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700779 },
780#endif /* CLASSIC_PPC */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700781#ifdef CONFIG_8xx
782 { /* 8xx */
783 .pvr_mask = 0xffff0000,
784 .pvr_value = 0x00500000,
785 .cpu_name = "8xx",
786 /* CPU_FTR_MAYBE_CAN_DOZE is possible,
787 * if the 8xx code is there.... */
Kumar Gala10b35d92005-09-23 14:08:58 -0500788 .cpu_features = CPU_FTRS_8XX,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700789 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
790 .icache_bsize = 16,
791 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100792 .platform = "ppc823",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700793 },
794#endif /* CONFIG_8xx */
795#ifdef CONFIG_40x
796 { /* 403GC */
797 .pvr_mask = 0xffffff00,
798 .pvr_value = 0x00200200,
799 .cpu_name = "403GC",
Kumar Gala10b35d92005-09-23 14:08:58 -0500800 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700801 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
802 .icache_bsize = 16,
803 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100804 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700805 },
806 { /* 403GCX */
807 .pvr_mask = 0xffffff00,
808 .pvr_value = 0x00201400,
809 .cpu_name = "403GCX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500810 .cpu_features = CPU_FTRS_40X,
Paul Mackerras98599012005-10-22 16:51:34 +1000811 .cpu_user_features = PPC_FEATURE_32 |
812 PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700813 .icache_bsize = 16,
814 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100815 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700816 },
817 { /* 403G ?? */
818 .pvr_mask = 0xffff0000,
819 .pvr_value = 0x00200000,
820 .cpu_name = "403G ??",
Kumar Gala10b35d92005-09-23 14:08:58 -0500821 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700822 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
823 .icache_bsize = 16,
824 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100825 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700826 },
827 { /* 405GP */
828 .pvr_mask = 0xffff0000,
829 .pvr_value = 0x40110000,
830 .cpu_name = "405GP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500831 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700832 .cpu_user_features = PPC_FEATURE_32 |
833 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
834 .icache_bsize = 32,
835 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100836 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700837 },
838 { /* STB 03xxx */
839 .pvr_mask = 0xffff0000,
840 .pvr_value = 0x40130000,
841 .cpu_name = "STB03xxx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500842 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700843 .cpu_user_features = PPC_FEATURE_32 |
844 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
845 .icache_bsize = 32,
846 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100847 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700848 },
849 { /* STB 04xxx */
850 .pvr_mask = 0xffff0000,
851 .pvr_value = 0x41810000,
852 .cpu_name = "STB04xxx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500853 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700854 .cpu_user_features = PPC_FEATURE_32 |
855 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
856 .icache_bsize = 32,
857 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100858 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700859 },
860 { /* NP405L */
861 .pvr_mask = 0xffff0000,
862 .pvr_value = 0x41610000,
863 .cpu_name = "NP405L",
Kumar Gala10b35d92005-09-23 14:08:58 -0500864 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700865 .cpu_user_features = PPC_FEATURE_32 |
866 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
867 .icache_bsize = 32,
868 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100869 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700870 },
871 { /* NP4GS3 */
872 .pvr_mask = 0xffff0000,
873 .pvr_value = 0x40B10000,
874 .cpu_name = "NP4GS3",
Kumar Gala10b35d92005-09-23 14:08:58 -0500875 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700876 .cpu_user_features = PPC_FEATURE_32 |
877 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
878 .icache_bsize = 32,
879 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100880 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700881 },
882 { /* NP405H */
883 .pvr_mask = 0xffff0000,
884 .pvr_value = 0x41410000,
885 .cpu_name = "NP405H",
Kumar Gala10b35d92005-09-23 14:08:58 -0500886 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700887 .cpu_user_features = PPC_FEATURE_32 |
888 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
889 .icache_bsize = 32,
890 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100891 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700892 },
893 { /* 405GPr */
894 .pvr_mask = 0xffff0000,
895 .pvr_value = 0x50910000,
896 .cpu_name = "405GPr",
Kumar Gala10b35d92005-09-23 14:08:58 -0500897 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700898 .cpu_user_features = PPC_FEATURE_32 |
899 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
900 .icache_bsize = 32,
901 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100902 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700903 },
904 { /* STBx25xx */
905 .pvr_mask = 0xffff0000,
906 .pvr_value = 0x51510000,
907 .cpu_name = "STBx25xx",
Kumar Gala10b35d92005-09-23 14:08:58 -0500908 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700909 .cpu_user_features = PPC_FEATURE_32 |
910 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
911 .icache_bsize = 32,
912 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100913 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700914 },
915 { /* 405LP */
916 .pvr_mask = 0xffff0000,
917 .pvr_value = 0x41F10000,
918 .cpu_name = "405LP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500919 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700920 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
921 .icache_bsize = 32,
922 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100923 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700924 },
925 { /* Xilinx Virtex-II Pro */
Grant C. Likely72646c72006-01-19 01:13:20 -0700926 .pvr_mask = 0xfffff000,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700927 .pvr_value = 0x20010000,
928 .cpu_name = "Virtex-II Pro",
Kumar Gala10b35d92005-09-23 14:08:58 -0500929 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700930 .cpu_user_features = PPC_FEATURE_32 |
931 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
932 .icache_bsize = 32,
933 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100934 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700935 },
Grant C. Likely72646c72006-01-19 01:13:20 -0700936 { /* Xilinx Virtex-4 FX */
937 .pvr_mask = 0xfffff000,
938 .pvr_value = 0x20011000,
939 .cpu_name = "Virtex-4 FX",
940 .cpu_features = CPU_FTRS_40X,
941 .cpu_user_features = PPC_FEATURE_32 |
942 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
943 .icache_bsize = 32,
944 .dcache_bsize = 32,
945 },
Eugene Suroveginad95d602005-06-07 13:22:09 -0700946 { /* 405EP */
947 .pvr_mask = 0xffff0000,
948 .pvr_value = 0x51210000,
949 .cpu_name = "405EP",
Kumar Gala10b35d92005-09-23 14:08:58 -0500950 .cpu_features = CPU_FTRS_40X,
Eugene Suroveginad95d602005-06-07 13:22:09 -0700951 .cpu_user_features = PPC_FEATURE_32 |
952 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
953 .icache_bsize = 32,
954 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100955 .platform = "ppc405",
Eugene Suroveginad95d602005-06-07 13:22:09 -0700956 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700957
958#endif /* CONFIG_40x */
959#ifdef CONFIG_44x
Matt Porterc9cf73a2005-07-31 22:34:52 -0700960 {
961 .pvr_mask = 0xf0000fff,
962 .pvr_value = 0x40000850,
963 .cpu_name = "440EP Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -0500964 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100965 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Matt Porterc9cf73a2005-07-31 22:34:52 -0700966 .icache_bsize = 32,
967 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100968 .platform = "ppc440",
Matt Porterc9cf73a2005-07-31 22:34:52 -0700969 },
970 {
971 .pvr_mask = 0xf0000fff,
972 .pvr_value = 0x400008d3,
973 .cpu_name = "440EP Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -0500974 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100975 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Matt Porterc9cf73a2005-07-31 22:34:52 -0700976 .icache_bsize = 32,
977 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100978 .platform = "ppc440",
Matt Porterc9cf73a2005-07-31 22:34:52 -0700979 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000980 { /* 440GP Rev. B */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700981 .pvr_mask = 0xf0000fff,
982 .pvr_value = 0x40000440,
983 .cpu_name = "440GP Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -0500984 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100985 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700986 .icache_bsize = 32,
987 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100988 .platform = "ppc440gp",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700989 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000990 { /* 440GP Rev. C */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700991 .pvr_mask = 0xf0000fff,
992 .pvr_value = 0x40000481,
993 .cpu_name = "440GP Rev. C",
Kumar Gala10b35d92005-09-23 14:08:58 -0500994 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100995 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700996 .icache_bsize = 32,
997 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100998 .platform = "ppc440gp",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700999 },
1000 { /* 440GX Rev. A */
1001 .pvr_mask = 0xf0000fff,
1002 .pvr_value = 0x50000850,
1003 .cpu_name = "440GX Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -05001004 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001005 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001006 .icache_bsize = 32,
1007 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001008 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001009 },
1010 { /* 440GX Rev. B */
1011 .pvr_mask = 0xf0000fff,
1012 .pvr_value = 0x50000851,
1013 .cpu_name = "440GX Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -05001014 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001015 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001016 .icache_bsize = 32,
1017 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001018 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001019 },
1020 { /* 440GX Rev. C */
1021 .pvr_mask = 0xf0000fff,
1022 .pvr_value = 0x50000892,
1023 .cpu_name = "440GX Rev. C",
Kumar Gala10b35d92005-09-23 14:08:58 -05001024 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001025 .cpu_user_features = COMMON_USER_BOOKE,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001026 .icache_bsize = 32,
1027 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001028 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001029 },
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001030 { /* 440GX Rev. F */
1031 .pvr_mask = 0xf0000fff,
1032 .pvr_value = 0x50000894,
1033 .cpu_name = "440GX Rev. F",
Kumar Gala10b35d92005-09-23 14:08:58 -05001034 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001035 .cpu_user_features = COMMON_USER_BOOKE,
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001036 .icache_bsize = 32,
1037 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001038 .platform = "ppc440",
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001039 },
Matt Porter656de7e2005-09-03 15:55:42 -07001040 { /* 440SP Rev. A */
1041 .pvr_mask = 0xff000fff,
1042 .pvr_value = 0x53000891,
1043 .cpu_name = "440SP Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -05001044 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001045 .cpu_user_features = COMMON_USER_BOOKE,
Matt Porter656de7e2005-09-03 15:55:42 -07001046 .icache_bsize = 32,
1047 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001048 .platform = "ppc440",
Matt Porter656de7e2005-09-03 15:55:42 -07001049 },
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001050 { /* 440SPe Rev. A */
1051 .pvr_mask = 0xff000fff,
1052 .pvr_value = 0x53000890,
1053 .cpu_name = "440SPe Rev. A",
1054 .cpu_features = CPU_FTR_SPLIT_ID_CACHE |
1055 CPU_FTR_USE_TB,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001056 .cpu_user_features = COMMON_USER_BOOKE,
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001057 .icache_bsize = 32,
1058 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001059 .platform = "ppc440",
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001060 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001061#endif /* CONFIG_44x */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001062#ifdef CONFIG_FSL_BOOKE
Stephen Rothwell49209602005-10-12 15:55:09 +10001063 { /* e200z5 */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001064 .pvr_mask = 0xfff00000,
1065 .pvr_value = 0x81000000,
1066 .cpu_name = "e200z5",
1067 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001068 .cpu_features = CPU_FTRS_E200,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001069 .cpu_user_features = COMMON_USER_BOOKE |
1070 PPC_FEATURE_HAS_EFP_SINGLE |
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001071 PPC_FEATURE_UNIFIED_CACHE,
1072 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001073 .platform = "ppc5554",
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001074 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001075 { /* e200z6 */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001076 .pvr_mask = 0xfff00000,
1077 .pvr_value = 0x81100000,
1078 .cpu_name = "e200z6",
1079 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001080 .cpu_features = CPU_FTRS_E200,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001081 .cpu_user_features = COMMON_USER_BOOKE |
1082 PPC_FEATURE_SPE_COMP |
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001083 PPC_FEATURE_HAS_EFP_SINGLE |
1084 PPC_FEATURE_UNIFIED_CACHE,
1085 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001086 .platform = "ppc5554",
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001087 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001088 { /* e500 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001089 .pvr_mask = 0xffff0000,
1090 .pvr_value = 0x80200000,
1091 .cpu_name = "e500",
1092 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001093 .cpu_features = CPU_FTRS_E500,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001094 .cpu_user_features = COMMON_USER_BOOKE |
1095 PPC_FEATURE_SPE_COMP |
Linus Torvalds1da177e2005-04-16 15:20:36 -07001096 PPC_FEATURE_HAS_EFP_SINGLE,
1097 .icache_bsize = 32,
1098 .dcache_bsize = 32,
1099 .num_pmcs = 4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001100 .oprofile_cpu_type = "ppc/e500",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001101 .oprofile_type = PPC_OPROFILE_BOOKE,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001102 .platform = "ppc8540",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001103 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001104 { /* e500v2 */
Kumar Gala5b37b702005-06-21 17:15:18 -07001105 .pvr_mask = 0xffff0000,
1106 .pvr_value = 0x80210000,
1107 .cpu_name = "e500v2",
1108 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001109 .cpu_features = CPU_FTRS_E500_2,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001110 .cpu_user_features = COMMON_USER_BOOKE |
1111 PPC_FEATURE_SPE_COMP |
1112 PPC_FEATURE_HAS_EFP_SINGLE |
1113 PPC_FEATURE_HAS_EFP_DOUBLE,
Kumar Gala5b37b702005-06-21 17:15:18 -07001114 .icache_bsize = 32,
1115 .dcache_bsize = 32,
1116 .num_pmcs = 4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001117 .oprofile_cpu_type = "ppc/e500",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001118 .oprofile_type = PPC_OPROFILE_BOOKE,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001119 .platform = "ppc8548",
Kumar Gala5b37b702005-06-21 17:15:18 -07001120 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001121#endif
1122#if !CLASSIC_PPC
1123 { /* default match */
1124 .pvr_mask = 0x00000000,
1125 .pvr_value = 0x00000000,
1126 .cpu_name = "(generic PPC)",
Kumar Gala10b35d92005-09-23 14:08:58 -05001127 .cpu_features = CPU_FTRS_GENERIC_32,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001128 .cpu_user_features = PPC_FEATURE_32,
1129 .icache_bsize = 32,
1130 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001131 .platform = "powerpc",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001132 }
1133#endif /* !CLASSIC_PPC */
Stephen Rothwell49209602005-10-12 15:55:09 +10001134#endif /* CONFIG_PPC32 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001135};