blob: c60bbec25c1fe98ca73581ef576d9785c2561a73 [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
Linus Torvalds1da177e2005-04-16 15:20:36 -070013#include <linux/string.h>
14#include <linux/sched.h>
15#include <linux/threads.h>
16#include <linux/init.h>
Paul Gortmaker4b16f8e2011-07-22 18:24:23 -040017#include <linux/export.h>
Kumar Gala400d2212005-09-27 15:13:12 -050018
19#include <asm/oprofile_impl.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070020#include <asm/cputable.h>
Benjamin Herrenschmidt42c4aaa2006-10-24 16:42:40 +100021#include <asm/prom.h> /* for PTRRELOC on ARCH=ppc */
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +000022#include <asm/mmu.h>
David Howellsae3a1972012-03-28 18:30:02 +010023#include <asm/setup.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070024
Kumar Gala400d2212005-09-27 15:13:12 -050025struct cpu_spec* cur_cpu_spec = NULL;
Stephen Rothwell49209602005-10-12 15:55:09 +100026EXPORT_SYMBOL(cur_cpu_spec);
Linus Torvalds1da177e2005-04-16 15:20:36 -070027
Nathan Lynch9115d132008-07-16 09:58:51 +100028/* The platform string corresponding to the real PVR */
29const char *powerpc_base_platform;
30
Stephen Rothwell49209602005-10-12 15:55:09 +100031/* NOTE:
32 * Unlike ppc32, ppc64 will only call this once for the boot CPU, it's
33 * the responsibility of the appropriate CPU save/restore functions to
34 * eventually copy these settings over. Those save/restore aren't yet
35 * part of the cputable though. That has to be fixed for both ppc32
36 * and ppc64
37 */
Geoff Levandb26f1002006-05-19 14:24:18 +100038#ifdef CONFIG_PPC32
Kumar Gala105c31d2009-01-08 08:31:20 -060039extern void __setup_cpu_e200(unsigned long offset, struct cpu_spec* spec);
40extern void __setup_cpu_e500v1(unsigned long offset, struct cpu_spec* spec);
41extern void __setup_cpu_e500v2(unsigned long offset, struct cpu_spec* spec);
42extern void __setup_cpu_e500mc(unsigned long offset, struct cpu_spec* spec);
Valentine Barshak81127532007-09-22 00:46:57 +100043extern void __setup_cpu_440ep(unsigned long offset, struct cpu_spec* spec);
44extern void __setup_cpu_440epx(unsigned long offset, struct cpu_spec* spec);
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +110045extern void __setup_cpu_440gx(unsigned long offset, struct cpu_spec* spec);
Valentine Barshak340ffd22007-09-22 00:50:09 +100046extern void __setup_cpu_440grx(unsigned long offset, struct cpu_spec* spec);
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +110047extern void __setup_cpu_440spe(unsigned long offset, struct cpu_spec* spec);
Grant Likely640d17d2008-12-04 05:39:55 +000048extern void __setup_cpu_440x5(unsigned long offset, struct cpu_spec* spec);
Stefan Roese464076a2008-02-24 08:07:41 +110049extern void __setup_cpu_460ex(unsigned long offset, struct cpu_spec* spec);
Josh Boyer939e6222008-06-11 07:52:40 -040050extern void __setup_cpu_460gt(unsigned long offset, struct cpu_spec* spec);
Madhulika Madishetty6c712092009-02-05 13:31:36 +000051extern void __setup_cpu_460sx(unsigned long offset, struct cpu_spec *spec);
Tirumala Marri6edc3232010-09-13 13:26:11 +000052extern void __setup_cpu_apm821xx(unsigned long offset, struct cpu_spec *spec);
Kumar Gala400d2212005-09-27 15:13:12 -050053extern void __setup_cpu_603(unsigned long offset, struct cpu_spec* spec);
54extern void __setup_cpu_604(unsigned long offset, struct cpu_spec* spec);
55extern void __setup_cpu_750(unsigned long offset, struct cpu_spec* spec);
56extern void __setup_cpu_750cx(unsigned long offset, struct cpu_spec* spec);
57extern void __setup_cpu_750fx(unsigned long offset, struct cpu_spec* spec);
58extern void __setup_cpu_7400(unsigned long offset, struct cpu_spec* spec);
59extern void __setup_cpu_7410(unsigned long offset, struct cpu_spec* spec);
60extern void __setup_cpu_745x(unsigned long offset, struct cpu_spec* spec);
Stephen Rothwell49209602005-10-12 15:55:09 +100061#endif /* CONFIG_PPC32 */
Olof Johanssonf39b7a52006-08-11 00:07:08 -050062#ifdef CONFIG_PPC64
Kumar Gala400d2212005-09-27 15:13:12 -050063extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec);
Olof Johansson5b43d202006-10-04 23:41:41 -050064extern void __setup_cpu_ppc970MP(unsigned long offset, struct cpu_spec* spec);
Olof Johansson11999192007-02-04 16:36:51 -060065extern void __setup_cpu_pa6t(unsigned long offset, struct cpu_spec* spec);
Benjamin Herrenschmidt76b4eda2011-04-14 22:32:01 +000066extern void __setup_cpu_a2(unsigned long offset, struct cpu_spec* spec);
Stephen Rothwell40d244d2007-02-12 22:10:48 +110067extern void __restore_cpu_pa6t(void);
Olof Johanssonf39b7a52006-08-11 00:07:08 -050068extern void __restore_cpu_ppc970(void);
Michael Neulinge952e6c2008-06-18 10:47:26 +100069extern void __setup_cpu_power7(unsigned long offset, struct cpu_spec* spec);
70extern void __restore_cpu_power7(void);
Michael Neulingaec937b2012-10-30 19:34:14 +000071extern void __setup_cpu_power8(unsigned long offset, struct cpu_spec* spec);
72extern void __restore_cpu_power8(void);
Benjamin Herrenschmidt76b4eda2011-04-14 22:32:01 +000073extern void __restore_cpu_a2(void);
Olof Johanssonf39b7a52006-08-11 00:07:08 -050074#endif /* CONFIG_PPC64 */
Kumar Gala4490c062010-10-08 08:32:11 -050075#if defined(CONFIG_E500)
76extern void __setup_cpu_e5500(unsigned long offset, struct cpu_spec* spec);
Kumar Galacd66cc22012-09-07 15:57:17 -050077extern void __setup_cpu_e6500(unsigned long offset, struct cpu_spec* spec);
Kumar Gala4490c062010-10-08 08:32:11 -050078extern void __restore_cpu_e5500(void);
Kumar Galacd66cc22012-09-07 15:57:17 -050079extern void __restore_cpu_e6500(void);
Kumar Gala4490c062010-10-08 08:32:11 -050080#endif /* CONFIG_E500 */
Linus Torvalds1da177e2005-04-16 15:20:36 -070081
Linus Torvalds1da177e2005-04-16 15:20:36 -070082/* This table only contains "desktop" CPUs, it need to be filled with embedded
83 * ones as well...
84 */
Stephen Rothwell49209602005-10-12 15:55:09 +100085#define COMMON_USER (PPC_FEATURE_32 | PPC_FEATURE_HAS_FPU | \
86 PPC_FEATURE_HAS_MMU)
87#define COMMON_USER_PPC64 (COMMON_USER | PPC_FEATURE_64)
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +110088#define COMMON_USER_POWER4 (COMMON_USER_PPC64 | PPC_FEATURE_POWER4)
Benjamin Herrenschmidtaa5cb022006-03-01 15:07:07 +110089#define COMMON_USER_POWER5 (COMMON_USER_PPC64 | PPC_FEATURE_POWER5 |\
90 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
91#define COMMON_USER_POWER5_PLUS (COMMON_USER_PPC64 | PPC_FEATURE_POWER5_PLUS|\
92 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
Anton Blanchard03054d52006-04-29 09:51:06 +100093#define COMMON_USER_POWER6 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_05 |\
Paul Mackerrasfab5db92006-06-07 16:14:40 +100094 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \
Nathan Lynch0f473312008-07-10 01:06:57 +100095 PPC_FEATURE_TRUE_LE | \
96 PPC_FEATURE_PSERIES_PERFMON_COMPAT)
Michael Neulinge952e6c2008-06-18 10:47:26 +100097#define COMMON_USER_POWER7 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_06 |\
98 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \
Nathan Lynch0f473312008-07-10 01:06:57 +100099 PPC_FEATURE_TRUE_LE | \
100 PPC_FEATURE_PSERIES_PERFMON_COMPAT)
Nishanth Aravamudan4a1ae4f2013-05-03 14:48:38 +0000101#define COMMON_USER2_POWER7 (PPC_FEATURE2_DSCR)
Michael Neuling71e18492012-10-30 19:34:15 +0000102#define COMMON_USER_POWER8 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_06 |\
103 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \
104 PPC_FEATURE_TRUE_LE | \
105 PPC_FEATURE_PSERIES_PERFMON_COMPAT)
Nishanth Aravamudan748645b2013-05-03 14:49:59 +0000106#define COMMON_USER2_POWER8 (PPC_FEATURE2_ARCH_2_07 | \
107 PPC_FEATURE2_HTM_COMP | PPC_FEATURE2_DSCR | \
108 PPC_FEATURE2_ISEL | PPC_FEATURE2_TAR)
Olof Johanssonb3ebd1d2006-09-06 14:35:57 -0500109#define COMMON_USER_PA6T (COMMON_USER_PPC64 | PPC_FEATURE_PA6T |\
110 PPC_FEATURE_TRUE_LE | \
111 PPC_FEATURE_HAS_ALTIVEC_COMP)
Kumar Galaf45c4482009-08-18 19:08:30 +0000112#ifdef CONFIG_PPC_BOOK3E_64
113#define COMMON_USER_BOOKE (COMMON_USER_PPC64 | PPC_FEATURE_BOOKE)
114#else
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100115#define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \
116 PPC_FEATURE_BOOKE)
Kumar Galaf45c4482009-08-18 19:08:30 +0000117#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700118
Paul Mackerras87a72f92007-10-04 14:18:01 +1000119static struct cpu_spec __initdata cpu_specs[] = {
Benjamin Herrenschmidt2d27cfd2009-07-23 23:15:59 +0000120#ifdef CONFIG_PPC_BOOK3S_64
Stephen Rothwell49209602005-10-12 15:55:09 +1000121 { /* Power3 */
122 .pvr_mask = 0xffff0000,
123 .pvr_value = 0x00400000,
124 .cpu_name = "POWER3 (630)",
125 .cpu_features = CPU_FTRS_POWER3,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000126 .cpu_user_features = COMMON_USER_PPC64|PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000127 .mmu_features = MMU_FTR_HPTE_TABLE,
Stephen Rothwell49209602005-10-12 15:55:09 +1000128 .icache_bsize = 128,
129 .dcache_bsize = 128,
130 .num_pmcs = 8,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600131 .pmc_type = PPC_PMC_IBM,
Stephen Rothwell49209602005-10-12 15:55:09 +1000132 .oprofile_cpu_type = "ppc64/power3",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000133 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100134 .platform = "power3",
Stephen Rothwell49209602005-10-12 15:55:09 +1000135 },
136 { /* Power3+ */
137 .pvr_mask = 0xffff0000,
138 .pvr_value = 0x00410000,
139 .cpu_name = "POWER3 (630+)",
140 .cpu_features = CPU_FTRS_POWER3,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000141 .cpu_user_features = COMMON_USER_PPC64|PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000142 .mmu_features = MMU_FTR_HPTE_TABLE,
Stephen Rothwell49209602005-10-12 15:55:09 +1000143 .icache_bsize = 128,
144 .dcache_bsize = 128,
145 .num_pmcs = 8,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600146 .pmc_type = PPC_PMC_IBM,
Stephen Rothwell49209602005-10-12 15:55:09 +1000147 .oprofile_cpu_type = "ppc64/power3",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000148 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100149 .platform = "power3",
Stephen Rothwell49209602005-10-12 15:55:09 +1000150 },
151 { /* Northstar */
152 .pvr_mask = 0xffff0000,
153 .pvr_value = 0x00330000,
154 .cpu_name = "RS64-II (northstar)",
155 .cpu_features = CPU_FTRS_RS64,
156 .cpu_user_features = COMMON_USER_PPC64,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000157 .mmu_features = MMU_FTR_HPTE_TABLE,
Stephen Rothwell49209602005-10-12 15:55:09 +1000158 .icache_bsize = 128,
159 .dcache_bsize = 128,
160 .num_pmcs = 8,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600161 .pmc_type = PPC_PMC_IBM,
Stephen Rothwell49209602005-10-12 15:55:09 +1000162 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000163 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100164 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000165 },
166 { /* Pulsar */
167 .pvr_mask = 0xffff0000,
168 .pvr_value = 0x00340000,
169 .cpu_name = "RS64-III (pulsar)",
170 .cpu_features = CPU_FTRS_RS64,
171 .cpu_user_features = COMMON_USER_PPC64,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000172 .mmu_features = MMU_FTR_HPTE_TABLE,
Stephen Rothwell49209602005-10-12 15:55:09 +1000173 .icache_bsize = 128,
174 .dcache_bsize = 128,
175 .num_pmcs = 8,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600176 .pmc_type = PPC_PMC_IBM,
Stephen Rothwell49209602005-10-12 15:55:09 +1000177 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000178 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100179 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000180 },
181 { /* I-star */
182 .pvr_mask = 0xffff0000,
183 .pvr_value = 0x00360000,
184 .cpu_name = "RS64-III (icestar)",
185 .cpu_features = CPU_FTRS_RS64,
186 .cpu_user_features = COMMON_USER_PPC64,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000187 .mmu_features = MMU_FTR_HPTE_TABLE,
Stephen Rothwell49209602005-10-12 15:55:09 +1000188 .icache_bsize = 128,
189 .dcache_bsize = 128,
190 .num_pmcs = 8,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600191 .pmc_type = PPC_PMC_IBM,
Stephen Rothwell49209602005-10-12 15:55:09 +1000192 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000193 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100194 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000195 },
196 { /* S-star */
197 .pvr_mask = 0xffff0000,
198 .pvr_value = 0x00370000,
199 .cpu_name = "RS64-IV (sstar)",
200 .cpu_features = CPU_FTRS_RS64,
201 .cpu_user_features = COMMON_USER_PPC64,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000202 .mmu_features = MMU_FTR_HPTE_TABLE,
Stephen Rothwell49209602005-10-12 15:55:09 +1000203 .icache_bsize = 128,
204 .dcache_bsize = 128,
205 .num_pmcs = 8,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600206 .pmc_type = PPC_PMC_IBM,
Stephen Rothwell49209602005-10-12 15:55:09 +1000207 .oprofile_cpu_type = "ppc64/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000208 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100209 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000210 },
211 { /* Power4 */
212 .pvr_mask = 0xffff0000,
213 .pvr_value = 0x00350000,
214 .cpu_name = "POWER4 (gp)",
215 .cpu_features = CPU_FTRS_POWER4,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100216 .cpu_user_features = COMMON_USER_POWER4,
Matt Evans44ae3ab2011-04-06 19:48:50 +0000217 .mmu_features = MMU_FTRS_POWER4,
Stephen Rothwell49209602005-10-12 15:55:09 +1000218 .icache_bsize = 128,
219 .dcache_bsize = 128,
220 .num_pmcs = 8,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600221 .pmc_type = PPC_PMC_IBM,
Stephen Rothwell49209602005-10-12 15:55:09 +1000222 .oprofile_cpu_type = "ppc64/power4",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000223 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100224 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000225 },
226 { /* Power4+ */
227 .pvr_mask = 0xffff0000,
228 .pvr_value = 0x00380000,
229 .cpu_name = "POWER4+ (gq)",
230 .cpu_features = CPU_FTRS_POWER4,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100231 .cpu_user_features = COMMON_USER_POWER4,
Matt Evans44ae3ab2011-04-06 19:48:50 +0000232 .mmu_features = MMU_FTRS_POWER4,
Stephen Rothwell49209602005-10-12 15:55:09 +1000233 .icache_bsize = 128,
234 .dcache_bsize = 128,
235 .num_pmcs = 8,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600236 .pmc_type = PPC_PMC_IBM,
Stephen Rothwell49209602005-10-12 15:55:09 +1000237 .oprofile_cpu_type = "ppc64/power4",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000238 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100239 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000240 },
241 { /* PPC970 */
242 .pvr_mask = 0xffff0000,
243 .pvr_value = 0x00390000,
244 .cpu_name = "PPC970",
245 .cpu_features = CPU_FTRS_PPC970,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100246 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000247 PPC_FEATURE_HAS_ALTIVEC_COMP,
Matt Evans44ae3ab2011-04-06 19:48:50 +0000248 .mmu_features = MMU_FTRS_PPC970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000249 .icache_bsize = 128,
250 .dcache_bsize = 128,
251 .num_pmcs = 8,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600252 .pmc_type = PPC_PMC_IBM,
Stephen Rothwell49209602005-10-12 15:55:09 +1000253 .cpu_setup = __setup_cpu_ppc970,
Olof Johanssonf39b7a52006-08-11 00:07:08 -0500254 .cpu_restore = __restore_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000255 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000256 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100257 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000258 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000259 { /* PPC970FX */
260 .pvr_mask = 0xffff0000,
261 .pvr_value = 0x003c0000,
262 .cpu_name = "PPC970FX",
Stephen Rothwell49209602005-10-12 15:55:09 +1000263 .cpu_features = CPU_FTRS_PPC970,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100264 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000265 PPC_FEATURE_HAS_ALTIVEC_COMP,
Matt Evans44ae3ab2011-04-06 19:48:50 +0000266 .mmu_features = MMU_FTRS_PPC970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000267 .icache_bsize = 128,
268 .dcache_bsize = 128,
269 .num_pmcs = 8,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600270 .pmc_type = PPC_PMC_IBM,
Stephen Rothwell49209602005-10-12 15:55:09 +1000271 .cpu_setup = __setup_cpu_ppc970,
Olof Johanssonf39b7a52006-08-11 00:07:08 -0500272 .cpu_restore = __restore_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000273 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000274 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100275 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000276 },
Olof Johansson3546e812007-02-26 00:35:14 -0600277 { /* PPC970MP DD1.0 - no DEEPNAP, use regular 970 init */
278 .pvr_mask = 0xffffffff,
279 .pvr_value = 0x00440100,
280 .cpu_name = "PPC970MP",
281 .cpu_features = CPU_FTRS_PPC970,
282 .cpu_user_features = COMMON_USER_POWER4 |
283 PPC_FEATURE_HAS_ALTIVEC_COMP,
Benjamin Herrenschmidtd63ac5f2013-03-13 09:55:02 +1100284 .mmu_features = MMU_FTRS_PPC970,
Olof Johansson3546e812007-02-26 00:35:14 -0600285 .icache_bsize = 128,
286 .dcache_bsize = 128,
287 .num_pmcs = 8,
Anton Blanchard2fae4982007-05-19 15:22:41 +1000288 .pmc_type = PPC_PMC_IBM,
Olof Johansson3546e812007-02-26 00:35:14 -0600289 .cpu_setup = __setup_cpu_ppc970,
290 .cpu_restore = __restore_cpu_ppc970,
291 .oprofile_cpu_type = "ppc64/970MP",
292 .oprofile_type = PPC_OPROFILE_POWER4,
293 .platform = "ppc970",
294 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000295 { /* PPC970MP */
296 .pvr_mask = 0xffff0000,
297 .pvr_value = 0x00440000,
298 .cpu_name = "PPC970MP",
299 .cpu_features = CPU_FTRS_PPC970,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100300 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000301 PPC_FEATURE_HAS_ALTIVEC_COMP,
Matt Evans44ae3ab2011-04-06 19:48:50 +0000302 .mmu_features = MMU_FTRS_PPC970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000303 .icache_bsize = 128,
304 .dcache_bsize = 128,
Anton Blanchard87af41b2006-05-05 05:44:26 +1000305 .num_pmcs = 8,
Anton Blanchard2fae4982007-05-19 15:22:41 +1000306 .pmc_type = PPC_PMC_IBM,
Olof Johansson5b43d202006-10-04 23:41:41 -0500307 .cpu_setup = __setup_cpu_ppc970MP,
Olof Johanssonf39b7a52006-08-11 00:07:08 -0500308 .cpu_restore = __restore_cpu_ppc970,
Mike Wolffecb3522006-11-21 14:41:54 -0600309 .oprofile_cpu_type = "ppc64/970MP",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000310 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100311 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000312 },
Jake Moilanen362ff7b2006-10-18 10:47:22 -0500313 { /* PPC970GX */
314 .pvr_mask = 0xffff0000,
315 .pvr_value = 0x00450000,
316 .cpu_name = "PPC970GX",
317 .cpu_features = CPU_FTRS_PPC970,
318 .cpu_user_features = COMMON_USER_POWER4 |
319 PPC_FEATURE_HAS_ALTIVEC_COMP,
Matt Evans44ae3ab2011-04-06 19:48:50 +0000320 .mmu_features = MMU_FTRS_PPC970,
Jake Moilanen362ff7b2006-10-18 10:47:22 -0500321 .icache_bsize = 128,
322 .dcache_bsize = 128,
323 .num_pmcs = 8,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600324 .pmc_type = PPC_PMC_IBM,
Jake Moilanen362ff7b2006-10-18 10:47:22 -0500325 .cpu_setup = __setup_cpu_ppc970,
326 .oprofile_cpu_type = "ppc64/970",
327 .oprofile_type = PPC_OPROFILE_POWER4,
328 .platform = "ppc970",
329 },
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100330 { /* Power5 GR */
Stephen Rothwell49209602005-10-12 15:55:09 +1000331 .pvr_mask = 0xffff0000,
332 .pvr_value = 0x003a0000,
333 .cpu_name = "POWER5 (gr)",
334 .cpu_features = CPU_FTRS_POWER5,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100335 .cpu_user_features = COMMON_USER_POWER5,
Matt Evans44ae3ab2011-04-06 19:48:50 +0000336 .mmu_features = MMU_FTRS_POWER5,
Stephen Rothwell49209602005-10-12 15:55:09 +1000337 .icache_bsize = 128,
338 .dcache_bsize = 128,
339 .num_pmcs = 6,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600340 .pmc_type = PPC_PMC_IBM,
Stephen Rothwell49209602005-10-12 15:55:09 +1000341 .oprofile_cpu_type = "ppc64/power5",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000342 .oprofile_type = PPC_OPROFILE_POWER4,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000343 /* SIHV / SIPR bits are implemented on POWER4+ (GQ)
344 * and above but only works on POWER5 and above
345 */
346 .oprofile_mmcra_sihv = MMCRA_SIHV,
347 .oprofile_mmcra_sipr = MMCRA_SIPR,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100348 .platform = "power5",
Stephen Rothwell49209602005-10-12 15:55:09 +1000349 },
Mike Wolf31a12ce2007-07-10 13:13:47 -0500350 { /* Power5++ */
351 .pvr_mask = 0xffffff00,
352 .pvr_value = 0x003b0300,
353 .cpu_name = "POWER5+ (gs)",
354 .cpu_features = CPU_FTRS_POWER5,
355 .cpu_user_features = COMMON_USER_POWER5_PLUS,
Matt Evans44ae3ab2011-04-06 19:48:50 +0000356 .mmu_features = MMU_FTRS_POWER5,
Mike Wolf31a12ce2007-07-10 13:13:47 -0500357 .icache_bsize = 128,
358 .dcache_bsize = 128,
359 .num_pmcs = 6,
360 .oprofile_cpu_type = "ppc64/power5++",
361 .oprofile_type = PPC_OPROFILE_POWER4,
362 .oprofile_mmcra_sihv = MMCRA_SIHV,
363 .oprofile_mmcra_sipr = MMCRA_SIPR,
364 .platform = "power5+",
365 },
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100366 { /* Power5 GS */
Stephen Rothwell49209602005-10-12 15:55:09 +1000367 .pvr_mask = 0xffff0000,
368 .pvr_value = 0x003b0000,
Anton Blanchard834608f2006-01-09 15:42:30 +1100369 .cpu_name = "POWER5+ (gs)",
Stephen Rothwell49209602005-10-12 15:55:09 +1000370 .cpu_features = CPU_FTRS_POWER5,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100371 .cpu_user_features = COMMON_USER_POWER5_PLUS,
Matt Evans44ae3ab2011-04-06 19:48:50 +0000372 .mmu_features = MMU_FTRS_POWER5,
Stephen Rothwell49209602005-10-12 15:55:09 +1000373 .icache_bsize = 128,
374 .dcache_bsize = 128,
375 .num_pmcs = 6,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600376 .pmc_type = PPC_PMC_IBM,
Anton Blanchard834608f2006-01-09 15:42:30 +1100377 .oprofile_cpu_type = "ppc64/power5+",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000378 .oprofile_type = PPC_OPROFILE_POWER4,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000379 .oprofile_mmcra_sihv = MMCRA_SIHV,
380 .oprofile_mmcra_sipr = MMCRA_SIPR,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100381 .platform = "power5+",
Stephen Rothwell49209602005-10-12 15:55:09 +1000382 },
Paul Mackerras974a76f2006-11-10 20:38:53 +1100383 { /* POWER6 in P5+ mode; 2.04-compliant processor */
384 .pvr_mask = 0xffffffff,
385 .pvr_value = 0x0f000001,
386 .cpu_name = "POWER5+",
387 .cpu_features = CPU_FTRS_POWER5,
388 .cpu_user_features = COMMON_USER_POWER5_PLUS,
Matt Evans44ae3ab2011-04-06 19:48:50 +0000389 .mmu_features = MMU_FTRS_POWER5,
Paul Mackerras974a76f2006-11-10 20:38:53 +1100390 .icache_bsize = 128,
391 .dcache_bsize = 128,
Michael Wolf79af6c42009-04-27 06:17:54 +0000392 .oprofile_cpu_type = "ppc64/ibm-compat-v1",
393 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras974a76f2006-11-10 20:38:53 +1100394 .platform = "power5+",
395 },
Anton Blanchard03054d52006-04-29 09:51:06 +1000396 { /* Power6 */
397 .pvr_mask = 0xffff0000,
398 .pvr_value = 0x003e0000,
Paul Mackerras974a76f2006-11-10 20:38:53 +1100399 .cpu_name = "POWER6 (raw)",
400 .cpu_features = CPU_FTRS_POWER6,
401 .cpu_user_features = COMMON_USER_POWER6 |
402 PPC_FEATURE_POWER6_EXT,
Matt Evans44ae3ab2011-04-06 19:48:50 +0000403 .mmu_features = MMU_FTRS_POWER6,
Paul Mackerras974a76f2006-11-10 20:38:53 +1100404 .icache_bsize = 128,
405 .dcache_bsize = 128,
406 .num_pmcs = 6,
Anton Blanchard2fae4982007-05-19 15:22:41 +1000407 .pmc_type = PPC_PMC_IBM,
Paul Mackerras974a76f2006-11-10 20:38:53 +1100408 .oprofile_cpu_type = "ppc64/power6",
409 .oprofile_type = PPC_OPROFILE_POWER4,
410 .oprofile_mmcra_sihv = POWER6_MMCRA_SIHV,
411 .oprofile_mmcra_sipr = POWER6_MMCRA_SIPR,
412 .oprofile_mmcra_clear = POWER6_MMCRA_THRM |
413 POWER6_MMCRA_OTHER,
414 .platform = "power6x",
415 },
416 { /* 2.05-compliant processor, i.e. Power6 "architected" mode */
417 .pvr_mask = 0xffffffff,
418 .pvr_value = 0x0f000002,
419 .cpu_name = "POWER6 (architected)",
Anton Blanchard03054d52006-04-29 09:51:06 +1000420 .cpu_features = CPU_FTRS_POWER6,
421 .cpu_user_features = COMMON_USER_POWER6,
Matt Evans44ae3ab2011-04-06 19:48:50 +0000422 .mmu_features = MMU_FTRS_POWER6,
Anton Blanchard03054d52006-04-29 09:51:06 +1000423 .icache_bsize = 128,
424 .dcache_bsize = 128,
Michael Wolf79af6c42009-04-27 06:17:54 +0000425 .oprofile_cpu_type = "ppc64/ibm-compat-v1",
426 .oprofile_type = PPC_OPROFILE_POWER4,
Anton Blanchard03054d52006-04-29 09:51:06 +1000427 .platform = "power6",
428 },
Joel Schopp635f5a62008-06-19 06:18:21 +1000429 { /* 2.06-compliant processor, i.e. Power7 "architected" mode */
430 .pvr_mask = 0xffffffff,
431 .pvr_value = 0x0f000003,
432 .cpu_name = "POWER7 (architected)",
433 .cpu_features = CPU_FTRS_POWER7,
434 .cpu_user_features = COMMON_USER_POWER7,
Nishanth Aravamudan4a1ae4f2013-05-03 14:48:38 +0000435 .cpu_user_features2 = COMMON_USER2_POWER7,
Matt Evans44ae3ab2011-04-06 19:48:50 +0000436 .mmu_features = MMU_FTRS_POWER7,
Joel Schopp635f5a62008-06-19 06:18:21 +1000437 .icache_bsize = 128,
438 .dcache_bsize = 128,
Michael Wolf79af6c42009-04-27 06:17:54 +0000439 .oprofile_type = PPC_OPROFILE_POWER4,
440 .oprofile_cpu_type = "ppc64/ibm-compat-v1",
Benjamin Herrenschmidt24cc67d2011-01-20 18:50:55 +1100441 .cpu_setup = __setup_cpu_power7,
442 .cpu_restore = __restore_cpu_power7,
Joel Schopp635f5a62008-06-19 06:18:21 +1000443 .platform = "power7",
444 },
Michael Neulingc674e702012-11-08 20:26:42 +0000445 { /* 2.07-compliant processor, i.e. Power8 "architected" mode */
446 .pvr_mask = 0xffffffff,
447 .pvr_value = 0x0f000004,
448 .cpu_name = "POWER8 (architected)",
449 .cpu_features = CPU_FTRS_POWER8,
450 .cpu_user_features = COMMON_USER_POWER8,
Nishanth Aravamudan748645b2013-05-03 14:49:59 +0000451 .cpu_user_features2 = COMMON_USER2_POWER8,
Michael Neulingc674e702012-11-08 20:26:42 +0000452 .mmu_features = MMU_FTRS_POWER8,
453 .icache_bsize = 128,
454 .dcache_bsize = 128,
455 .oprofile_type = PPC_OPROFILE_POWER4,
456 .oprofile_cpu_type = "ppc64/ibm-compat-v1",
457 .cpu_setup = __setup_cpu_power8,
458 .cpu_restore = __restore_cpu_power8,
459 .platform = "power8",
460 },
Michael Neulinge952e6c2008-06-18 10:47:26 +1000461 { /* Power7 */
462 .pvr_mask = 0xffff0000,
463 .pvr_value = 0x003f0000,
Joel Schopp635f5a62008-06-19 06:18:21 +1000464 .cpu_name = "POWER7 (raw)",
Michael Neulinge952e6c2008-06-18 10:47:26 +1000465 .cpu_features = CPU_FTRS_POWER7,
466 .cpu_user_features = COMMON_USER_POWER7,
Nishanth Aravamudan4a1ae4f2013-05-03 14:48:38 +0000467 .cpu_user_features2 = COMMON_USER2_POWER7,
Matt Evans44ae3ab2011-04-06 19:48:50 +0000468 .mmu_features = MMU_FTRS_POWER7,
Michael Neulinge952e6c2008-06-18 10:47:26 +1000469 .icache_bsize = 128,
470 .dcache_bsize = 128,
471 .num_pmcs = 6,
472 .pmc_type = PPC_PMC_IBM,
Michael Neulinge952e6c2008-06-18 10:47:26 +1000473 .oprofile_cpu_type = "ppc64/power7",
474 .oprofile_type = PPC_OPROFILE_POWER4,
Benjamin Herrenschmidt24cc67d2011-01-20 18:50:55 +1100475 .cpu_setup = __setup_cpu_power7,
476 .cpu_restore = __restore_cpu_power7,
Michael Neulinge952e6c2008-06-18 10:47:26 +1000477 .platform = "power7",
478 },
Michael Neuling6f08cb32010-11-17 18:52:44 +0000479 { /* Power7+ */
480 .pvr_mask = 0xffff0000,
481 .pvr_value = 0x004A0000,
482 .cpu_name = "POWER7+ (raw)",
483 .cpu_features = CPU_FTRS_POWER7,
484 .cpu_user_features = COMMON_USER_POWER7,
Nishanth Aravamudan4a1ae4f2013-05-03 14:48:38 +0000485 .cpu_user_features = COMMON_USER2_POWER7,
Matt Evans44ae3ab2011-04-06 19:48:50 +0000486 .mmu_features = MMU_FTRS_POWER7,
Michael Neuling6f08cb32010-11-17 18:52:44 +0000487 .icache_bsize = 128,
488 .dcache_bsize = 128,
489 .num_pmcs = 6,
490 .pmc_type = PPC_PMC_IBM,
491 .oprofile_cpu_type = "ppc64/power7",
492 .oprofile_type = PPC_OPROFILE_POWER4,
Benjamin Herrenschmidt24cc67d2011-01-20 18:50:55 +1100493 .cpu_setup = __setup_cpu_power7,
494 .cpu_restore = __restore_cpu_power7,
Michael Neuling6f08cb32010-11-17 18:52:44 +0000495 .platform = "power7+",
496 },
Michael Neuling71e18492012-10-30 19:34:15 +0000497 { /* Power8 */
498 .pvr_mask = 0xffff0000,
499 .pvr_value = 0x004b0000,
500 .cpu_name = "POWER8 (raw)",
501 .cpu_features = CPU_FTRS_POWER8,
502 .cpu_user_features = COMMON_USER_POWER8,
Nishanth Aravamudan748645b2013-05-03 14:49:59 +0000503 .cpu_user_features2 = COMMON_USER2_POWER8,
Michael Neuling71e18492012-10-30 19:34:15 +0000504 .mmu_features = MMU_FTRS_POWER8,
505 .icache_bsize = 128,
506 .dcache_bsize = 128,
507 .num_pmcs = 6,
508 .pmc_type = PPC_PMC_IBM,
509 .oprofile_cpu_type = "ppc64/power8",
510 .oprofile_type = PPC_OPROFILE_POWER4,
511 .cpu_setup = __setup_cpu_power8,
512 .cpu_restore = __restore_cpu_power8,
513 .platform = "power8",
514 },
Arnd Bergmannc902be72006-01-04 19:55:53 +0000515 { /* Cell Broadband Engine */
Stephen Rothwell49209602005-10-12 15:55:09 +1000516 .pvr_mask = 0xffff0000,
517 .pvr_value = 0x00700000,
518 .cpu_name = "Cell Broadband Engine",
519 .cpu_features = CPU_FTRS_CELL,
520 .cpu_user_features = COMMON_USER_PPC64 |
Benjamin Herrenschmidtaa5cb022006-03-01 15:07:07 +1100521 PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP |
522 PPC_FEATURE_SMT,
Matt Evans44ae3ab2011-04-06 19:48:50 +0000523 .mmu_features = MMU_FTRS_CELL,
Stephen Rothwell49209602005-10-12 15:55:09 +1000524 .icache_bsize = 128,
525 .dcache_bsize = 128,
Maynard Johnson18f21902006-11-20 18:45:16 +0100526 .num_pmcs = 4,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600527 .pmc_type = PPC_PMC_IBM,
Maynard Johnson18f21902006-11-20 18:45:16 +0100528 .oprofile_cpu_type = "ppc64/cell-be",
529 .oprofile_type = PPC_OPROFILE_CELL,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100530 .platform = "ppc-cell-be",
Stephen Rothwell49209602005-10-12 15:55:09 +1000531 },
Olof Johanssonb3ebd1d2006-09-06 14:35:57 -0500532 { /* PA Semi PA6T */
533 .pvr_mask = 0x7fff0000,
534 .pvr_value = 0x00900000,
535 .cpu_name = "PA6T",
536 .cpu_features = CPU_FTRS_PA6T,
537 .cpu_user_features = COMMON_USER_PA6T,
Matt Evans44ae3ab2011-04-06 19:48:50 +0000538 .mmu_features = MMU_FTRS_PA6T,
Olof Johanssonb3ebd1d2006-09-06 14:35:57 -0500539 .icache_bsize = 64,
540 .dcache_bsize = 64,
541 .num_pmcs = 6,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600542 .pmc_type = PPC_PMC_PA6T,
Olof Johansson11999192007-02-04 16:36:51 -0600543 .cpu_setup = __setup_cpu_pa6t,
544 .cpu_restore = __restore_cpu_pa6t,
Olof Johansson25fc5302007-04-18 16:38:21 +1000545 .oprofile_cpu_type = "ppc64/pa6t",
546 .oprofile_type = PPC_OPROFILE_PA6T,
Olof Johanssonb3ebd1d2006-09-06 14:35:57 -0500547 .platform = "pa6t",
548 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000549 { /* default match */
550 .pvr_mask = 0x00000000,
551 .pvr_value = 0x00000000,
552 .cpu_name = "POWER4 (compatible)",
553 .cpu_features = CPU_FTRS_COMPATIBLE,
554 .cpu_user_features = COMMON_USER_PPC64,
Matt Evans44ae3ab2011-04-06 19:48:50 +0000555 .mmu_features = MMU_FTRS_DEFAULT_HPTE_ARCH_V2,
Stephen Rothwell49209602005-10-12 15:55:09 +1000556 .icache_bsize = 128,
557 .dcache_bsize = 128,
558 .num_pmcs = 6,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600559 .pmc_type = PPC_PMC_IBM,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100560 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000561 }
Benjamin Herrenschmidt2d27cfd2009-07-23 23:15:59 +0000562#endif /* CONFIG_PPC_BOOK3S_64 */
Benjamin Herrenschmidt2d27cfd2009-07-23 23:15:59 +0000563
Stephen Rothwell49209602005-10-12 15:55:09 +1000564#ifdef CONFIG_PPC32
Linus Torvalds1da177e2005-04-16 15:20:36 -0700565#if CLASSIC_PPC
Stephen Rothwell49209602005-10-12 15:55:09 +1000566 { /* 601 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700567 .pvr_mask = 0xffff0000,
568 .pvr_value = 0x00010000,
569 .cpu_name = "601",
Kumar Gala10b35d92005-09-23 14:08:58 -0500570 .cpu_features = CPU_FTRS_PPC601,
Stephen Rothwell49209602005-10-12 15:55:09 +1000571 .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR |
Paul Mackerras98599012005-10-22 16:51:34 +1000572 PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000573 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700574 .icache_bsize = 32,
575 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100576 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100577 .platform = "ppc601",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700578 },
579 { /* 603 */
580 .pvr_mask = 0xffff0000,
581 .pvr_value = 0x00030000,
582 .cpu_name = "603",
Kumar Gala10b35d92005-09-23 14:08:58 -0500583 .cpu_features = CPU_FTRS_603,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000584 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000585 .mmu_features = 0,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700586 .icache_bsize = 32,
587 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100588 .cpu_setup = __setup_cpu_603,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100589 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100590 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700591 },
592 { /* 603e */
593 .pvr_mask = 0xffff0000,
594 .pvr_value = 0x00060000,
595 .cpu_name = "603e",
Kumar Gala10b35d92005-09-23 14:08:58 -0500596 .cpu_features = CPU_FTRS_603,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000597 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000598 .mmu_features = 0,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700599 .icache_bsize = 32,
600 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100601 .cpu_setup = __setup_cpu_603,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100602 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100603 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700604 },
605 { /* 603ev */
606 .pvr_mask = 0xffff0000,
607 .pvr_value = 0x00070000,
608 .cpu_name = "603ev",
Kumar Gala10b35d92005-09-23 14:08:58 -0500609 .cpu_features = CPU_FTRS_603,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000610 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000611 .mmu_features = 0,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700612 .icache_bsize = 32,
613 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100614 .cpu_setup = __setup_cpu_603,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100615 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100616 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700617 },
618 { /* 604 */
619 .pvr_mask = 0xffff0000,
620 .pvr_value = 0x00040000,
621 .cpu_name = "604",
Kumar Gala10b35d92005-09-23 14:08:58 -0500622 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000623 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000624 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700625 .icache_bsize = 32,
626 .dcache_bsize = 32,
627 .num_pmcs = 2,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100628 .cpu_setup = __setup_cpu_604,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100629 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100630 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700631 },
632 { /* 604e */
633 .pvr_mask = 0xfffff000,
634 .pvr_value = 0x00090000,
635 .cpu_name = "604e",
Kumar Gala10b35d92005-09-23 14:08:58 -0500636 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000637 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000638 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700639 .icache_bsize = 32,
640 .dcache_bsize = 32,
641 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100642 .cpu_setup = __setup_cpu_604,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100643 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100644 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700645 },
646 { /* 604r */
647 .pvr_mask = 0xffff0000,
648 .pvr_value = 0x00090000,
649 .cpu_name = "604r",
Kumar Gala10b35d92005-09-23 14:08:58 -0500650 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000651 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000652 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700653 .icache_bsize = 32,
654 .dcache_bsize = 32,
655 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100656 .cpu_setup = __setup_cpu_604,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100657 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100658 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700659 },
660 { /* 604ev */
661 .pvr_mask = 0xffff0000,
662 .pvr_value = 0x000a0000,
663 .cpu_name = "604ev",
Kumar Gala10b35d92005-09-23 14:08:58 -0500664 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000665 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000666 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700667 .icache_bsize = 32,
668 .dcache_bsize = 32,
669 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100670 .cpu_setup = __setup_cpu_604,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100671 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100672 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700673 },
674 { /* 740/750 (0x4202, don't support TAU ?) */
675 .pvr_mask = 0xffffffff,
676 .pvr_value = 0x00084202,
677 .cpu_name = "740/750",
Kumar Gala10b35d92005-09-23 14:08:58 -0500678 .cpu_features = CPU_FTRS_740_NOTAU,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000679 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000680 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700681 .icache_bsize = 32,
682 .dcache_bsize = 32,
683 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100684 .cpu_setup = __setup_cpu_750,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100685 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100686 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700687 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700688 { /* 750CX (80100 and 8010x?) */
689 .pvr_mask = 0xfffffff0,
690 .pvr_value = 0x00080100,
691 .cpu_name = "750CX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500692 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000693 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000694 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700695 .icache_bsize = 32,
696 .dcache_bsize = 32,
697 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100698 .cpu_setup = __setup_cpu_750cx,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100699 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100700 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700701 },
702 { /* 750CX (82201 and 82202) */
703 .pvr_mask = 0xfffffff0,
704 .pvr_value = 0x00082200,
705 .cpu_name = "750CX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500706 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000707 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000708 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700709 .icache_bsize = 32,
710 .dcache_bsize = 32,
711 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000712 .pmc_type = PPC_PMC_IBM,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100713 .cpu_setup = __setup_cpu_750cx,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100714 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100715 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700716 },
717 { /* 750CXe (82214) */
718 .pvr_mask = 0xfffffff0,
719 .pvr_value = 0x00082210,
720 .cpu_name = "750CXe",
Kumar Gala10b35d92005-09-23 14:08:58 -0500721 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000722 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000723 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700724 .icache_bsize = 32,
725 .dcache_bsize = 32,
726 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000727 .pmc_type = PPC_PMC_IBM,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100728 .cpu_setup = __setup_cpu_750cx,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100729 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100730 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700731 },
Arthur Othieno7c316252005-09-03 15:55:52 -0700732 { /* 750CXe "Gekko" (83214) */
733 .pvr_mask = 0xffffffff,
734 .pvr_value = 0x00083214,
735 .cpu_name = "750CXe",
Kumar Gala10b35d92005-09-23 14:08:58 -0500736 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000737 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000738 .mmu_features = MMU_FTR_HPTE_TABLE,
Arthur Othieno7c316252005-09-03 15:55:52 -0700739 .icache_bsize = 32,
740 .dcache_bsize = 32,
741 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000742 .pmc_type = PPC_PMC_IBM,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100743 .cpu_setup = __setup_cpu_750cx,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100744 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100745 .platform = "ppc750",
Arthur Othieno7c316252005-09-03 15:55:52 -0700746 },
Albert Herranz45158dc2009-12-12 06:31:46 +0000747 { /* 750CL (and "Broadway") */
748 .pvr_mask = 0xfffff0e0,
749 .pvr_value = 0x00087000,
Jake Moilanencfbff8a2006-10-03 14:29:34 -0500750 .cpu_name = "750CL",
Josh Boyera14c4502007-04-13 04:33:25 +1000751 .cpu_features = CPU_FTRS_750CL,
Jake Moilanencfbff8a2006-10-03 14:29:34 -0500752 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000753 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
Jake Moilanencfbff8a2006-10-03 14:29:34 -0500754 .icache_bsize = 32,
755 .dcache_bsize = 32,
756 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000757 .pmc_type = PPC_PMC_IBM,
Josh Boyera14c4502007-04-13 04:33:25 +1000758 .cpu_setup = __setup_cpu_750,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100759 .machine_check = machine_check_generic,
Jake Moilanencfbff8a2006-10-03 14:29:34 -0500760 .platform = "ppc750",
Dragos Tatulea04f56532009-09-16 11:58:15 +0300761 .oprofile_cpu_type = "ppc/750",
762 .oprofile_type = PPC_OPROFILE_G4,
Jake Moilanencfbff8a2006-10-03 14:29:34 -0500763 },
Arthur Othienoac1ff042005-09-03 15:55:51 -0700764 { /* 745/755 */
765 .pvr_mask = 0xfffff000,
766 .pvr_value = 0x00083000,
767 .cpu_name = "745/755",
Kumar Gala10b35d92005-09-23 14:08:58 -0500768 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000769 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000770 .mmu_features = MMU_FTR_HPTE_TABLE,
Arthur Othienoac1ff042005-09-03 15:55:51 -0700771 .icache_bsize = 32,
772 .dcache_bsize = 32,
773 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000774 .pmc_type = PPC_PMC_IBM,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100775 .cpu_setup = __setup_cpu_750,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100776 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100777 .platform = "ppc750",
Arthur Othienoac1ff042005-09-03 15:55:51 -0700778 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700779 { /* 750FX rev 1.x */
780 .pvr_mask = 0xffffff00,
781 .pvr_value = 0x70000100,
782 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500783 .cpu_features = CPU_FTRS_750FX1,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000784 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000785 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700786 .icache_bsize = 32,
787 .dcache_bsize = 32,
788 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000789 .pmc_type = PPC_PMC_IBM,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100790 .cpu_setup = __setup_cpu_750,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100791 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100792 .platform = "ppc750",
Octavian Purdila7c9583a2009-03-04 02:02:42 +0000793 .oprofile_cpu_type = "ppc/750",
794 .oprofile_type = PPC_OPROFILE_G4,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700795 },
796 { /* 750FX rev 2.0 must disable HID0[DPM] */
797 .pvr_mask = 0xffffffff,
798 .pvr_value = 0x70000200,
799 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500800 .cpu_features = CPU_FTRS_750FX2,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000801 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000802 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700803 .icache_bsize = 32,
804 .dcache_bsize = 32,
805 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000806 .pmc_type = PPC_PMC_IBM,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100807 .cpu_setup = __setup_cpu_750,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100808 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100809 .platform = "ppc750",
Octavian Purdila7c9583a2009-03-04 02:02:42 +0000810 .oprofile_cpu_type = "ppc/750",
811 .oprofile_type = PPC_OPROFILE_G4,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700812 },
813 { /* 750FX (All revs except 2.0) */
814 .pvr_mask = 0xffff0000,
815 .pvr_value = 0x70000000,
816 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500817 .cpu_features = CPU_FTRS_750FX,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000818 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000819 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700820 .icache_bsize = 32,
821 .dcache_bsize = 32,
822 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000823 .pmc_type = PPC_PMC_IBM,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100824 .cpu_setup = __setup_cpu_750fx,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100825 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100826 .platform = "ppc750",
Octavian Purdila7c9583a2009-03-04 02:02:42 +0000827 .oprofile_cpu_type = "ppc/750",
828 .oprofile_type = PPC_OPROFILE_G4,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700829 },
830 { /* 750GX */
831 .pvr_mask = 0xffff0000,
832 .pvr_value = 0x70020000,
833 .cpu_name = "750GX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500834 .cpu_features = CPU_FTRS_750GX,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000835 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000836 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700837 .icache_bsize = 32,
838 .dcache_bsize = 32,
839 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000840 .pmc_type = PPC_PMC_IBM,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100841 .cpu_setup = __setup_cpu_750fx,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100842 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100843 .platform = "ppc750",
Octavian Purdila7c9583a2009-03-04 02:02:42 +0000844 .oprofile_cpu_type = "ppc/750",
845 .oprofile_type = PPC_OPROFILE_G4,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700846 },
847 { /* 740/750 (L2CR bit need fixup for 740) */
848 .pvr_mask = 0xffff0000,
849 .pvr_value = 0x00080000,
850 .cpu_name = "740/750",
Kumar Gala10b35d92005-09-23 14:08:58 -0500851 .cpu_features = CPU_FTRS_740,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000852 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000853 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700854 .icache_bsize = 32,
855 .dcache_bsize = 32,
856 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000857 .pmc_type = PPC_PMC_IBM,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100858 .cpu_setup = __setup_cpu_750,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100859 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100860 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700861 },
862 { /* 7400 rev 1.1 ? (no TAU) */
863 .pvr_mask = 0xffffffff,
864 .pvr_value = 0x000c1101,
865 .cpu_name = "7400 (1.1)",
Kumar Gala10b35d92005-09-23 14:08:58 -0500866 .cpu_features = CPU_FTRS_7400_NOTAU,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000867 .cpu_user_features = COMMON_USER |
868 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000869 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700870 .icache_bsize = 32,
871 .dcache_bsize = 32,
872 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000873 .pmc_type = PPC_PMC_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100874 .cpu_setup = __setup_cpu_7400,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100875 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100876 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700877 },
878 { /* 7400 */
879 .pvr_mask = 0xffff0000,
880 .pvr_value = 0x000c0000,
881 .cpu_name = "7400",
Kumar Gala10b35d92005-09-23 14:08:58 -0500882 .cpu_features = CPU_FTRS_7400,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000883 .cpu_user_features = COMMON_USER |
884 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000885 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700886 .icache_bsize = 32,
887 .dcache_bsize = 32,
888 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000889 .pmc_type = PPC_PMC_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100890 .cpu_setup = __setup_cpu_7400,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100891 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100892 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700893 },
894 { /* 7410 */
895 .pvr_mask = 0xffff0000,
896 .pvr_value = 0x800c0000,
897 .cpu_name = "7410",
Kumar Gala10b35d92005-09-23 14:08:58 -0500898 .cpu_features = CPU_FTRS_7400,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000899 .cpu_user_features = COMMON_USER |
900 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000901 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700902 .icache_bsize = 32,
903 .dcache_bsize = 32,
904 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000905 .pmc_type = PPC_PMC_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100906 .cpu_setup = __setup_cpu_7410,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100907 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100908 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700909 },
910 { /* 7450 2.0 - no doze/nap */
911 .pvr_mask = 0xffffffff,
912 .pvr_value = 0x80000200,
913 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500914 .cpu_features = CPU_FTRS_7450_20,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000915 .cpu_user_features = COMMON_USER |
916 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000917 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700918 .icache_bsize = 32,
919 .dcache_bsize = 32,
920 .num_pmcs = 6,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000921 .pmc_type = PPC_PMC_G4,
Andy Fleming555d97a2005-12-15 20:02:04 -0600922 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600923 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000924 .oprofile_type = PPC_OPROFILE_G4,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100925 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100926 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700927 },
928 { /* 7450 2.1 */
929 .pvr_mask = 0xffffffff,
930 .pvr_value = 0x80000201,
931 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500932 .cpu_features = CPU_FTRS_7450_21,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000933 .cpu_user_features = COMMON_USER |
934 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000935 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700936 .icache_bsize = 32,
937 .dcache_bsize = 32,
938 .num_pmcs = 6,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000939 .pmc_type = PPC_PMC_G4,
Andy Fleming555d97a2005-12-15 20:02:04 -0600940 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600941 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000942 .oprofile_type = PPC_OPROFILE_G4,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100943 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100944 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700945 },
946 { /* 7450 2.3 and newer */
947 .pvr_mask = 0xffff0000,
948 .pvr_value = 0x80000000,
949 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500950 .cpu_features = CPU_FTRS_7450_23,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000951 .cpu_user_features = COMMON_USER |
952 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000953 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700954 .icache_bsize = 32,
955 .dcache_bsize = 32,
956 .num_pmcs = 6,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000957 .pmc_type = PPC_PMC_G4,
Andy Fleming555d97a2005-12-15 20:02:04 -0600958 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600959 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000960 .oprofile_type = PPC_OPROFILE_G4,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100961 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100962 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700963 },
964 { /* 7455 rev 1.x */
965 .pvr_mask = 0xffffff00,
966 .pvr_value = 0x80010100,
967 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500968 .cpu_features = CPU_FTRS_7455_1,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000969 .cpu_user_features = COMMON_USER |
970 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000971 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700972 .icache_bsize = 32,
973 .dcache_bsize = 32,
974 .num_pmcs = 6,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000975 .pmc_type = PPC_PMC_G4,
Andy Fleming555d97a2005-12-15 20:02:04 -0600976 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600977 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000978 .oprofile_type = PPC_OPROFILE_G4,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100979 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100980 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700981 },
982 { /* 7455 rev 2.0 */
983 .pvr_mask = 0xffffffff,
984 .pvr_value = 0x80010200,
985 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500986 .cpu_features = CPU_FTRS_7455_20,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000987 .cpu_user_features = COMMON_USER |
988 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000989 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700990 .icache_bsize = 32,
991 .dcache_bsize = 32,
992 .num_pmcs = 6,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000993 .pmc_type = PPC_PMC_G4,
Andy Fleming555d97a2005-12-15 20:02:04 -0600994 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600995 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000996 .oprofile_type = PPC_OPROFILE_G4,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100997 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100998 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700999 },
1000 { /* 7455 others */
1001 .pvr_mask = 0xffff0000,
1002 .pvr_value = 0x80010000,
1003 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -05001004 .cpu_features = CPU_FTRS_7455,
Paul Mackerrasfab5db92006-06-07 16:14:40 +10001005 .cpu_user_features = COMMON_USER |
1006 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001007 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001008 .icache_bsize = 32,
1009 .dcache_bsize = 32,
1010 .num_pmcs = 6,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +10001011 .pmc_type = PPC_PMC_G4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001012 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -06001013 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001014 .oprofile_type = PPC_OPROFILE_G4,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001015 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001016 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001017 },
1018 { /* 7447/7457 Rev 1.0 */
1019 .pvr_mask = 0xffffffff,
1020 .pvr_value = 0x80020100,
1021 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -05001022 .cpu_features = CPU_FTRS_7447_10,
Paul Mackerrasfab5db92006-06-07 16:14:40 +10001023 .cpu_user_features = COMMON_USER |
1024 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001025 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001026 .icache_bsize = 32,
1027 .dcache_bsize = 32,
1028 .num_pmcs = 6,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +10001029 .pmc_type = PPC_PMC_G4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001030 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -06001031 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001032 .oprofile_type = PPC_OPROFILE_G4,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001033 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001034 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001035 },
1036 { /* 7447/7457 Rev 1.1 */
1037 .pvr_mask = 0xffffffff,
1038 .pvr_value = 0x80020101,
1039 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -05001040 .cpu_features = CPU_FTRS_7447_10,
Paul Mackerrasfab5db92006-06-07 16:14:40 +10001041 .cpu_user_features = COMMON_USER |
1042 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001043 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001044 .icache_bsize = 32,
1045 .dcache_bsize = 32,
1046 .num_pmcs = 6,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +10001047 .pmc_type = PPC_PMC_G4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001048 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -06001049 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001050 .oprofile_type = PPC_OPROFILE_G4,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001051 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001052 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001053 },
1054 { /* 7447/7457 Rev 1.2 and later */
1055 .pvr_mask = 0xffff0000,
1056 .pvr_value = 0x80020000,
1057 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -05001058 .cpu_features = CPU_FTRS_7447,
Paul Mackerrasfab5db92006-06-07 16:14:40 +10001059 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001060 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001061 .icache_bsize = 32,
1062 .dcache_bsize = 32,
1063 .num_pmcs = 6,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +10001064 .pmc_type = PPC_PMC_G4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001065 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -06001066 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001067 .oprofile_type = PPC_OPROFILE_G4,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001068 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001069 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001070 },
1071 { /* 7447A */
1072 .pvr_mask = 0xffff0000,
1073 .pvr_value = 0x80030000,
1074 .cpu_name = "7447A",
Kumar Gala10b35d92005-09-23 14:08:58 -05001075 .cpu_features = CPU_FTRS_7447A,
Paul Mackerrasfab5db92006-06-07 16:14:40 +10001076 .cpu_user_features = COMMON_USER |
1077 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001078 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001079 .icache_bsize = 32,
1080 .dcache_bsize = 32,
1081 .num_pmcs = 6,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +10001082 .pmc_type = PPC_PMC_G4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001083 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -06001084 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001085 .oprofile_type = PPC_OPROFILE_G4,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001086 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001087 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001088 },
Kumar Galabbde6302005-09-03 15:55:55 -07001089 { /* 7448 */
1090 .pvr_mask = 0xffff0000,
1091 .pvr_value = 0x80040000,
1092 .cpu_name = "7448",
James.Yang3d372542007-05-02 16:34:43 -05001093 .cpu_features = CPU_FTRS_7448,
Paul Mackerrasfab5db92006-06-07 16:14:40 +10001094 .cpu_user_features = COMMON_USER |
1095 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001096 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
Kumar Galabbde6302005-09-03 15:55:55 -07001097 .icache_bsize = 32,
1098 .dcache_bsize = 32,
1099 .num_pmcs = 6,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +10001100 .pmc_type = PPC_PMC_G4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001101 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -06001102 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001103 .oprofile_type = PPC_OPROFILE_G4,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001104 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001105 .platform = "ppc7450",
Kumar Galabbde6302005-09-03 15:55:55 -07001106 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001107 { /* 82xx (8240, 8245, 8260 are all 603e cores) */
1108 .pvr_mask = 0x7fff0000,
1109 .pvr_value = 0x00810000,
1110 .cpu_name = "82xx",
Kumar Gala10b35d92005-09-23 14:08:58 -05001111 .cpu_features = CPU_FTRS_82XX,
Stephen Rothwell49209602005-10-12 15:55:09 +10001112 .cpu_user_features = COMMON_USER,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001113 .mmu_features = 0,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001114 .icache_bsize = 32,
1115 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001116 .cpu_setup = __setup_cpu_603,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001117 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001118 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001119 },
1120 { /* All G2_LE (603e core, plus some) have the same pvr */
1121 .pvr_mask = 0x7fff0000,
1122 .pvr_value = 0x00820000,
1123 .cpu_name = "G2_LE",
Kumar Gala10b35d92005-09-23 14:08:58 -05001124 .cpu_features = CPU_FTRS_G2_LE,
Stephen Rothwell49209602005-10-12 15:55:09 +10001125 .cpu_user_features = COMMON_USER,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001126 .mmu_features = MMU_FTR_USE_HIGH_BATS,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001127 .icache_bsize = 32,
1128 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001129 .cpu_setup = __setup_cpu_603,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001130 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001131 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001132 },
Kim Phillips6c4a2502006-10-02 20:10:24 -05001133 { /* e300c1 (a 603e core, plus some) on 83xx */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001134 .pvr_mask = 0x7fff0000,
1135 .pvr_value = 0x00830000,
Kim Phillips6c4a2502006-10-02 20:10:24 -05001136 .cpu_name = "e300c1",
Kumar Gala10b35d92005-09-23 14:08:58 -05001137 .cpu_features = CPU_FTRS_E300,
Stephen Rothwell49209602005-10-12 15:55:09 +10001138 .cpu_user_features = COMMON_USER,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001139 .mmu_features = MMU_FTR_USE_HIGH_BATS,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001140 .icache_bsize = 32,
1141 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001142 .cpu_setup = __setup_cpu_603,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001143 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001144 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001145 },
Kim Phillips6c4a2502006-10-02 20:10:24 -05001146 { /* e300c2 (an e300c1 core, plus some, minus FPU) on 83xx */
1147 .pvr_mask = 0x7fff0000,
1148 .pvr_value = 0x00840000,
1149 .cpu_name = "e300c2",
Kim Phillipsaa42c692006-12-08 02:43:30 -06001150 .cpu_features = CPU_FTRS_E300C2,
Kim Phillips6c4a2502006-10-02 20:10:24 -05001151 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
Kumar Gala2319f122009-03-19 03:55:41 +00001152 .mmu_features = MMU_FTR_USE_HIGH_BATS |
1153 MMU_FTR_NEED_DTLB_SW_LRU,
Kim Phillips6c4a2502006-10-02 20:10:24 -05001154 .icache_bsize = 32,
1155 .dcache_bsize = 32,
1156 .cpu_setup = __setup_cpu_603,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001157 .machine_check = machine_check_generic,
Kim Phillips6c4a2502006-10-02 20:10:24 -05001158 .platform = "ppc603",
1159 },
Li Yanga58d5242007-10-19 19:38:42 +08001160 { /* e300c3 (e300c1, plus one IU, half cache size) on 83xx */
Scott Wood57933f82006-12-01 12:57:05 -06001161 .pvr_mask = 0x7fff0000,
1162 .pvr_value = 0x00850000,
1163 .cpu_name = "e300c3",
1164 .cpu_features = CPU_FTRS_E300,
1165 .cpu_user_features = COMMON_USER,
Kumar Gala2319f122009-03-19 03:55:41 +00001166 .mmu_features = MMU_FTR_USE_HIGH_BATS |
1167 MMU_FTR_NEED_DTLB_SW_LRU,
Scott Wood57933f82006-12-01 12:57:05 -06001168 .icache_bsize = 32,
1169 .dcache_bsize = 32,
1170 .cpu_setup = __setup_cpu_603,
Andy Fleming1347a2c12008-02-04 18:28:07 -06001171 .num_pmcs = 4,
1172 .oprofile_cpu_type = "ppc/e300",
1173 .oprofile_type = PPC_OPROFILE_FSL_EMB,
Scott Wood57933f82006-12-01 12:57:05 -06001174 .platform = "ppc603",
1175 },
Li Yanga58d5242007-10-19 19:38:42 +08001176 { /* e300c4 (e300c1, plus one IU) */
1177 .pvr_mask = 0x7fff0000,
1178 .pvr_value = 0x00860000,
1179 .cpu_name = "e300c4",
1180 .cpu_features = CPU_FTRS_E300,
1181 .cpu_user_features = COMMON_USER,
Kumar Gala2319f122009-03-19 03:55:41 +00001182 .mmu_features = MMU_FTR_USE_HIGH_BATS |
1183 MMU_FTR_NEED_DTLB_SW_LRU,
Li Yanga58d5242007-10-19 19:38:42 +08001184 .icache_bsize = 32,
1185 .dcache_bsize = 32,
1186 .cpu_setup = __setup_cpu_603,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001187 .machine_check = machine_check_generic,
Andy Fleming1347a2c12008-02-04 18:28:07 -06001188 .num_pmcs = 4,
1189 .oprofile_cpu_type = "ppc/e300",
1190 .oprofile_type = PPC_OPROFILE_FSL_EMB,
Li Yanga58d5242007-10-19 19:38:42 +08001191 .platform = "ppc603",
1192 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001193 { /* default match, we assume split I/D cache & TB (non-601)... */
1194 .pvr_mask = 0x00000000,
1195 .pvr_value = 0x00000000,
1196 .cpu_name = "(generic PPC)",
Kumar Gala10b35d92005-09-23 14:08:58 -05001197 .cpu_features = CPU_FTRS_CLASSIC32,
Stephen Rothwell49209602005-10-12 15:55:09 +10001198 .cpu_user_features = COMMON_USER,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001199 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001200 .icache_bsize = 32,
1201 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001202 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001203 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001204 },
1205#endif /* CLASSIC_PPC */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001206#ifdef CONFIG_8xx
1207 { /* 8xx */
1208 .pvr_mask = 0xffff0000,
1209 .pvr_value = 0x00500000,
1210 .cpu_name = "8xx",
1211 /* CPU_FTR_MAYBE_CAN_DOZE is possible,
1212 * if the 8xx code is there.... */
Kumar Gala10b35d92005-09-23 14:08:58 -05001213 .cpu_features = CPU_FTRS_8XX,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001214 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001215 .mmu_features = MMU_FTR_TYPE_8xx,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001216 .icache_bsize = 16,
1217 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001218 .platform = "ppc823",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001219 },
1220#endif /* CONFIG_8xx */
1221#ifdef CONFIG_40x
1222 { /* 403GC */
1223 .pvr_mask = 0xffffff00,
1224 .pvr_value = 0x00200200,
1225 .cpu_name = "403GC",
Kumar Gala10b35d92005-09-23 14:08:58 -05001226 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001227 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001228 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001229 .icache_bsize = 16,
1230 .dcache_bsize = 16,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001231 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001232 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001233 },
1234 { /* 403GCX */
1235 .pvr_mask = 0xffffff00,
1236 .pvr_value = 0x00201400,
1237 .cpu_name = "403GCX",
Kumar Gala10b35d92005-09-23 14:08:58 -05001238 .cpu_features = CPU_FTRS_40X,
Paul Mackerras98599012005-10-22 16:51:34 +10001239 .cpu_user_features = PPC_FEATURE_32 |
1240 PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001241 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001242 .icache_bsize = 16,
1243 .dcache_bsize = 16,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001244 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001245 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001246 },
1247 { /* 403G ?? */
1248 .pvr_mask = 0xffff0000,
1249 .pvr_value = 0x00200000,
1250 .cpu_name = "403G ??",
Kumar Gala10b35d92005-09-23 14:08:58 -05001251 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001252 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001253 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001254 .icache_bsize = 16,
1255 .dcache_bsize = 16,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001256 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001257 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001258 },
1259 { /* 405GP */
1260 .pvr_mask = 0xffff0000,
1261 .pvr_value = 0x40110000,
1262 .cpu_name = "405GP",
Kumar Gala10b35d92005-09-23 14:08:58 -05001263 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001264 .cpu_user_features = PPC_FEATURE_32 |
1265 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001266 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001267 .icache_bsize = 32,
1268 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001269 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001270 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001271 },
1272 { /* STB 03xxx */
1273 .pvr_mask = 0xffff0000,
1274 .pvr_value = 0x40130000,
1275 .cpu_name = "STB03xxx",
Kumar Gala10b35d92005-09-23 14:08:58 -05001276 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001277 .cpu_user_features = PPC_FEATURE_32 |
1278 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001279 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001280 .icache_bsize = 32,
1281 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001282 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001283 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001284 },
1285 { /* STB 04xxx */
1286 .pvr_mask = 0xffff0000,
1287 .pvr_value = 0x41810000,
1288 .cpu_name = "STB04xxx",
Kumar Gala10b35d92005-09-23 14:08:58 -05001289 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001290 .cpu_user_features = PPC_FEATURE_32 |
1291 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001292 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001293 .icache_bsize = 32,
1294 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001295 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001296 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001297 },
1298 { /* NP405L */
1299 .pvr_mask = 0xffff0000,
1300 .pvr_value = 0x41610000,
1301 .cpu_name = "NP405L",
Kumar Gala10b35d92005-09-23 14:08:58 -05001302 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001303 .cpu_user_features = PPC_FEATURE_32 |
1304 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001305 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001306 .icache_bsize = 32,
1307 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001308 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001309 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001310 },
1311 { /* NP4GS3 */
1312 .pvr_mask = 0xffff0000,
1313 .pvr_value = 0x40B10000,
1314 .cpu_name = "NP4GS3",
Kumar Gala10b35d92005-09-23 14:08:58 -05001315 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001316 .cpu_user_features = PPC_FEATURE_32 |
1317 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001318 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001319 .icache_bsize = 32,
1320 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001321 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001322 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001323 },
1324 { /* NP405H */
1325 .pvr_mask = 0xffff0000,
1326 .pvr_value = 0x41410000,
1327 .cpu_name = "NP405H",
Kumar Gala10b35d92005-09-23 14:08:58 -05001328 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001329 .cpu_user_features = PPC_FEATURE_32 |
1330 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001331 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001332 .icache_bsize = 32,
1333 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001334 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001335 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001336 },
1337 { /* 405GPr */
1338 .pvr_mask = 0xffff0000,
1339 .pvr_value = 0x50910000,
1340 .cpu_name = "405GPr",
Kumar Gala10b35d92005-09-23 14:08:58 -05001341 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001342 .cpu_user_features = PPC_FEATURE_32 |
1343 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001344 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001345 .icache_bsize = 32,
1346 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001347 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001348 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001349 },
1350 { /* STBx25xx */
1351 .pvr_mask = 0xffff0000,
1352 .pvr_value = 0x51510000,
1353 .cpu_name = "STBx25xx",
Kumar Gala10b35d92005-09-23 14:08:58 -05001354 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001355 .cpu_user_features = PPC_FEATURE_32 |
1356 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001357 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001358 .icache_bsize = 32,
1359 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001360 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001361 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001362 },
1363 { /* 405LP */
1364 .pvr_mask = 0xffff0000,
1365 .pvr_value = 0x41F10000,
1366 .cpu_name = "405LP",
Kumar Gala10b35d92005-09-23 14:08:58 -05001367 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001368 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001369 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001370 .icache_bsize = 32,
1371 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001372 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001373 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001374 },
1375 { /* Xilinx Virtex-II Pro */
Grant C. Likely72646c72006-01-19 01:13:20 -07001376 .pvr_mask = 0xfffff000,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001377 .pvr_value = 0x20010000,
1378 .cpu_name = "Virtex-II Pro",
Kumar Gala10b35d92005-09-23 14:08:58 -05001379 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001380 .cpu_user_features = PPC_FEATURE_32 |
1381 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001382 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001383 .icache_bsize = 32,
1384 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001385 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001386 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001387 },
Grant C. Likely72646c72006-01-19 01:13:20 -07001388 { /* Xilinx Virtex-4 FX */
1389 .pvr_mask = 0xfffff000,
1390 .pvr_value = 0x20011000,
1391 .cpu_name = "Virtex-4 FX",
1392 .cpu_features = CPU_FTRS_40X,
1393 .cpu_user_features = PPC_FEATURE_32 |
1394 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001395 .mmu_features = MMU_FTR_TYPE_40x,
Grant C. Likely72646c72006-01-19 01:13:20 -07001396 .icache_bsize = 32,
1397 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001398 .machine_check = machine_check_4xx,
Peter Bergner838fdb42006-09-14 14:18:38 -05001399 .platform = "ppc405",
Grant C. Likely72646c72006-01-19 01:13:20 -07001400 },
Eugene Suroveginad95d602005-06-07 13:22:09 -07001401 { /* 405EP */
1402 .pvr_mask = 0xffff0000,
1403 .pvr_value = 0x51210000,
1404 .cpu_name = "405EP",
Kumar Gala10b35d92005-09-23 14:08:58 -05001405 .cpu_features = CPU_FTRS_40X,
Eugene Suroveginad95d602005-06-07 13:22:09 -07001406 .cpu_user_features = PPC_FEATURE_32 |
1407 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001408 .mmu_features = MMU_FTR_TYPE_40x,
Eugene Suroveginad95d602005-06-07 13:22:09 -07001409 .icache_bsize = 32,
1410 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001411 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001412 .platform = "ppc405",
Eugene Suroveginad95d602005-06-07 13:22:09 -07001413 },
Lee Nipperff349102010-07-09 01:17:16 +00001414 { /* 405EX Rev. A/B with Security */
1415 .pvr_mask = 0xffff000f,
1416 .pvr_value = 0x12910007,
1417 .cpu_name = "405EX Rev. A/B",
Stefan Roese5d8476c2007-10-11 22:08:14 +10001418 .cpu_features = CPU_FTRS_40X,
1419 .cpu_user_features = PPC_FEATURE_32 |
1420 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001421 .mmu_features = MMU_FTR_TYPE_40x,
Stefan Roese5d8476c2007-10-11 22:08:14 +10001422 .icache_bsize = 32,
1423 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001424 .machine_check = machine_check_4xx,
Stefan Roese5d8476c2007-10-11 22:08:14 +10001425 .platform = "ppc405",
1426 },
Lee Nipperff349102010-07-09 01:17:16 +00001427 { /* 405EX Rev. C without Security */
1428 .pvr_mask = 0xffff000f,
1429 .pvr_value = 0x1291000d,
1430 .cpu_name = "405EX Rev. C",
1431 .cpu_features = CPU_FTRS_40X,
1432 .cpu_user_features = PPC_FEATURE_32 |
1433 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1434 .mmu_features = MMU_FTR_TYPE_40x,
1435 .icache_bsize = 32,
1436 .dcache_bsize = 32,
1437 .machine_check = machine_check_4xx,
1438 .platform = "ppc405",
1439 },
1440 { /* 405EX Rev. C with Security */
1441 .pvr_mask = 0xffff000f,
1442 .pvr_value = 0x1291000f,
1443 .cpu_name = "405EX Rev. C",
1444 .cpu_features = CPU_FTRS_40X,
1445 .cpu_user_features = PPC_FEATURE_32 |
1446 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1447 .mmu_features = MMU_FTR_TYPE_40x,
1448 .icache_bsize = 32,
1449 .dcache_bsize = 32,
1450 .machine_check = machine_check_4xx,
1451 .platform = "ppc405",
1452 },
1453 { /* 405EX Rev. D without Security */
1454 .pvr_mask = 0xffff000f,
1455 .pvr_value = 0x12910003,
1456 .cpu_name = "405EX Rev. D",
1457 .cpu_features = CPU_FTRS_40X,
1458 .cpu_user_features = PPC_FEATURE_32 |
1459 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1460 .mmu_features = MMU_FTR_TYPE_40x,
1461 .icache_bsize = 32,
1462 .dcache_bsize = 32,
1463 .machine_check = machine_check_4xx,
1464 .platform = "ppc405",
1465 },
1466 { /* 405EX Rev. D with Security */
1467 .pvr_mask = 0xffff000f,
1468 .pvr_value = 0x12910005,
1469 .cpu_name = "405EX Rev. D",
1470 .cpu_features = CPU_FTRS_40X,
1471 .cpu_user_features = PPC_FEATURE_32 |
1472 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1473 .mmu_features = MMU_FTR_TYPE_40x,
1474 .icache_bsize = 32,
1475 .dcache_bsize = 32,
1476 .machine_check = machine_check_4xx,
1477 .platform = "ppc405",
1478 },
1479 { /* 405EXr Rev. A/B without Security */
1480 .pvr_mask = 0xffff000f,
1481 .pvr_value = 0x12910001,
1482 .cpu_name = "405EXr Rev. A/B",
1483 .cpu_features = CPU_FTRS_40X,
1484 .cpu_user_features = PPC_FEATURE_32 |
1485 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1486 .mmu_features = MMU_FTR_TYPE_40x,
1487 .icache_bsize = 32,
1488 .dcache_bsize = 32,
1489 .machine_check = machine_check_4xx,
1490 .platform = "ppc405",
1491 },
1492 { /* 405EXr Rev. C without Security */
1493 .pvr_mask = 0xffff000f,
1494 .pvr_value = 0x12910009,
1495 .cpu_name = "405EXr Rev. C",
1496 .cpu_features = CPU_FTRS_40X,
1497 .cpu_user_features = PPC_FEATURE_32 |
1498 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1499 .mmu_features = MMU_FTR_TYPE_40x,
1500 .icache_bsize = 32,
1501 .dcache_bsize = 32,
1502 .machine_check = machine_check_4xx,
1503 .platform = "ppc405",
1504 },
1505 { /* 405EXr Rev. C with Security */
1506 .pvr_mask = 0xffff000f,
1507 .pvr_value = 0x1291000b,
1508 .cpu_name = "405EXr Rev. C",
1509 .cpu_features = CPU_FTRS_40X,
1510 .cpu_user_features = PPC_FEATURE_32 |
1511 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1512 .mmu_features = MMU_FTR_TYPE_40x,
1513 .icache_bsize = 32,
1514 .dcache_bsize = 32,
1515 .machine_check = machine_check_4xx,
1516 .platform = "ppc405",
1517 },
1518 { /* 405EXr Rev. D without Security */
1519 .pvr_mask = 0xffff000f,
Stefan Roeseb676d842008-01-15 18:09:15 +11001520 .pvr_value = 0x12910000,
Lee Nipperff349102010-07-09 01:17:16 +00001521 .cpu_name = "405EXr Rev. D",
1522 .cpu_features = CPU_FTRS_40X,
1523 .cpu_user_features = PPC_FEATURE_32 |
1524 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1525 .mmu_features = MMU_FTR_TYPE_40x,
1526 .icache_bsize = 32,
1527 .dcache_bsize = 32,
1528 .machine_check = machine_check_4xx,
1529 .platform = "ppc405",
1530 },
1531 { /* 405EXr Rev. D with Security */
1532 .pvr_mask = 0xffff000f,
1533 .pvr_value = 0x12910002,
1534 .cpu_name = "405EXr Rev. D",
Stefan Roeseb676d842008-01-15 18:09:15 +11001535 .cpu_features = CPU_FTRS_40X,
1536 .cpu_user_features = PPC_FEATURE_32 |
1537 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001538 .mmu_features = MMU_FTR_TYPE_40x,
Stefan Roeseb676d842008-01-15 18:09:15 +11001539 .icache_bsize = 32,
1540 .dcache_bsize = 32,
1541 .machine_check = machine_check_4xx,
1542 .platform = "ppc405",
1543 },
Josh Boyerdf8f71f2008-10-09 08:56:38 -04001544 {
1545 /* 405EZ */
1546 .pvr_mask = 0xffff0000,
1547 .pvr_value = 0x41510000,
1548 .cpu_name = "405EZ",
1549 .cpu_features = CPU_FTRS_40X,
1550 .cpu_user_features = PPC_FEATURE_32 |
1551 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001552 .mmu_features = MMU_FTR_TYPE_40x,
Josh Boyerdf8f71f2008-10-09 08:56:38 -04001553 .icache_bsize = 32,
1554 .dcache_bsize = 32,
1555 .machine_check = machine_check_4xx,
1556 .platform = "ppc405",
1557 },
Tanmay Inamdard5b9ee72011-11-28 21:01:41 +00001558 { /* APM8018X */
1559 .pvr_mask = 0xffff0000,
1560 .pvr_value = 0x7ff11432,
1561 .cpu_name = "APM8018X",
1562 .cpu_features = CPU_FTRS_40X,
1563 .cpu_user_features = PPC_FEATURE_32 |
1564 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1565 .mmu_features = MMU_FTR_TYPE_40x,
1566 .icache_bsize = 32,
1567 .dcache_bsize = 32,
1568 .machine_check = machine_check_4xx,
1569 .platform = "ppc405",
1570 },
Benjamin Herrenschmidt76bc080e2008-05-05 15:22:27 +10001571 { /* default match */
1572 .pvr_mask = 0x00000000,
1573 .pvr_value = 0x00000000,
1574 .cpu_name = "(generic 40x PPC)",
1575 .cpu_features = CPU_FTRS_40X,
1576 .cpu_user_features = PPC_FEATURE_32 |
1577 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001578 .mmu_features = MMU_FTR_TYPE_40x,
Benjamin Herrenschmidt76bc080e2008-05-05 15:22:27 +10001579 .icache_bsize = 32,
1580 .dcache_bsize = 32,
1581 .machine_check = machine_check_4xx,
1582 .platform = "ppc405",
1583 }
Linus Torvalds1da177e2005-04-16 15:20:36 -07001584
1585#endif /* CONFIG_40x */
1586#ifdef CONFIG_44x
Matt Porterc9cf73a2005-07-31 22:34:52 -07001587 {
1588 .pvr_mask = 0xf0000fff,
1589 .pvr_value = 0x40000850,
Valentine Barshakd1dfc352007-10-26 04:16:40 +10001590 .cpu_name = "440GR Rev. A",
1591 .cpu_features = CPU_FTRS_44X,
1592 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001593 .mmu_features = MMU_FTR_TYPE_44x,
Valentine Barshakd1dfc352007-10-26 04:16:40 +10001594 .icache_bsize = 32,
1595 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001596 .machine_check = machine_check_4xx,
Valentine Barshakd1dfc352007-10-26 04:16:40 +10001597 .platform = "ppc440",
1598 },
1599 { /* Use logical PVR for 440EP (logical pvr = pvr | 0x8) */
1600 .pvr_mask = 0xf0000fff,
1601 .pvr_value = 0x40000858,
Matt Porterc9cf73a2005-07-31 22:34:52 -07001602 .cpu_name = "440EP Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -05001603 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001604 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001605 .mmu_features = MMU_FTR_TYPE_44x,
Matt Porterc9cf73a2005-07-31 22:34:52 -07001606 .icache_bsize = 32,
1607 .dcache_bsize = 32,
Valentine Barshak81127532007-09-22 00:46:57 +10001608 .cpu_setup = __setup_cpu_440ep,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001609 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001610 .platform = "ppc440",
Matt Porterc9cf73a2005-07-31 22:34:52 -07001611 },
1612 {
1613 .pvr_mask = 0xf0000fff,
1614 .pvr_value = 0x400008d3,
Valentine Barshakd1dfc352007-10-26 04:16:40 +10001615 .cpu_name = "440GR Rev. B",
1616 .cpu_features = CPU_FTRS_44X,
1617 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001618 .mmu_features = MMU_FTR_TYPE_44x,
Valentine Barshakd1dfc352007-10-26 04:16:40 +10001619 .icache_bsize = 32,
1620 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001621 .machine_check = machine_check_4xx,
Valentine Barshakd1dfc352007-10-26 04:16:40 +10001622 .platform = "ppc440",
1623 },
Sean MacLennan3f8fc3e2008-01-10 07:25:58 +11001624 { /* Matches both physical and logical PVR for 440EP (logical pvr = pvr | 0x8) */
1625 .pvr_mask = 0xf0000ff7,
1626 .pvr_value = 0x400008d4,
1627 .cpu_name = "440EP Rev. C",
1628 .cpu_features = CPU_FTRS_44X,
1629 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001630 .mmu_features = MMU_FTR_TYPE_44x,
Sean MacLennan3f8fc3e2008-01-10 07:25:58 +11001631 .icache_bsize = 32,
1632 .dcache_bsize = 32,
1633 .cpu_setup = __setup_cpu_440ep,
1634 .machine_check = machine_check_4xx,
1635 .platform = "ppc440",
1636 },
Valentine Barshakd1dfc352007-10-26 04:16:40 +10001637 { /* Use logical PVR for 440EP (logical pvr = pvr | 0x8) */
1638 .pvr_mask = 0xf0000fff,
1639 .pvr_value = 0x400008db,
Matt Porterc9cf73a2005-07-31 22:34:52 -07001640 .cpu_name = "440EP Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -05001641 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001642 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001643 .mmu_features = MMU_FTR_TYPE_44x,
Matt Porterc9cf73a2005-07-31 22:34:52 -07001644 .icache_bsize = 32,
1645 .dcache_bsize = 32,
Valentine Barshak81127532007-09-22 00:46:57 +10001646 .cpu_setup = __setup_cpu_440ep,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001647 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001648 .platform = "ppc440",
Matt Porterc9cf73a2005-07-31 22:34:52 -07001649 },
Valentine Barshak15fc9932007-08-29 17:40:30 +04001650 { /* 440GRX */
1651 .pvr_mask = 0xf0000ffb,
Valentine Barshakd1dfc352007-10-26 04:16:40 +10001652 .pvr_value = 0x200008D0,
Valentine Barshak15fc9932007-08-29 17:40:30 +04001653 .cpu_name = "440GRX",
1654 .cpu_features = CPU_FTRS_44X,
1655 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001656 .mmu_features = MMU_FTR_TYPE_44x,
Valentine Barshak15fc9932007-08-29 17:40:30 +04001657 .icache_bsize = 32,
1658 .dcache_bsize = 32,
Valentine Barshak340ffd22007-09-22 00:50:09 +10001659 .cpu_setup = __setup_cpu_440grx,
Valentine Barshakb2be3b12007-12-22 03:22:23 +11001660 .machine_check = machine_check_440A,
Valentine Barshak340ffd22007-09-22 00:50:09 +10001661 .platform = "ppc440",
Valentine Barshak15fc9932007-08-29 17:40:30 +04001662 },
Valentine Barshakd1dfc352007-10-26 04:16:40 +10001663 { /* Use logical PVR for 440EPx (logical pvr = pvr | 0x8) */
1664 .pvr_mask = 0xf0000ffb,
1665 .pvr_value = 0x200008D8,
1666 .cpu_name = "440EPX",
1667 .cpu_features = CPU_FTRS_44X,
1668 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001669 .mmu_features = MMU_FTR_TYPE_44x,
Valentine Barshakd1dfc352007-10-26 04:16:40 +10001670 .icache_bsize = 32,
1671 .dcache_bsize = 32,
1672 .cpu_setup = __setup_cpu_440epx,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001673 .machine_check = machine_check_440A,
Valentine Barshakd1dfc352007-10-26 04:16:40 +10001674 .platform = "ppc440",
1675 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001676 { /* 440GP Rev. B */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001677 .pvr_mask = 0xf0000fff,
1678 .pvr_value = 0x40000440,
1679 .cpu_name = "440GP Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -05001680 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001681 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001682 .mmu_features = MMU_FTR_TYPE_44x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001683 .icache_bsize = 32,
1684 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001685 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001686 .platform = "ppc440gp",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001687 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001688 { /* 440GP Rev. C */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001689 .pvr_mask = 0xf0000fff,
1690 .pvr_value = 0x40000481,
1691 .cpu_name = "440GP Rev. C",
Kumar Gala10b35d92005-09-23 14:08:58 -05001692 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001693 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001694 .mmu_features = MMU_FTR_TYPE_44x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001695 .icache_bsize = 32,
1696 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001697 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001698 .platform = "ppc440gp",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001699 },
1700 { /* 440GX Rev. A */
1701 .pvr_mask = 0xf0000fff,
1702 .pvr_value = 0x50000850,
1703 .cpu_name = "440GX Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -05001704 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001705 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001706 .mmu_features = MMU_FTR_TYPE_44x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001707 .icache_bsize = 32,
1708 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001709 .cpu_setup = __setup_cpu_440gx,
1710 .machine_check = machine_check_440A,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001711 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001712 },
1713 { /* 440GX Rev. B */
1714 .pvr_mask = 0xf0000fff,
1715 .pvr_value = 0x50000851,
1716 .cpu_name = "440GX Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -05001717 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001718 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001719 .mmu_features = MMU_FTR_TYPE_44x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001720 .icache_bsize = 32,
1721 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001722 .cpu_setup = __setup_cpu_440gx,
1723 .machine_check = machine_check_440A,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001724 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001725 },
1726 { /* 440GX Rev. C */
1727 .pvr_mask = 0xf0000fff,
1728 .pvr_value = 0x50000892,
1729 .cpu_name = "440GX Rev. C",
Kumar Gala10b35d92005-09-23 14:08:58 -05001730 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001731 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001732 .mmu_features = MMU_FTR_TYPE_44x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001733 .icache_bsize = 32,
1734 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001735 .cpu_setup = __setup_cpu_440gx,
1736 .machine_check = machine_check_440A,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001737 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001738 },
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001739 { /* 440GX Rev. F */
1740 .pvr_mask = 0xf0000fff,
1741 .pvr_value = 0x50000894,
1742 .cpu_name = "440GX Rev. F",
Kumar Gala10b35d92005-09-23 14:08:58 -05001743 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001744 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001745 .mmu_features = MMU_FTR_TYPE_44x,
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001746 .icache_bsize = 32,
1747 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001748 .cpu_setup = __setup_cpu_440gx,
1749 .machine_check = machine_check_440A,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001750 .platform = "ppc440",
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001751 },
Matt Porter656de7e2005-09-03 15:55:42 -07001752 { /* 440SP Rev. A */
Roland Dreier333e6152007-06-16 05:36:32 +10001753 .pvr_mask = 0xfff00fff,
1754 .pvr_value = 0x53200891,
Matt Porter656de7e2005-09-03 15:55:42 -07001755 .cpu_name = "440SP Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -05001756 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001757 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001758 .mmu_features = MMU_FTR_TYPE_44x,
Matt Porter656de7e2005-09-03 15:55:42 -07001759 .icache_bsize = 32,
1760 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001761 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001762 .platform = "ppc440",
Matt Porter656de7e2005-09-03 15:55:42 -07001763 },
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001764 { /* 440SPe Rev. A */
Roland Dreier333e6152007-06-16 05:36:32 +10001765 .pvr_mask = 0xfff00fff,
1766 .pvr_value = 0x53400890,
1767 .cpu_name = "440SPe Rev. A",
1768 .cpu_features = CPU_FTRS_44X,
1769 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001770 .mmu_features = MMU_FTR_TYPE_44x,
Roland Dreier333e6152007-06-16 05:36:32 +10001771 .icache_bsize = 32,
1772 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001773 .cpu_setup = __setup_cpu_440spe,
1774 .machine_check = machine_check_440A,
Roland Dreier333e6152007-06-16 05:36:32 +10001775 .platform = "ppc440",
1776 },
1777 { /* 440SPe Rev. B */
1778 .pvr_mask = 0xfff00fff,
1779 .pvr_value = 0x53400891,
1780 .cpu_name = "440SPe Rev. B",
Kumar Galaa147c582006-12-08 02:34:38 -06001781 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001782 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001783 .mmu_features = MMU_FTR_TYPE_44x,
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001784 .icache_bsize = 32,
1785 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001786 .cpu_setup = __setup_cpu_440spe,
1787 .machine_check = machine_check_440A,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001788 .platform = "ppc440",
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001789 },
John Linn23e72372008-07-01 09:42:07 -07001790 { /* 440 in Xilinx Virtex-5 FXT */
1791 .pvr_mask = 0xfffffff0,
1792 .pvr_value = 0x7ff21910,
1793 .cpu_name = "440 in Virtex-5 FXT",
1794 .cpu_features = CPU_FTRS_44X,
1795 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001796 .mmu_features = MMU_FTR_TYPE_44x,
John Linn23e72372008-07-01 09:42:07 -07001797 .icache_bsize = 32,
1798 .dcache_bsize = 32,
Grant Likely640d17d2008-12-04 05:39:55 +00001799 .cpu_setup = __setup_cpu_440x5,
1800 .machine_check = machine_check_440A,
John Linn23e72372008-07-01 09:42:07 -07001801 .platform = "ppc440",
1802 },
Stefan Roese464076a2008-02-24 08:07:41 +11001803 { /* 460EX */
Stefan Roese20d70342009-07-29 07:04:46 +00001804 .pvr_mask = 0xffff0006,
Stefan Roese464076a2008-02-24 08:07:41 +11001805 .pvr_value = 0x13020002,
1806 .cpu_name = "460EX",
Benjamin Herrenschmidt6d2170b2008-12-18 19:13:22 +00001807 .cpu_features = CPU_FTRS_440x6,
Stefan Roese464076a2008-02-24 08:07:41 +11001808 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001809 .mmu_features = MMU_FTR_TYPE_44x,
Stefan Roese464076a2008-02-24 08:07:41 +11001810 .icache_bsize = 32,
1811 .dcache_bsize = 32,
1812 .cpu_setup = __setup_cpu_460ex,
1813 .machine_check = machine_check_440A,
1814 .platform = "ppc440",
1815 },
Stefan Roese20d70342009-07-29 07:04:46 +00001816 { /* 460EX Rev B */
1817 .pvr_mask = 0xffff0007,
1818 .pvr_value = 0x13020004,
1819 .cpu_name = "460EX Rev. B",
1820 .cpu_features = CPU_FTRS_440x6,
1821 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
1822 .mmu_features = MMU_FTR_TYPE_44x,
1823 .icache_bsize = 32,
1824 .dcache_bsize = 32,
1825 .cpu_setup = __setup_cpu_460ex,
1826 .machine_check = machine_check_440A,
1827 .platform = "ppc440",
1828 },
Stefan Roese464076a2008-02-24 08:07:41 +11001829 { /* 460GT */
Stefan Roese20d70342009-07-29 07:04:46 +00001830 .pvr_mask = 0xffff0006,
Stefan Roese464076a2008-02-24 08:07:41 +11001831 .pvr_value = 0x13020000,
1832 .cpu_name = "460GT",
Benjamin Herrenschmidt6d2170b2008-12-18 19:13:22 +00001833 .cpu_features = CPU_FTRS_440x6,
Josh Boyer939e6222008-06-11 07:52:40 -04001834 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001835 .mmu_features = MMU_FTR_TYPE_44x,
Stefan Roese464076a2008-02-24 08:07:41 +11001836 .icache_bsize = 32,
1837 .dcache_bsize = 32,
Josh Boyer939e6222008-06-11 07:52:40 -04001838 .cpu_setup = __setup_cpu_460gt,
Stefan Roese464076a2008-02-24 08:07:41 +11001839 .machine_check = machine_check_440A,
1840 .platform = "ppc440",
1841 },
Stefan Roese20d70342009-07-29 07:04:46 +00001842 { /* 460GT Rev B */
1843 .pvr_mask = 0xffff0007,
1844 .pvr_value = 0x13020005,
1845 .cpu_name = "460GT Rev. B",
1846 .cpu_features = CPU_FTRS_440x6,
1847 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
1848 .mmu_features = MMU_FTR_TYPE_44x,
1849 .icache_bsize = 32,
1850 .dcache_bsize = 32,
1851 .cpu_setup = __setup_cpu_460gt,
1852 .machine_check = machine_check_440A,
1853 .platform = "ppc440",
1854 },
Madhulika Madishetty6c712092009-02-05 13:31:36 +00001855 { /* 460SX */
1856 .pvr_mask = 0xffffff00,
1857 .pvr_value = 0x13541800,
1858 .cpu_name = "460SX",
1859 .cpu_features = CPU_FTRS_44X,
1860 .cpu_user_features = COMMON_USER_BOOKE,
1861 .mmu_features = MMU_FTR_TYPE_44x,
1862 .icache_bsize = 32,
1863 .dcache_bsize = 32,
1864 .cpu_setup = __setup_cpu_460sx,
1865 .machine_check = machine_check_440A,
1866 .platform = "ppc440",
1867 },
Tirumala Marri6edc3232010-09-13 13:26:11 +00001868 { /* 464 in APM821xx */
Vinh Nguyen Huu Tuong7c801162011-12-20 02:43:34 +00001869 .pvr_mask = 0xfffffff0,
Tirumala Marri6edc3232010-09-13 13:26:11 +00001870 .pvr_value = 0x12C41C80,
1871 .cpu_name = "APM821XX",
1872 .cpu_features = CPU_FTRS_44X,
1873 .cpu_user_features = COMMON_USER_BOOKE |
1874 PPC_FEATURE_HAS_FPU,
1875 .mmu_features = MMU_FTR_TYPE_44x,
1876 .icache_bsize = 32,
1877 .dcache_bsize = 32,
1878 .cpu_setup = __setup_cpu_apm821xx,
1879 .machine_check = machine_check_440A,
1880 .platform = "ppc440",
1881 },
Dave Kleikampc48d0db2011-01-26 06:17:58 +00001882 { /* 476 DD2 core */
1883 .pvr_mask = 0xffffffff,
1884 .pvr_value = 0x11a52080,
Dave Kleikampe7f75ad2010-03-05 10:43:12 +00001885 .cpu_name = "476",
Dave Kleikampc48d0db2011-01-26 06:17:58 +00001886 .cpu_features = CPU_FTRS_47X | CPU_FTR_476_DD2,
Dave Kleikampe7f75ad2010-03-05 10:43:12 +00001887 .cpu_user_features = COMMON_USER_BOOKE |
1888 PPC_FEATURE_HAS_FPU,
1889 .mmu_features = MMU_FTR_TYPE_47x |
1890 MMU_FTR_USE_TLBIVAX_BCAST | MMU_FTR_LOCK_BCAST_INVAL,
1891 .icache_bsize = 32,
1892 .dcache_bsize = 128,
Dave Kleikampfc5e7092010-03-05 03:43:18 +00001893 .machine_check = machine_check_47x,
Dave Kleikampe7f75ad2010-03-05 10:43:12 +00001894 .platform = "ppc470",
1895 },
Tony Breedsdf777bd2011-11-30 21:39:23 +00001896 { /* 476fpe */
1897 .pvr_mask = 0xffff0000,
1898 .pvr_value = 0x7ff50000,
1899 .cpu_name = "476fpe",
1900 .cpu_features = CPU_FTRS_47X | CPU_FTR_476_DD2,
1901 .cpu_user_features = COMMON_USER_BOOKE |
1902 PPC_FEATURE_HAS_FPU,
1903 .mmu_features = MMU_FTR_TYPE_47x |
1904 MMU_FTR_USE_TLBIVAX_BCAST | MMU_FTR_LOCK_BCAST_INVAL,
1905 .icache_bsize = 32,
1906 .dcache_bsize = 128,
1907 .machine_check = machine_check_47x,
1908 .platform = "ppc470",
1909 },
Torez Smithb4e8c8d2010-03-05 10:45:54 +00001910 { /* 476 iss */
1911 .pvr_mask = 0xffff0000,
1912 .pvr_value = 0x00050000,
1913 .cpu_name = "476",
1914 .cpu_features = CPU_FTRS_47X,
1915 .cpu_user_features = COMMON_USER_BOOKE |
1916 PPC_FEATURE_HAS_FPU,
Torez Smithb4e8c8d2010-03-05 10:45:54 +00001917 .mmu_features = MMU_FTR_TYPE_47x |
1918 MMU_FTR_USE_TLBIVAX_BCAST | MMU_FTR_LOCK_BCAST_INVAL,
1919 .icache_bsize = 32,
1920 .dcache_bsize = 128,
1921 .machine_check = machine_check_47x,
1922 .platform = "ppc470",
1923 },
Dave Kleikampc48d0db2011-01-26 06:17:58 +00001924 { /* 476 others */
1925 .pvr_mask = 0xffff0000,
1926 .pvr_value = 0x11a50000,
1927 .cpu_name = "476",
1928 .cpu_features = CPU_FTRS_47X,
1929 .cpu_user_features = COMMON_USER_BOOKE |
1930 PPC_FEATURE_HAS_FPU,
1931 .mmu_features = MMU_FTR_TYPE_47x |
1932 MMU_FTR_USE_TLBIVAX_BCAST | MMU_FTR_LOCK_BCAST_INVAL,
1933 .icache_bsize = 32,
1934 .dcache_bsize = 128,
1935 .machine_check = machine_check_47x,
1936 .platform = "ppc470",
1937 },
Benjamin Herrenschmidt76bc080e2008-05-05 15:22:27 +10001938 { /* default match */
1939 .pvr_mask = 0x00000000,
1940 .pvr_value = 0x00000000,
1941 .cpu_name = "(generic 44x PPC)",
1942 .cpu_features = CPU_FTRS_44X,
1943 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001944 .mmu_features = MMU_FTR_TYPE_44x,
Benjamin Herrenschmidt76bc080e2008-05-05 15:22:27 +10001945 .icache_bsize = 32,
1946 .dcache_bsize = 32,
1947 .machine_check = machine_check_4xx,
1948 .platform = "ppc440",
1949 }
Linus Torvalds1da177e2005-04-16 15:20:36 -07001950#endif /* CONFIG_44x */
Josh Boyere3e414b2007-12-24 08:44:47 -06001951#ifdef CONFIG_E200
Stephen Rothwell49209602005-10-12 15:55:09 +10001952 { /* e200z5 */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001953 .pvr_mask = 0xfff00000,
1954 .pvr_value = 0x81000000,
1955 .cpu_name = "e200z5",
1956 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001957 .cpu_features = CPU_FTRS_E200,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001958 .cpu_user_features = COMMON_USER_BOOKE |
1959 PPC_FEATURE_HAS_EFP_SINGLE |
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001960 PPC_FEATURE_UNIFIED_CACHE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001961 .mmu_features = MMU_FTR_TYPE_FSL_E,
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001962 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001963 .machine_check = machine_check_e200,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001964 .platform = "ppc5554",
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001965 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001966 { /* e200z6 */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001967 .pvr_mask = 0xfff00000,
1968 .pvr_value = 0x81100000,
1969 .cpu_name = "e200z6",
1970 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001971 .cpu_features = CPU_FTRS_E200,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001972 .cpu_user_features = COMMON_USER_BOOKE |
Kumar Gala5e14d212007-09-13 01:44:20 -05001973 PPC_FEATURE_HAS_SPE_COMP |
1974 PPC_FEATURE_HAS_EFP_SINGLE_COMP |
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001975 PPC_FEATURE_UNIFIED_CACHE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001976 .mmu_features = MMU_FTR_TYPE_FSL_E,
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001977 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001978 .machine_check = machine_check_e200,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001979 .platform = "ppc5554",
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001980 },
Benjamin Herrenschmidt76bc080e2008-05-05 15:22:27 +10001981 { /* default match */
1982 .pvr_mask = 0x00000000,
1983 .pvr_value = 0x00000000,
1984 .cpu_name = "(generic E200 PPC)",
1985 .cpu_features = CPU_FTRS_E200,
1986 .cpu_user_features = COMMON_USER_BOOKE |
1987 PPC_FEATURE_HAS_EFP_SINGLE |
1988 PPC_FEATURE_UNIFIED_CACHE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001989 .mmu_features = MMU_FTR_TYPE_FSL_E,
Benjamin Herrenschmidt76bc080e2008-05-05 15:22:27 +10001990 .dcache_bsize = 32,
Kumar Gala105c31d2009-01-08 08:31:20 -06001991 .cpu_setup = __setup_cpu_e200,
Benjamin Herrenschmidt76bc080e2008-05-05 15:22:27 +10001992 .machine_check = machine_check_e200,
1993 .platform = "ppc5554",
Paul Mackerras516c8be2008-05-12 14:20:35 +10001994 }
Benjamin Herrenschmidt76bc080e2008-05-05 15:22:27 +10001995#endif /* CONFIG_E200 */
Kumar Gala4490c062010-10-08 08:32:11 -05001996#endif /* CONFIG_PPC32 */
Benjamin Herrenschmidt76bc080e2008-05-05 15:22:27 +10001997#ifdef CONFIG_E500
Kumar Gala4490c062010-10-08 08:32:11 -05001998#ifdef CONFIG_PPC32
Stephen Rothwell49209602005-10-12 15:55:09 +10001999 { /* e500 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002000 .pvr_mask = 0xffff0000,
2001 .pvr_value = 0x80200000,
2002 .cpu_name = "e500",
Kumar Gala10b35d92005-09-23 14:08:58 -05002003 .cpu_features = CPU_FTRS_E500,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11002004 .cpu_user_features = COMMON_USER_BOOKE |
Kumar Gala5e14d212007-09-13 01:44:20 -05002005 PPC_FEATURE_HAS_SPE_COMP |
2006 PPC_FEATURE_HAS_EFP_SINGLE_COMP,
Nishanth Aravamudan6c1bf482013-05-04 16:01:17 +00002007 .cpu_user_features2 = PPC_FEATURE2_ISEL,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00002008 .mmu_features = MMU_FTR_TYPE_FSL_E,
Linus Torvalds1da177e2005-04-16 15:20:36 -07002009 .icache_bsize = 32,
2010 .dcache_bsize = 32,
2011 .num_pmcs = 4,
Andy Fleming555d97a2005-12-15 20:02:04 -06002012 .oprofile_cpu_type = "ppc/e500",
Andy Fleming39aef682008-02-04 18:27:55 -06002013 .oprofile_type = PPC_OPROFILE_FSL_EMB,
Kumar Gala105c31d2009-01-08 08:31:20 -06002014 .cpu_setup = __setup_cpu_e500v1,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11002015 .machine_check = machine_check_e500,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11002016 .platform = "ppc8540",
Linus Torvalds1da177e2005-04-16 15:20:36 -07002017 },
Stephen Rothwell49209602005-10-12 15:55:09 +10002018 { /* e500v2 */
Kumar Gala5b37b702005-06-21 17:15:18 -07002019 .pvr_mask = 0xffff0000,
2020 .pvr_value = 0x80210000,
2021 .cpu_name = "e500v2",
Kumar Gala10b35d92005-09-23 14:08:58 -05002022 .cpu_features = CPU_FTRS_E500_2,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11002023 .cpu_user_features = COMMON_USER_BOOKE |
Kumar Gala5e14d212007-09-13 01:44:20 -05002024 PPC_FEATURE_HAS_SPE_COMP |
2025 PPC_FEATURE_HAS_EFP_SINGLE_COMP |
2026 PPC_FEATURE_HAS_EFP_DOUBLE_COMP,
Nishanth Aravamudan6c1bf482013-05-04 16:01:17 +00002027 .cpu_user_features2 = PPC_FEATURE2_ISEL,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00002028 .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS,
Kumar Gala5b37b702005-06-21 17:15:18 -07002029 .icache_bsize = 32,
2030 .dcache_bsize = 32,
2031 .num_pmcs = 4,
Andy Fleming555d97a2005-12-15 20:02:04 -06002032 .oprofile_cpu_type = "ppc/e500",
Andy Fleming39aef682008-02-04 18:27:55 -06002033 .oprofile_type = PPC_OPROFILE_FSL_EMB,
Kumar Gala105c31d2009-01-08 08:31:20 -06002034 .cpu_setup = __setup_cpu_e500v2,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11002035 .machine_check = machine_check_e500,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11002036 .platform = "ppc8548",
Kumar Gala5b37b702005-06-21 17:15:18 -07002037 },
Kumar Gala3dfa8772008-06-16 09:41:32 -05002038 { /* e500mc */
2039 .pvr_mask = 0xffff0000,
2040 .pvr_value = 0x80230000,
2041 .cpu_name = "e500mc",
Kumar Gala3dfa8772008-06-16 09:41:32 -05002042 .cpu_features = CPU_FTRS_E500MC,
2043 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Nishanth Aravamudan6c1bf482013-05-04 16:01:17 +00002044 .cpu_user_features2 = PPC_FEATURE2_ISEL,
Kumar Galac3071952009-02-10 22:26:06 -06002045 .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS |
Kumar Gala323d23a2009-04-23 08:51:22 -05002046 MMU_FTR_USE_TLBILX,
Kumar Gala3dfa8772008-06-16 09:41:32 -05002047 .icache_bsize = 64,
2048 .dcache_bsize = 64,
2049 .num_pmcs = 4,
Scott Wooda1110652010-02-25 18:09:45 -06002050 .oprofile_cpu_type = "ppc/e500mc",
Kumar Gala3dfa8772008-06-16 09:41:32 -05002051 .oprofile_type = PPC_OPROFILE_FSL_EMB,
Kumar Gala105c31d2009-01-08 08:31:20 -06002052 .cpu_setup = __setup_cpu_e500mc,
Scott Woodfe04b112010-04-08 00:38:22 -05002053 .machine_check = machine_check_e500mc,
Kumar Gala3dfa8772008-06-16 09:41:32 -05002054 .platform = "ppce500mc",
2055 },
Kumar Gala4490c062010-10-08 08:32:11 -05002056#endif /* CONFIG_PPC32 */
2057 { /* e5500 */
2058 .pvr_mask = 0xffff0000,
2059 .pvr_value = 0x80240000,
2060 .cpu_name = "e5500",
Kumar Gala11ed0db2011-04-06 00:11:06 -05002061 .cpu_features = CPU_FTRS_E5500,
Kumar Galafb9be232011-06-02 11:26:13 -05002062 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Nishanth Aravamudan6c1bf482013-05-04 16:01:17 +00002063 .cpu_user_features2 = PPC_FEATURE2_ISEL,
Kumar Gala4490c062010-10-08 08:32:11 -05002064 .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS |
2065 MMU_FTR_USE_TLBILX,
2066 .icache_bsize = 64,
2067 .dcache_bsize = 64,
2068 .num_pmcs = 4,
2069 .oprofile_cpu_type = "ppc/e500mc",
2070 .oprofile_type = PPC_OPROFILE_FSL_EMB,
2071 .cpu_setup = __setup_cpu_e5500,
Varun Sethi2c71b0c2012-07-09 18:28:21 +05302072#ifndef CONFIG_PPC32
Kumar Gala4490c062010-10-08 08:32:11 -05002073 .cpu_restore = __restore_cpu_e5500,
Varun Sethi2c71b0c2012-07-09 18:28:21 +05302074#endif
Kumar Gala4490c062010-10-08 08:32:11 -05002075 .machine_check = machine_check_e500mc,
2076 .platform = "ppce5500",
2077 },
Kumar Gala10241842011-11-06 11:51:07 -06002078 { /* e6500 */
2079 .pvr_mask = 0xffff0000,
2080 .pvr_value = 0x80400000,
2081 .cpu_name = "e6500",
2082 .cpu_features = CPU_FTRS_E6500,
Kumar Galacd66cc22012-09-07 15:57:17 -05002083 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU |
2084 PPC_FEATURE_HAS_ALTIVEC_COMP,
Nishanth Aravamudan6c1bf482013-05-04 16:01:17 +00002085 .cpu_user_features2 = PPC_FEATURE2_ISEL,
Kumar Gala10241842011-11-06 11:51:07 -06002086 .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS |
2087 MMU_FTR_USE_TLBILX,
2088 .icache_bsize = 64,
2089 .dcache_bsize = 64,
2090 .num_pmcs = 4,
2091 .oprofile_cpu_type = "ppc/e6500",
2092 .oprofile_type = PPC_OPROFILE_FSL_EMB,
Kumar Galacd66cc22012-09-07 15:57:17 -05002093 .cpu_setup = __setup_cpu_e6500,
Varun Sethi2c71b0c2012-07-09 18:28:21 +05302094#ifndef CONFIG_PPC32
Kumar Galacd66cc22012-09-07 15:57:17 -05002095 .cpu_restore = __restore_cpu_e6500,
Varun Sethi2c71b0c2012-07-09 18:28:21 +05302096#endif
Kumar Gala10241842011-11-06 11:51:07 -06002097 .machine_check = machine_check_e500mc,
2098 .platform = "ppce6500",
2099 },
Kumar Gala4490c062010-10-08 08:32:11 -05002100#ifdef CONFIG_PPC32
Linus Torvalds1da177e2005-04-16 15:20:36 -07002101 { /* default match */
2102 .pvr_mask = 0x00000000,
2103 .pvr_value = 0x00000000,
Benjamin Herrenschmidt76bc080e2008-05-05 15:22:27 +10002104 .cpu_name = "(generic E500 PPC)",
2105 .cpu_features = CPU_FTRS_E500,
2106 .cpu_user_features = COMMON_USER_BOOKE |
2107 PPC_FEATURE_HAS_SPE_COMP |
2108 PPC_FEATURE_HAS_EFP_SINGLE_COMP,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00002109 .mmu_features = MMU_FTR_TYPE_FSL_E,
Linus Torvalds1da177e2005-04-16 15:20:36 -07002110 .icache_bsize = 32,
2111 .dcache_bsize = 32,
Benjamin Herrenschmidt76bc080e2008-05-05 15:22:27 +10002112 .machine_check = machine_check_e500,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11002113 .platform = "powerpc",
Paul Mackerras516c8be2008-05-12 14:20:35 +10002114 }
Stephen Rothwell49209602005-10-12 15:55:09 +10002115#endif /* CONFIG_PPC32 */
Kumar Gala4490c062010-10-08 08:32:11 -05002116#endif /* CONFIG_E500 */
Kumar Galaf45c4482009-08-18 19:08:30 +00002117
Benjamin Herrenschmidt76b4eda2011-04-14 22:32:01 +00002118#ifdef CONFIG_PPC_A2
2119 { /* Standard A2 (>= DD2) + FPU core */
2120 .pvr_mask = 0xffff0000,
2121 .pvr_value = 0x00480000,
2122 .cpu_name = "A2 (>= DD2)",
2123 .cpu_features = CPU_FTRS_A2,
2124 .cpu_user_features = COMMON_USER_PPC64,
Matt Evans44ae3ab2011-04-06 19:48:50 +00002125 .mmu_features = MMU_FTRS_A2,
Benjamin Herrenschmidt76b4eda2011-04-14 22:32:01 +00002126 .icache_bsize = 64,
2127 .dcache_bsize = 64,
2128 .num_pmcs = 0,
2129 .cpu_setup = __setup_cpu_a2,
2130 .cpu_restore = __restore_cpu_a2,
2131 .machine_check = machine_check_generic,
2132 .platform = "ppca2",
2133 },
Kumar Galaf45c4482009-08-18 19:08:30 +00002134 { /* This is a default entry to get going, to be replaced by
2135 * a real one at some stage
2136 */
2137#define CPU_FTRS_BASE_BOOK3E (CPU_FTR_USE_TB | \
2138 CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_SMT | \
2139 CPU_FTR_NODSISRALIGN | CPU_FTR_NOEXECUTE)
2140 .pvr_mask = 0x00000000,
2141 .pvr_value = 0x00000000,
2142 .cpu_name = "Book3E",
2143 .cpu_features = CPU_FTRS_BASE_BOOK3E,
2144 .cpu_user_features = COMMON_USER_PPC64,
2145 .mmu_features = MMU_FTR_TYPE_3E | MMU_FTR_USE_TLBILX |
2146 MMU_FTR_USE_TLBIVAX_BCAST |
2147 MMU_FTR_LOCK_BCAST_INVAL,
2148 .icache_bsize = 64,
2149 .dcache_bsize = 64,
2150 .num_pmcs = 0,
2151 .machine_check = machine_check_generic,
2152 .platform = "power6",
2153 },
Benjamin Herrenschmidt76b4eda2011-04-14 22:32:01 +00002154#endif /* CONFIG_PPC_A2 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002155};
Benjamin Herrenschmidt42c4aaa2006-10-24 16:42:40 +10002156
Paul Mackerras87a72f92007-10-04 14:18:01 +10002157static struct cpu_spec the_cpu_spec;
2158
Scott Wood26ee9762011-07-25 11:04:36 +00002159static struct cpu_spec * __init setup_cpu_spec(unsigned long offset,
2160 struct cpu_spec *s)
Michael Ellerman666435b2009-02-22 16:25:43 +00002161{
2162 struct cpu_spec *t = &the_cpu_spec;
Michael Ellerman2657dd42009-02-22 16:25:45 +00002163 struct cpu_spec old;
2164
Michael Ellerman666435b2009-02-22 16:25:43 +00002165 t = PTRRELOC(t);
Michael Ellerman2657dd42009-02-22 16:25:45 +00002166 old = *t;
2167
2168 /* Copy everything, then do fixups */
2169 *t = *s;
Michael Ellerman666435b2009-02-22 16:25:43 +00002170
2171 /*
2172 * If we are overriding a previous value derived from the real
2173 * PVR with a new value obtained using a logical PVR value,
2174 * don't modify the performance monitor fields.
2175 */
Michael Ellerman2657dd42009-02-22 16:25:45 +00002176 if (old.num_pmcs && !s->num_pmcs) {
2177 t->num_pmcs = old.num_pmcs;
2178 t->pmc_type = old.pmc_type;
2179 t->oprofile_type = old.oprofile_type;
2180 t->oprofile_mmcra_sihv = old.oprofile_mmcra_sihv;
2181 t->oprofile_mmcra_sipr = old.oprofile_mmcra_sipr;
2182 t->oprofile_mmcra_clear = old.oprofile_mmcra_clear;
2183
Michael Ellerman666435b2009-02-22 16:25:43 +00002184 /*
2185 * If we have passed through this logic once before and
2186 * have pulled the default case because the real PVR was
2187 * not found inside cpu_specs[], then we are possibly
2188 * running in compatibility mode. In that case, let the
2189 * oprofiler know which set of compatibility counters to
2190 * pull from by making sure the oprofile_cpu_type string
2191 * is set to that of compatibility mode. If the
2192 * oprofile_cpu_type already has a value, then we are
2193 * possibly overriding a real PVR with a logical one,
2194 * and, in that case, keep the current value for
2195 * oprofile_cpu_type.
2196 */
Benjamin Herrenschmidtb173f032009-05-14 18:34:06 +00002197 if (old.oprofile_cpu_type != NULL) {
Benjamin Herrenschmidt0203d6e2009-04-29 19:39:38 +00002198 t->oprofile_cpu_type = old.oprofile_cpu_type;
2199 t->oprofile_type = old.oprofile_type;
Michael Wolf79af6c42009-04-27 06:17:54 +00002200 }
Michael Ellerman2657dd42009-02-22 16:25:45 +00002201 }
Michael Ellerman666435b2009-02-22 16:25:43 +00002202
2203 *PTRRELOC(&cur_cpu_spec) = &the_cpu_spec;
2204
2205 /*
2206 * Set the base platform string once; assumes
2207 * we're called with real pvr first.
2208 */
2209 if (*PTRRELOC(&powerpc_base_platform) == NULL)
2210 *PTRRELOC(&powerpc_base_platform) = t->platform;
2211
2212#if defined(CONFIG_PPC64) || defined(CONFIG_BOOKE)
2213 /* ppc64 and booke expect identify_cpu to also call setup_cpu for
2214 * that processor. I will consolidate that at a later time, for now,
2215 * just use #ifdef. We also don't need to PTRRELOC the function
2216 * pointer on ppc64 and booke as we are running at 0 in real mode
2217 * on ppc64 and reloc_offset is always 0 on booke.
2218 */
Benjamin Herrenschmidtaf9eef32011-01-20 20:36:03 +00002219 if (t->cpu_setup) {
2220 t->cpu_setup(offset, t);
Michael Ellerman666435b2009-02-22 16:25:43 +00002221 }
2222#endif /* CONFIG_PPC64 || CONFIG_BOOKE */
Scott Wood26ee9762011-07-25 11:04:36 +00002223
2224 return t;
Michael Ellerman666435b2009-02-22 16:25:43 +00002225}
2226
Paul Mackerras87a72f92007-10-04 14:18:01 +10002227struct cpu_spec * __init identify_cpu(unsigned long offset, unsigned int pvr)
Benjamin Herrenschmidt42c4aaa2006-10-24 16:42:40 +10002228{
2229 struct cpu_spec *s = cpu_specs;
Benjamin Herrenschmidt42c4aaa2006-10-24 16:42:40 +10002230 int i;
2231
2232 s = PTRRELOC(s);
Benjamin Herrenschmidt42c4aaa2006-10-24 16:42:40 +10002233
Michael Ellerman666435b2009-02-22 16:25:43 +00002234 for (i = 0; i < ARRAY_SIZE(cpu_specs); i++,s++) {
Scott Wood26ee9762011-07-25 11:04:36 +00002235 if ((pvr & s->pvr_mask) == s->pvr_value)
2236 return setup_cpu_spec(offset, s);
Michael Ellerman666435b2009-02-22 16:25:43 +00002237 }
2238
Benjamin Herrenschmidt42c4aaa2006-10-24 16:42:40 +10002239 BUG();
Michael Ellerman666435b2009-02-22 16:25:43 +00002240
Benjamin Herrenschmidt42c4aaa2006-10-24 16:42:40 +10002241 return NULL;
2242}