blob: b9602ee06deb11ee4c80c8eeeb63a2757f587841 [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>
Kumar Gala400d2212005-09-27 15:13:12 -050017#include <linux/module.h>
18
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>
Linus Torvalds1da177e2005-04-16 15:20:36 -070023
Kumar Gala400d2212005-09-27 15:13:12 -050024struct cpu_spec* cur_cpu_spec = NULL;
Stephen Rothwell49209602005-10-12 15:55:09 +100025EXPORT_SYMBOL(cur_cpu_spec);
Linus Torvalds1da177e2005-04-16 15:20:36 -070026
Nathan Lynch9115d132008-07-16 09:58:51 +100027/* The platform string corresponding to the real PVR */
28const char *powerpc_base_platform;
29
Stephen Rothwell49209602005-10-12 15:55:09 +100030/* NOTE:
31 * Unlike ppc32, ppc64 will only call this once for the boot CPU, it's
32 * the responsibility of the appropriate CPU save/restore functions to
33 * eventually copy these settings over. Those save/restore aren't yet
34 * part of the cputable though. That has to be fixed for both ppc32
35 * and ppc64
36 */
Geoff Levandb26f1002006-05-19 14:24:18 +100037#ifdef CONFIG_PPC32
Kumar Gala105c31d2009-01-08 08:31:20 -060038extern void __setup_cpu_e200(unsigned long offset, struct cpu_spec* spec);
39extern void __setup_cpu_e500v1(unsigned long offset, struct cpu_spec* spec);
40extern void __setup_cpu_e500v2(unsigned long offset, struct cpu_spec* spec);
41extern void __setup_cpu_e500mc(unsigned long offset, struct cpu_spec* spec);
Valentine Barshak81127532007-09-22 00:46:57 +100042extern void __setup_cpu_440ep(unsigned long offset, struct cpu_spec* spec);
43extern void __setup_cpu_440epx(unsigned long offset, struct cpu_spec* spec);
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +110044extern void __setup_cpu_440gx(unsigned long offset, struct cpu_spec* spec);
Valentine Barshak340ffd22007-09-22 00:50:09 +100045extern void __setup_cpu_440grx(unsigned long offset, struct cpu_spec* spec);
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +110046extern void __setup_cpu_440spe(unsigned long offset, struct cpu_spec* spec);
Grant Likely640d17d2008-12-04 05:39:55 +000047extern void __setup_cpu_440x5(unsigned long offset, struct cpu_spec* spec);
Stefan Roese464076a2008-02-24 08:07:41 +110048extern void __setup_cpu_460ex(unsigned long offset, struct cpu_spec* spec);
Josh Boyer939e6222008-06-11 07:52:40 -040049extern void __setup_cpu_460gt(unsigned long offset, struct cpu_spec* spec);
Madhulika Madishetty6c712092009-02-05 13:31:36 +000050extern void __setup_cpu_460sx(unsigned long offset, struct cpu_spec *spec);
Tirumala Marri6edc3232010-09-13 13:26:11 +000051extern void __setup_cpu_apm821xx(unsigned long offset, struct cpu_spec *spec);
Kumar Gala400d2212005-09-27 15:13:12 -050052extern void __setup_cpu_603(unsigned long offset, struct cpu_spec* spec);
53extern void __setup_cpu_604(unsigned long offset, struct cpu_spec* spec);
54extern void __setup_cpu_750(unsigned long offset, struct cpu_spec* spec);
55extern void __setup_cpu_750cx(unsigned long offset, struct cpu_spec* spec);
56extern void __setup_cpu_750fx(unsigned long offset, struct cpu_spec* spec);
57extern void __setup_cpu_7400(unsigned long offset, struct cpu_spec* spec);
58extern void __setup_cpu_7410(unsigned long offset, struct cpu_spec* spec);
59extern void __setup_cpu_745x(unsigned long offset, struct cpu_spec* spec);
Stephen Rothwell49209602005-10-12 15:55:09 +100060#endif /* CONFIG_PPC32 */
Olof Johanssonf39b7a52006-08-11 00:07:08 -050061#ifdef CONFIG_PPC64
Kumar Gala400d2212005-09-27 15:13:12 -050062extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec);
Olof Johansson5b43d202006-10-04 23:41:41 -050063extern void __setup_cpu_ppc970MP(unsigned long offset, struct cpu_spec* spec);
Olof Johansson11999192007-02-04 16:36:51 -060064extern void __setup_cpu_pa6t(unsigned long offset, struct cpu_spec* spec);
Stephen Rothwell40d244d2007-02-12 22:10:48 +110065extern void __restore_cpu_pa6t(void);
Olof Johanssonf39b7a52006-08-11 00:07:08 -050066extern void __restore_cpu_ppc970(void);
Michael Neulinge952e6c2008-06-18 10:47:26 +100067extern void __setup_cpu_power7(unsigned long offset, struct cpu_spec* spec);
68extern void __restore_cpu_power7(void);
Olof Johanssonf39b7a52006-08-11 00:07:08 -050069#endif /* CONFIG_PPC64 */
Kumar Gala4490c062010-10-08 08:32:11 -050070#if defined(CONFIG_E500)
71extern void __setup_cpu_e5500(unsigned long offset, struct cpu_spec* spec);
72extern void __restore_cpu_e5500(void);
73#endif /* CONFIG_E500 */
Linus Torvalds1da177e2005-04-16 15:20:36 -070074
Linus Torvalds1da177e2005-04-16 15:20:36 -070075/* This table only contains "desktop" CPUs, it need to be filled with embedded
76 * ones as well...
77 */
Stephen Rothwell49209602005-10-12 15:55:09 +100078#define COMMON_USER (PPC_FEATURE_32 | PPC_FEATURE_HAS_FPU | \
79 PPC_FEATURE_HAS_MMU)
80#define COMMON_USER_PPC64 (COMMON_USER | PPC_FEATURE_64)
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +110081#define COMMON_USER_POWER4 (COMMON_USER_PPC64 | PPC_FEATURE_POWER4)
Benjamin Herrenschmidtaa5cb022006-03-01 15:07:07 +110082#define COMMON_USER_POWER5 (COMMON_USER_PPC64 | PPC_FEATURE_POWER5 |\
83 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
84#define COMMON_USER_POWER5_PLUS (COMMON_USER_PPC64 | PPC_FEATURE_POWER5_PLUS|\
85 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP)
Anton Blanchard03054d52006-04-29 09:51:06 +100086#define COMMON_USER_POWER6 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_05 |\
Paul Mackerrasfab5db92006-06-07 16:14:40 +100087 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \
Nathan Lynch0f473312008-07-10 01:06:57 +100088 PPC_FEATURE_TRUE_LE | \
89 PPC_FEATURE_PSERIES_PERFMON_COMPAT)
Michael Neulinge952e6c2008-06-18 10:47:26 +100090#define COMMON_USER_POWER7 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_06 |\
91 PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \
Nathan Lynch0f473312008-07-10 01:06:57 +100092 PPC_FEATURE_TRUE_LE | \
93 PPC_FEATURE_PSERIES_PERFMON_COMPAT)
Olof Johanssonb3ebd1d2006-09-06 14:35:57 -050094#define COMMON_USER_PA6T (COMMON_USER_PPC64 | PPC_FEATURE_PA6T |\
95 PPC_FEATURE_TRUE_LE | \
96 PPC_FEATURE_HAS_ALTIVEC_COMP)
Kumar Galaf45c4482009-08-18 19:08:30 +000097#ifdef CONFIG_PPC_BOOK3E_64
98#define COMMON_USER_BOOKE (COMMON_USER_PPC64 | PPC_FEATURE_BOOKE)
99#else
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100100#define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \
101 PPC_FEATURE_BOOKE)
Kumar Galaf45c4482009-08-18 19:08:30 +0000102#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700103
Paul Mackerras87a72f92007-10-04 14:18:01 +1000104static struct cpu_spec __initdata cpu_specs[] = {
Benjamin Herrenschmidt2d27cfd2009-07-23 23:15:59 +0000105#ifdef CONFIG_PPC_BOOK3S_64
Stephen Rothwell49209602005-10-12 15:55:09 +1000106 { /* Power3 */
107 .pvr_mask = 0xffff0000,
108 .pvr_value = 0x00400000,
109 .cpu_name = "POWER3 (630)",
110 .cpu_features = CPU_FTRS_POWER3,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000111 .cpu_user_features = COMMON_USER_PPC64|PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000112 .mmu_features = MMU_FTR_HPTE_TABLE,
Stephen Rothwell49209602005-10-12 15:55:09 +1000113 .icache_bsize = 128,
114 .dcache_bsize = 128,
115 .num_pmcs = 8,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600116 .pmc_type = PPC_PMC_IBM,
Stephen Rothwell49209602005-10-12 15:55:09 +1000117 .oprofile_cpu_type = "ppc64/power3",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000118 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100119 .platform = "power3",
Stephen Rothwell49209602005-10-12 15:55:09 +1000120 },
121 { /* Power3+ */
122 .pvr_mask = 0xffff0000,
123 .pvr_value = 0x00410000,
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 { /* Northstar */
137 .pvr_mask = 0xffff0000,
138 .pvr_value = 0x00330000,
139 .cpu_name = "RS64-II (northstar)",
140 .cpu_features = CPU_FTRS_RS64,
141 .cpu_user_features = COMMON_USER_PPC64,
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/rs64",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000148 .oprofile_type = PPC_OPROFILE_RS64,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100149 .platform = "rs64",
Stephen Rothwell49209602005-10-12 15:55:09 +1000150 },
151 { /* Pulsar */
152 .pvr_mask = 0xffff0000,
153 .pvr_value = 0x00340000,
154 .cpu_name = "RS64-III (pulsar)",
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 { /* I-star */
167 .pvr_mask = 0xffff0000,
168 .pvr_value = 0x00360000,
169 .cpu_name = "RS64-III (icestar)",
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 { /* S-star */
182 .pvr_mask = 0xffff0000,
183 .pvr_value = 0x00370000,
184 .cpu_name = "RS64-IV (sstar)",
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 { /* Power4 */
197 .pvr_mask = 0xffff0000,
198 .pvr_value = 0x00350000,
199 .cpu_name = "POWER4 (gp)",
200 .cpu_features = CPU_FTRS_POWER4,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100201 .cpu_user_features = COMMON_USER_POWER4,
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/power4",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000208 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100209 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000210 },
211 { /* Power4+ */
212 .pvr_mask = 0xffff0000,
213 .pvr_value = 0x00380000,
214 .cpu_name = "POWER4+ (gq)",
215 .cpu_features = CPU_FTRS_POWER4,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100216 .cpu_user_features = COMMON_USER_POWER4,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000217 .mmu_features = MMU_FTR_HPTE_TABLE,
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 { /* PPC970 */
227 .pvr_mask = 0xffff0000,
228 .pvr_value = 0x00390000,
229 .cpu_name = "PPC970",
230 .cpu_features = CPU_FTRS_PPC970,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100231 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000232 PPC_FEATURE_HAS_ALTIVEC_COMP,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000233 .mmu_features = MMU_FTR_HPTE_TABLE,
Stephen Rothwell49209602005-10-12 15:55:09 +1000234 .icache_bsize = 128,
235 .dcache_bsize = 128,
236 .num_pmcs = 8,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600237 .pmc_type = PPC_PMC_IBM,
Stephen Rothwell49209602005-10-12 15:55:09 +1000238 .cpu_setup = __setup_cpu_ppc970,
Olof Johanssonf39b7a52006-08-11 00:07:08 -0500239 .cpu_restore = __restore_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000240 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000241 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100242 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000243 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000244 { /* PPC970FX */
245 .pvr_mask = 0xffff0000,
246 .pvr_value = 0x003c0000,
247 .cpu_name = "PPC970FX",
Stephen Rothwell49209602005-10-12 15:55:09 +1000248 .cpu_features = CPU_FTRS_PPC970,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100249 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000250 PPC_FEATURE_HAS_ALTIVEC_COMP,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000251 .mmu_features = MMU_FTR_HPTE_TABLE,
Stephen Rothwell49209602005-10-12 15:55:09 +1000252 .icache_bsize = 128,
253 .dcache_bsize = 128,
254 .num_pmcs = 8,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600255 .pmc_type = PPC_PMC_IBM,
Stephen Rothwell49209602005-10-12 15:55:09 +1000256 .cpu_setup = __setup_cpu_ppc970,
Olof Johanssonf39b7a52006-08-11 00:07:08 -0500257 .cpu_restore = __restore_cpu_ppc970,
Stephen Rothwell49209602005-10-12 15:55:09 +1000258 .oprofile_cpu_type = "ppc64/970",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000259 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100260 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000261 },
Olof Johansson3546e812007-02-26 00:35:14 -0600262 { /* PPC970MP DD1.0 - no DEEPNAP, use regular 970 init */
263 .pvr_mask = 0xffffffff,
264 .pvr_value = 0x00440100,
265 .cpu_name = "PPC970MP",
266 .cpu_features = CPU_FTRS_PPC970,
267 .cpu_user_features = COMMON_USER_POWER4 |
268 PPC_FEATURE_HAS_ALTIVEC_COMP,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000269 .mmu_features = MMU_FTR_HPTE_TABLE,
Olof Johansson3546e812007-02-26 00:35:14 -0600270 .icache_bsize = 128,
271 .dcache_bsize = 128,
272 .num_pmcs = 8,
Anton Blanchard2fae4982007-05-19 15:22:41 +1000273 .pmc_type = PPC_PMC_IBM,
Olof Johansson3546e812007-02-26 00:35:14 -0600274 .cpu_setup = __setup_cpu_ppc970,
275 .cpu_restore = __restore_cpu_ppc970,
276 .oprofile_cpu_type = "ppc64/970MP",
277 .oprofile_type = PPC_OPROFILE_POWER4,
278 .platform = "ppc970",
279 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000280 { /* PPC970MP */
281 .pvr_mask = 0xffff0000,
282 .pvr_value = 0x00440000,
283 .cpu_name = "PPC970MP",
284 .cpu_features = CPU_FTRS_PPC970,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100285 .cpu_user_features = COMMON_USER_POWER4 |
Stephen Rothwell49209602005-10-12 15:55:09 +1000286 PPC_FEATURE_HAS_ALTIVEC_COMP,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000287 .mmu_features = MMU_FTR_HPTE_TABLE,
Stephen Rothwell49209602005-10-12 15:55:09 +1000288 .icache_bsize = 128,
289 .dcache_bsize = 128,
Anton Blanchard87af41b2006-05-05 05:44:26 +1000290 .num_pmcs = 8,
Anton Blanchard2fae4982007-05-19 15:22:41 +1000291 .pmc_type = PPC_PMC_IBM,
Olof Johansson5b43d202006-10-04 23:41:41 -0500292 .cpu_setup = __setup_cpu_ppc970MP,
Olof Johanssonf39b7a52006-08-11 00:07:08 -0500293 .cpu_restore = __restore_cpu_ppc970,
Mike Wolffecb3522006-11-21 14:41:54 -0600294 .oprofile_cpu_type = "ppc64/970MP",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000295 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100296 .platform = "ppc970",
Stephen Rothwell49209602005-10-12 15:55:09 +1000297 },
Jake Moilanen362ff7b2006-10-18 10:47:22 -0500298 { /* PPC970GX */
299 .pvr_mask = 0xffff0000,
300 .pvr_value = 0x00450000,
301 .cpu_name = "PPC970GX",
302 .cpu_features = CPU_FTRS_PPC970,
303 .cpu_user_features = COMMON_USER_POWER4 |
304 PPC_FEATURE_HAS_ALTIVEC_COMP,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000305 .mmu_features = MMU_FTR_HPTE_TABLE,
Jake Moilanen362ff7b2006-10-18 10:47:22 -0500306 .icache_bsize = 128,
307 .dcache_bsize = 128,
308 .num_pmcs = 8,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600309 .pmc_type = PPC_PMC_IBM,
Jake Moilanen362ff7b2006-10-18 10:47:22 -0500310 .cpu_setup = __setup_cpu_ppc970,
311 .oprofile_cpu_type = "ppc64/970",
312 .oprofile_type = PPC_OPROFILE_POWER4,
313 .platform = "ppc970",
314 },
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100315 { /* Power5 GR */
Stephen Rothwell49209602005-10-12 15:55:09 +1000316 .pvr_mask = 0xffff0000,
317 .pvr_value = 0x003a0000,
318 .cpu_name = "POWER5 (gr)",
319 .cpu_features = CPU_FTRS_POWER5,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100320 .cpu_user_features = COMMON_USER_POWER5,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000321 .mmu_features = MMU_FTR_HPTE_TABLE,
Stephen Rothwell49209602005-10-12 15:55:09 +1000322 .icache_bsize = 128,
323 .dcache_bsize = 128,
324 .num_pmcs = 6,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600325 .pmc_type = PPC_PMC_IBM,
Stephen Rothwell49209602005-10-12 15:55:09 +1000326 .oprofile_cpu_type = "ppc64/power5",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000327 .oprofile_type = PPC_OPROFILE_POWER4,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000328 /* SIHV / SIPR bits are implemented on POWER4+ (GQ)
329 * and above but only works on POWER5 and above
330 */
331 .oprofile_mmcra_sihv = MMCRA_SIHV,
332 .oprofile_mmcra_sipr = MMCRA_SIPR,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100333 .platform = "power5",
Stephen Rothwell49209602005-10-12 15:55:09 +1000334 },
Mike Wolf31a12ce2007-07-10 13:13:47 -0500335 { /* Power5++ */
336 .pvr_mask = 0xffffff00,
337 .pvr_value = 0x003b0300,
338 .cpu_name = "POWER5+ (gs)",
339 .cpu_features = CPU_FTRS_POWER5,
340 .cpu_user_features = COMMON_USER_POWER5_PLUS,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000341 .mmu_features = MMU_FTR_HPTE_TABLE,
Mike Wolf31a12ce2007-07-10 13:13:47 -0500342 .icache_bsize = 128,
343 .dcache_bsize = 128,
344 .num_pmcs = 6,
345 .oprofile_cpu_type = "ppc64/power5++",
346 .oprofile_type = PPC_OPROFILE_POWER4,
347 .oprofile_mmcra_sihv = MMCRA_SIHV,
348 .oprofile_mmcra_sipr = MMCRA_SIPR,
349 .platform = "power5+",
350 },
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100351 { /* Power5 GS */
Stephen Rothwell49209602005-10-12 15:55:09 +1000352 .pvr_mask = 0xffff0000,
353 .pvr_value = 0x003b0000,
Anton Blanchard834608f2006-01-09 15:42:30 +1100354 .cpu_name = "POWER5+ (gs)",
Stephen Rothwell49209602005-10-12 15:55:09 +1000355 .cpu_features = CPU_FTRS_POWER5,
Paul Mackerrasa7ddc5e2005-11-10 14:29:18 +1100356 .cpu_user_features = COMMON_USER_POWER5_PLUS,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000357 .mmu_features = MMU_FTR_HPTE_TABLE,
Stephen Rothwell49209602005-10-12 15:55:09 +1000358 .icache_bsize = 128,
359 .dcache_bsize = 128,
360 .num_pmcs = 6,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600361 .pmc_type = PPC_PMC_IBM,
Anton Blanchard834608f2006-01-09 15:42:30 +1100362 .oprofile_cpu_type = "ppc64/power5+",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000363 .oprofile_type = PPC_OPROFILE_POWER4,
Michael Neulinge78dbc82006-06-08 14:42:34 +1000364 .oprofile_mmcra_sihv = MMCRA_SIHV,
365 .oprofile_mmcra_sipr = MMCRA_SIPR,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100366 .platform = "power5+",
Stephen Rothwell49209602005-10-12 15:55:09 +1000367 },
Paul Mackerras974a76f2006-11-10 20:38:53 +1100368 { /* POWER6 in P5+ mode; 2.04-compliant processor */
369 .pvr_mask = 0xffffffff,
370 .pvr_value = 0x0f000001,
371 .cpu_name = "POWER5+",
372 .cpu_features = CPU_FTRS_POWER5,
373 .cpu_user_features = COMMON_USER_POWER5_PLUS,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000374 .mmu_features = MMU_FTR_HPTE_TABLE,
Paul Mackerras974a76f2006-11-10 20:38:53 +1100375 .icache_bsize = 128,
376 .dcache_bsize = 128,
Michael Wolf79af6c42009-04-27 06:17:54 +0000377 .oprofile_cpu_type = "ppc64/ibm-compat-v1",
378 .oprofile_type = PPC_OPROFILE_POWER4,
Paul Mackerras974a76f2006-11-10 20:38:53 +1100379 .platform = "power5+",
380 },
Anton Blanchard03054d52006-04-29 09:51:06 +1000381 { /* Power6 */
382 .pvr_mask = 0xffff0000,
383 .pvr_value = 0x003e0000,
Paul Mackerras974a76f2006-11-10 20:38:53 +1100384 .cpu_name = "POWER6 (raw)",
385 .cpu_features = CPU_FTRS_POWER6,
386 .cpu_user_features = COMMON_USER_POWER6 |
387 PPC_FEATURE_POWER6_EXT,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000388 .mmu_features = MMU_FTR_HPTE_TABLE,
Paul Mackerras974a76f2006-11-10 20:38:53 +1100389 .icache_bsize = 128,
390 .dcache_bsize = 128,
391 .num_pmcs = 6,
Anton Blanchard2fae4982007-05-19 15:22:41 +1000392 .pmc_type = PPC_PMC_IBM,
Paul Mackerras974a76f2006-11-10 20:38:53 +1100393 .oprofile_cpu_type = "ppc64/power6",
394 .oprofile_type = PPC_OPROFILE_POWER4,
395 .oprofile_mmcra_sihv = POWER6_MMCRA_SIHV,
396 .oprofile_mmcra_sipr = POWER6_MMCRA_SIPR,
397 .oprofile_mmcra_clear = POWER6_MMCRA_THRM |
398 POWER6_MMCRA_OTHER,
399 .platform = "power6x",
400 },
401 { /* 2.05-compliant processor, i.e. Power6 "architected" mode */
402 .pvr_mask = 0xffffffff,
403 .pvr_value = 0x0f000002,
404 .cpu_name = "POWER6 (architected)",
Anton Blanchard03054d52006-04-29 09:51:06 +1000405 .cpu_features = CPU_FTRS_POWER6,
406 .cpu_user_features = COMMON_USER_POWER6,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000407 .mmu_features = MMU_FTR_HPTE_TABLE,
Anton Blanchard03054d52006-04-29 09:51:06 +1000408 .icache_bsize = 128,
409 .dcache_bsize = 128,
Michael Wolf79af6c42009-04-27 06:17:54 +0000410 .oprofile_cpu_type = "ppc64/ibm-compat-v1",
411 .oprofile_type = PPC_OPROFILE_POWER4,
Anton Blanchard03054d52006-04-29 09:51:06 +1000412 .platform = "power6",
413 },
Joel Schopp635f5a62008-06-19 06:18:21 +1000414 { /* 2.06-compliant processor, i.e. Power7 "architected" mode */
415 .pvr_mask = 0xffffffff,
416 .pvr_value = 0x0f000003,
417 .cpu_name = "POWER7 (architected)",
418 .cpu_features = CPU_FTRS_POWER7,
419 .cpu_user_features = COMMON_USER_POWER7,
Milton Miller60dbf432009-04-29 20:58:01 +0000420 .mmu_features = MMU_FTR_HPTE_TABLE |
421 MMU_FTR_TLBIE_206,
Joel Schopp635f5a62008-06-19 06:18:21 +1000422 .icache_bsize = 128,
423 .dcache_bsize = 128,
Michael Wolf79af6c42009-04-27 06:17:54 +0000424 .oprofile_type = PPC_OPROFILE_POWER4,
425 .oprofile_cpu_type = "ppc64/ibm-compat-v1",
Joel Schopp635f5a62008-06-19 06:18:21 +1000426 .platform = "power7",
427 },
Michael Neulinge952e6c2008-06-18 10:47:26 +1000428 { /* Power7 */
429 .pvr_mask = 0xffff0000,
430 .pvr_value = 0x003f0000,
Joel Schopp635f5a62008-06-19 06:18:21 +1000431 .cpu_name = "POWER7 (raw)",
Michael Neulinge952e6c2008-06-18 10:47:26 +1000432 .cpu_features = CPU_FTRS_POWER7,
433 .cpu_user_features = COMMON_USER_POWER7,
Milton Miller60dbf432009-04-29 20:58:01 +0000434 .mmu_features = MMU_FTR_HPTE_TABLE |
435 MMU_FTR_TLBIE_206,
Michael Neulinge952e6c2008-06-18 10:47:26 +1000436 .icache_bsize = 128,
437 .dcache_bsize = 128,
438 .num_pmcs = 6,
439 .pmc_type = PPC_PMC_IBM,
Michael Neulinge952e6c2008-06-18 10:47:26 +1000440 .oprofile_cpu_type = "ppc64/power7",
441 .oprofile_type = PPC_OPROFILE_POWER4,
Michael Neulinge952e6c2008-06-18 10:47:26 +1000442 .platform = "power7",
443 },
Michael Neuling6f08cb32010-11-17 18:52:44 +0000444 { /* Power7+ */
445 .pvr_mask = 0xffff0000,
446 .pvr_value = 0x004A0000,
447 .cpu_name = "POWER7+ (raw)",
448 .cpu_features = CPU_FTRS_POWER7,
449 .cpu_user_features = COMMON_USER_POWER7,
450 .mmu_features = MMU_FTR_HPTE_TABLE |
451 MMU_FTR_TLBIE_206,
452 .icache_bsize = 128,
453 .dcache_bsize = 128,
454 .num_pmcs = 6,
455 .pmc_type = PPC_PMC_IBM,
456 .oprofile_cpu_type = "ppc64/power7",
457 .oprofile_type = PPC_OPROFILE_POWER4,
458 .platform = "power7+",
459 },
Arnd Bergmannc902be72006-01-04 19:55:53 +0000460 { /* Cell Broadband Engine */
Stephen Rothwell49209602005-10-12 15:55:09 +1000461 .pvr_mask = 0xffff0000,
462 .pvr_value = 0x00700000,
463 .cpu_name = "Cell Broadband Engine",
464 .cpu_features = CPU_FTRS_CELL,
465 .cpu_user_features = COMMON_USER_PPC64 |
Benjamin Herrenschmidtaa5cb022006-03-01 15:07:07 +1100466 PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP |
467 PPC_FEATURE_SMT,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000468 .mmu_features = MMU_FTR_HPTE_TABLE,
Stephen Rothwell49209602005-10-12 15:55:09 +1000469 .icache_bsize = 128,
470 .dcache_bsize = 128,
Maynard Johnson18f21902006-11-20 18:45:16 +0100471 .num_pmcs = 4,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600472 .pmc_type = PPC_PMC_IBM,
Maynard Johnson18f21902006-11-20 18:45:16 +0100473 .oprofile_cpu_type = "ppc64/cell-be",
474 .oprofile_type = PPC_OPROFILE_CELL,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100475 .platform = "ppc-cell-be",
Stephen Rothwell49209602005-10-12 15:55:09 +1000476 },
Olof Johanssonb3ebd1d2006-09-06 14:35:57 -0500477 { /* PA Semi PA6T */
478 .pvr_mask = 0x7fff0000,
479 .pvr_value = 0x00900000,
480 .cpu_name = "PA6T",
481 .cpu_features = CPU_FTRS_PA6T,
482 .cpu_user_features = COMMON_USER_PA6T,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000483 .mmu_features = MMU_FTR_HPTE_TABLE,
Olof Johanssonb3ebd1d2006-09-06 14:35:57 -0500484 .icache_bsize = 64,
485 .dcache_bsize = 64,
486 .num_pmcs = 6,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600487 .pmc_type = PPC_PMC_PA6T,
Olof Johansson11999192007-02-04 16:36:51 -0600488 .cpu_setup = __setup_cpu_pa6t,
489 .cpu_restore = __restore_cpu_pa6t,
Olof Johansson25fc5302007-04-18 16:38:21 +1000490 .oprofile_cpu_type = "ppc64/pa6t",
491 .oprofile_type = PPC_OPROFILE_PA6T,
Olof Johanssonb3ebd1d2006-09-06 14:35:57 -0500492 .platform = "pa6t",
493 },
Stephen Rothwell49209602005-10-12 15:55:09 +1000494 { /* default match */
495 .pvr_mask = 0x00000000,
496 .pvr_value = 0x00000000,
497 .cpu_name = "POWER4 (compatible)",
498 .cpu_features = CPU_FTRS_COMPATIBLE,
499 .cpu_user_features = COMMON_USER_PPC64,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000500 .mmu_features = MMU_FTR_HPTE_TABLE,
Stephen Rothwell49209602005-10-12 15:55:09 +1000501 .icache_bsize = 128,
502 .dcache_bsize = 128,
503 .num_pmcs = 6,
Olof Johansson1bd2e5a2007-01-28 21:23:54 -0600504 .pmc_type = PPC_PMC_IBM,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100505 .platform = "power4",
Stephen Rothwell49209602005-10-12 15:55:09 +1000506 }
Benjamin Herrenschmidt2d27cfd2009-07-23 23:15:59 +0000507#endif /* CONFIG_PPC_BOOK3S_64 */
Benjamin Herrenschmidt2d27cfd2009-07-23 23:15:59 +0000508
Stephen Rothwell49209602005-10-12 15:55:09 +1000509#ifdef CONFIG_PPC32
Linus Torvalds1da177e2005-04-16 15:20:36 -0700510#if CLASSIC_PPC
Stephen Rothwell49209602005-10-12 15:55:09 +1000511 { /* 601 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700512 .pvr_mask = 0xffff0000,
513 .pvr_value = 0x00010000,
514 .cpu_name = "601",
Kumar Gala10b35d92005-09-23 14:08:58 -0500515 .cpu_features = CPU_FTRS_PPC601,
Stephen Rothwell49209602005-10-12 15:55:09 +1000516 .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR |
Paul Mackerras98599012005-10-22 16:51:34 +1000517 PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000518 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700519 .icache_bsize = 32,
520 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100521 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100522 .platform = "ppc601",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700523 },
524 { /* 603 */
525 .pvr_mask = 0xffff0000,
526 .pvr_value = 0x00030000,
527 .cpu_name = "603",
Kumar Gala10b35d92005-09-23 14:08:58 -0500528 .cpu_features = CPU_FTRS_603,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000529 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000530 .mmu_features = 0,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700531 .icache_bsize = 32,
532 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100533 .cpu_setup = __setup_cpu_603,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100534 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100535 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700536 },
537 { /* 603e */
538 .pvr_mask = 0xffff0000,
539 .pvr_value = 0x00060000,
540 .cpu_name = "603e",
Kumar Gala10b35d92005-09-23 14:08:58 -0500541 .cpu_features = CPU_FTRS_603,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000542 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000543 .mmu_features = 0,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700544 .icache_bsize = 32,
545 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100546 .cpu_setup = __setup_cpu_603,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100547 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100548 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700549 },
550 { /* 603ev */
551 .pvr_mask = 0xffff0000,
552 .pvr_value = 0x00070000,
553 .cpu_name = "603ev",
Kumar Gala10b35d92005-09-23 14:08:58 -0500554 .cpu_features = CPU_FTRS_603,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000555 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000556 .mmu_features = 0,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700557 .icache_bsize = 32,
558 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100559 .cpu_setup = __setup_cpu_603,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100560 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100561 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700562 },
563 { /* 604 */
564 .pvr_mask = 0xffff0000,
565 .pvr_value = 0x00040000,
566 .cpu_name = "604",
Kumar Gala10b35d92005-09-23 14:08:58 -0500567 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000568 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000569 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700570 .icache_bsize = 32,
571 .dcache_bsize = 32,
572 .num_pmcs = 2,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100573 .cpu_setup = __setup_cpu_604,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100574 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100575 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700576 },
577 { /* 604e */
578 .pvr_mask = 0xfffff000,
579 .pvr_value = 0x00090000,
580 .cpu_name = "604e",
Kumar Gala10b35d92005-09-23 14:08:58 -0500581 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000582 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000583 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700584 .icache_bsize = 32,
585 .dcache_bsize = 32,
586 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100587 .cpu_setup = __setup_cpu_604,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100588 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100589 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700590 },
591 { /* 604r */
592 .pvr_mask = 0xffff0000,
593 .pvr_value = 0x00090000,
594 .cpu_name = "604r",
Kumar Gala10b35d92005-09-23 14:08:58 -0500595 .cpu_features = CPU_FTRS_604,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000596 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000597 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700598 .icache_bsize = 32,
599 .dcache_bsize = 32,
600 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100601 .cpu_setup = __setup_cpu_604,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100602 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100603 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700604 },
605 { /* 604ev */
606 .pvr_mask = 0xffff0000,
607 .pvr_value = 0x000a0000,
608 .cpu_name = "604ev",
Kumar Gala10b35d92005-09-23 14:08:58 -0500609 .cpu_features = CPU_FTRS_604,
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 = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700612 .icache_bsize = 32,
613 .dcache_bsize = 32,
614 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100615 .cpu_setup = __setup_cpu_604,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100616 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100617 .platform = "ppc604",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700618 },
619 { /* 740/750 (0x4202, don't support TAU ?) */
620 .pvr_mask = 0xffffffff,
621 .pvr_value = 0x00084202,
622 .cpu_name = "740/750",
Kumar Gala10b35d92005-09-23 14:08:58 -0500623 .cpu_features = CPU_FTRS_740_NOTAU,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000624 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000625 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700626 .icache_bsize = 32,
627 .dcache_bsize = 32,
628 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100629 .cpu_setup = __setup_cpu_750,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100630 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100631 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700632 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700633 { /* 750CX (80100 and 8010x?) */
634 .pvr_mask = 0xfffffff0,
635 .pvr_value = 0x00080100,
636 .cpu_name = "750CX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500637 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000638 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000639 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700640 .icache_bsize = 32,
641 .dcache_bsize = 32,
642 .num_pmcs = 4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100643 .cpu_setup = __setup_cpu_750cx,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100644 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100645 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700646 },
647 { /* 750CX (82201 and 82202) */
648 .pvr_mask = 0xfffffff0,
649 .pvr_value = 0x00082200,
650 .cpu_name = "750CX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500651 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000652 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000653 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700654 .icache_bsize = 32,
655 .dcache_bsize = 32,
656 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000657 .pmc_type = PPC_PMC_IBM,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100658 .cpu_setup = __setup_cpu_750cx,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100659 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100660 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700661 },
662 { /* 750CXe (82214) */
663 .pvr_mask = 0xfffffff0,
664 .pvr_value = 0x00082210,
665 .cpu_name = "750CXe",
Kumar Gala10b35d92005-09-23 14:08:58 -0500666 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000667 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000668 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700669 .icache_bsize = 32,
670 .dcache_bsize = 32,
671 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000672 .pmc_type = PPC_PMC_IBM,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100673 .cpu_setup = __setup_cpu_750cx,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100674 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100675 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700676 },
Arthur Othieno7c316252005-09-03 15:55:52 -0700677 { /* 750CXe "Gekko" (83214) */
678 .pvr_mask = 0xffffffff,
679 .pvr_value = 0x00083214,
680 .cpu_name = "750CXe",
Kumar Gala10b35d92005-09-23 14:08:58 -0500681 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000682 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000683 .mmu_features = MMU_FTR_HPTE_TABLE,
Arthur Othieno7c316252005-09-03 15:55:52 -0700684 .icache_bsize = 32,
685 .dcache_bsize = 32,
686 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000687 .pmc_type = PPC_PMC_IBM,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100688 .cpu_setup = __setup_cpu_750cx,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100689 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100690 .platform = "ppc750",
Arthur Othieno7c316252005-09-03 15:55:52 -0700691 },
Albert Herranz45158dc2009-12-12 06:31:46 +0000692 { /* 750CL (and "Broadway") */
693 .pvr_mask = 0xfffff0e0,
694 .pvr_value = 0x00087000,
Jake Moilanencfbff8a2006-10-03 14:29:34 -0500695 .cpu_name = "750CL",
Josh Boyera14c4502007-04-13 04:33:25 +1000696 .cpu_features = CPU_FTRS_750CL,
Jake Moilanencfbff8a2006-10-03 14:29:34 -0500697 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000698 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
Jake Moilanencfbff8a2006-10-03 14:29:34 -0500699 .icache_bsize = 32,
700 .dcache_bsize = 32,
701 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000702 .pmc_type = PPC_PMC_IBM,
Josh Boyera14c4502007-04-13 04:33:25 +1000703 .cpu_setup = __setup_cpu_750,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100704 .machine_check = machine_check_generic,
Jake Moilanencfbff8a2006-10-03 14:29:34 -0500705 .platform = "ppc750",
Dragos Tatulea04f56532009-09-16 11:58:15 +0300706 .oprofile_cpu_type = "ppc/750",
707 .oprofile_type = PPC_OPROFILE_G4,
Jake Moilanencfbff8a2006-10-03 14:29:34 -0500708 },
Arthur Othienoac1ff042005-09-03 15:55:51 -0700709 { /* 745/755 */
710 .pvr_mask = 0xfffff000,
711 .pvr_value = 0x00083000,
712 .cpu_name = "745/755",
Kumar Gala10b35d92005-09-23 14:08:58 -0500713 .cpu_features = CPU_FTRS_750,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000714 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000715 .mmu_features = MMU_FTR_HPTE_TABLE,
Arthur Othienoac1ff042005-09-03 15:55:51 -0700716 .icache_bsize = 32,
717 .dcache_bsize = 32,
718 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000719 .pmc_type = PPC_PMC_IBM,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100720 .cpu_setup = __setup_cpu_750,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100721 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100722 .platform = "ppc750",
Arthur Othienoac1ff042005-09-03 15:55:51 -0700723 },
Linus Torvalds1da177e2005-04-16 15:20:36 -0700724 { /* 750FX rev 1.x */
725 .pvr_mask = 0xffffff00,
726 .pvr_value = 0x70000100,
727 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500728 .cpu_features = CPU_FTRS_750FX1,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000729 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000730 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700731 .icache_bsize = 32,
732 .dcache_bsize = 32,
733 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000734 .pmc_type = PPC_PMC_IBM,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100735 .cpu_setup = __setup_cpu_750,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100736 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100737 .platform = "ppc750",
Octavian Purdila7c9583a2009-03-04 02:02:42 +0000738 .oprofile_cpu_type = "ppc/750",
739 .oprofile_type = PPC_OPROFILE_G4,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700740 },
741 { /* 750FX rev 2.0 must disable HID0[DPM] */
742 .pvr_mask = 0xffffffff,
743 .pvr_value = 0x70000200,
744 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500745 .cpu_features = CPU_FTRS_750FX2,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000746 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000747 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700748 .icache_bsize = 32,
749 .dcache_bsize = 32,
750 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000751 .pmc_type = PPC_PMC_IBM,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100752 .cpu_setup = __setup_cpu_750,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100753 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100754 .platform = "ppc750",
Octavian Purdila7c9583a2009-03-04 02:02:42 +0000755 .oprofile_cpu_type = "ppc/750",
756 .oprofile_type = PPC_OPROFILE_G4,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700757 },
758 { /* 750FX (All revs except 2.0) */
759 .pvr_mask = 0xffff0000,
760 .pvr_value = 0x70000000,
761 .cpu_name = "750FX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500762 .cpu_features = CPU_FTRS_750FX,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000763 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000764 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700765 .icache_bsize = 32,
766 .dcache_bsize = 32,
767 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000768 .pmc_type = PPC_PMC_IBM,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100769 .cpu_setup = __setup_cpu_750fx,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100770 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100771 .platform = "ppc750",
Octavian Purdila7c9583a2009-03-04 02:02:42 +0000772 .oprofile_cpu_type = "ppc/750",
773 .oprofile_type = PPC_OPROFILE_G4,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700774 },
775 { /* 750GX */
776 .pvr_mask = 0xffff0000,
777 .pvr_value = 0x70020000,
778 .cpu_name = "750GX",
Kumar Gala10b35d92005-09-23 14:08:58 -0500779 .cpu_features = CPU_FTRS_750GX,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000780 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000781 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700782 .icache_bsize = 32,
783 .dcache_bsize = 32,
784 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000785 .pmc_type = PPC_PMC_IBM,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100786 .cpu_setup = __setup_cpu_750fx,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100787 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100788 .platform = "ppc750",
Octavian Purdila7c9583a2009-03-04 02:02:42 +0000789 .oprofile_cpu_type = "ppc/750",
790 .oprofile_type = PPC_OPROFILE_G4,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700791 },
792 { /* 740/750 (L2CR bit need fixup for 740) */
793 .pvr_mask = 0xffff0000,
794 .pvr_value = 0x00080000,
795 .cpu_name = "740/750",
Kumar Gala10b35d92005-09-23 14:08:58 -0500796 .cpu_features = CPU_FTRS_740,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000797 .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000798 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700799 .icache_bsize = 32,
800 .dcache_bsize = 32,
801 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000802 .pmc_type = PPC_PMC_IBM,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100803 .cpu_setup = __setup_cpu_750,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100804 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100805 .platform = "ppc750",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700806 },
807 { /* 7400 rev 1.1 ? (no TAU) */
808 .pvr_mask = 0xffffffff,
809 .pvr_value = 0x000c1101,
810 .cpu_name = "7400 (1.1)",
Kumar Gala10b35d92005-09-23 14:08:58 -0500811 .cpu_features = CPU_FTRS_7400_NOTAU,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000812 .cpu_user_features = COMMON_USER |
813 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000814 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700815 .icache_bsize = 32,
816 .dcache_bsize = 32,
817 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000818 .pmc_type = PPC_PMC_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100819 .cpu_setup = __setup_cpu_7400,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100820 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100821 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700822 },
823 { /* 7400 */
824 .pvr_mask = 0xffff0000,
825 .pvr_value = 0x000c0000,
826 .cpu_name = "7400",
Kumar Gala10b35d92005-09-23 14:08:58 -0500827 .cpu_features = CPU_FTRS_7400,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000828 .cpu_user_features = COMMON_USER |
829 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000830 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700831 .icache_bsize = 32,
832 .dcache_bsize = 32,
833 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000834 .pmc_type = PPC_PMC_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100835 .cpu_setup = __setup_cpu_7400,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100836 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100837 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700838 },
839 { /* 7410 */
840 .pvr_mask = 0xffff0000,
841 .pvr_value = 0x800c0000,
842 .cpu_name = "7410",
Kumar Gala10b35d92005-09-23 14:08:58 -0500843 .cpu_features = CPU_FTRS_7400,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000844 .cpu_user_features = COMMON_USER |
845 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000846 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700847 .icache_bsize = 32,
848 .dcache_bsize = 32,
849 .num_pmcs = 4,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000850 .pmc_type = PPC_PMC_G4,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100851 .cpu_setup = __setup_cpu_7410,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100852 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100853 .platform = "ppc7400",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700854 },
855 { /* 7450 2.0 - no doze/nap */
856 .pvr_mask = 0xffffffff,
857 .pvr_value = 0x80000200,
858 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500859 .cpu_features = CPU_FTRS_7450_20,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000860 .cpu_user_features = COMMON_USER |
861 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000862 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700863 .icache_bsize = 32,
864 .dcache_bsize = 32,
865 .num_pmcs = 6,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000866 .pmc_type = PPC_PMC_G4,
Andy Fleming555d97a2005-12-15 20:02:04 -0600867 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600868 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000869 .oprofile_type = PPC_OPROFILE_G4,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100870 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100871 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700872 },
873 { /* 7450 2.1 */
874 .pvr_mask = 0xffffffff,
875 .pvr_value = 0x80000201,
876 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500877 .cpu_features = CPU_FTRS_7450_21,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000878 .cpu_user_features = COMMON_USER |
879 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000880 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700881 .icache_bsize = 32,
882 .dcache_bsize = 32,
883 .num_pmcs = 6,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000884 .pmc_type = PPC_PMC_G4,
Andy Fleming555d97a2005-12-15 20:02:04 -0600885 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600886 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000887 .oprofile_type = PPC_OPROFILE_G4,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100888 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100889 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700890 },
891 { /* 7450 2.3 and newer */
892 .pvr_mask = 0xffff0000,
893 .pvr_value = 0x80000000,
894 .cpu_name = "7450",
Kumar Gala10b35d92005-09-23 14:08:58 -0500895 .cpu_features = CPU_FTRS_7450_23,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000896 .cpu_user_features = COMMON_USER |
897 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000898 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700899 .icache_bsize = 32,
900 .dcache_bsize = 32,
901 .num_pmcs = 6,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000902 .pmc_type = PPC_PMC_G4,
Andy Fleming555d97a2005-12-15 20:02:04 -0600903 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600904 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000905 .oprofile_type = PPC_OPROFILE_G4,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100906 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100907 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700908 },
909 { /* 7455 rev 1.x */
910 .pvr_mask = 0xffffff00,
911 .pvr_value = 0x80010100,
912 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500913 .cpu_features = CPU_FTRS_7455_1,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000914 .cpu_user_features = COMMON_USER |
915 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000916 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700917 .icache_bsize = 32,
918 .dcache_bsize = 32,
919 .num_pmcs = 6,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000920 .pmc_type = PPC_PMC_G4,
Andy Fleming555d97a2005-12-15 20:02:04 -0600921 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600922 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000923 .oprofile_type = PPC_OPROFILE_G4,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100924 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100925 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700926 },
927 { /* 7455 rev 2.0 */
928 .pvr_mask = 0xffffffff,
929 .pvr_value = 0x80010200,
930 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500931 .cpu_features = CPU_FTRS_7455_20,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000932 .cpu_user_features = COMMON_USER |
933 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000934 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700935 .icache_bsize = 32,
936 .dcache_bsize = 32,
937 .num_pmcs = 6,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000938 .pmc_type = PPC_PMC_G4,
Andy Fleming555d97a2005-12-15 20:02:04 -0600939 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600940 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000941 .oprofile_type = PPC_OPROFILE_G4,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100942 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100943 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700944 },
945 { /* 7455 others */
946 .pvr_mask = 0xffff0000,
947 .pvr_value = 0x80010000,
948 .cpu_name = "7455",
Kumar Gala10b35d92005-09-23 14:08:58 -0500949 .cpu_features = CPU_FTRS_7455,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000950 .cpu_user_features = COMMON_USER |
951 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000952 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700953 .icache_bsize = 32,
954 .dcache_bsize = 32,
955 .num_pmcs = 6,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000956 .pmc_type = PPC_PMC_G4,
Andy Fleming555d97a2005-12-15 20:02:04 -0600957 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600958 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000959 .oprofile_type = PPC_OPROFILE_G4,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100960 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100961 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700962 },
963 { /* 7447/7457 Rev 1.0 */
964 .pvr_mask = 0xffffffff,
965 .pvr_value = 0x80020100,
966 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500967 .cpu_features = CPU_FTRS_7447_10,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000968 .cpu_user_features = COMMON_USER |
969 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000970 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700971 .icache_bsize = 32,
972 .dcache_bsize = 32,
973 .num_pmcs = 6,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000974 .pmc_type = PPC_PMC_G4,
Andy Fleming555d97a2005-12-15 20:02:04 -0600975 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600976 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000977 .oprofile_type = PPC_OPROFILE_G4,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100978 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100979 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700980 },
981 { /* 7447/7457 Rev 1.1 */
982 .pvr_mask = 0xffffffff,
983 .pvr_value = 0x80020101,
984 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -0500985 .cpu_features = CPU_FTRS_7447_10,
Paul Mackerrasfab5db92006-06-07 16:14:40 +1000986 .cpu_user_features = COMMON_USER |
987 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +0000988 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700989 .icache_bsize = 32,
990 .dcache_bsize = 32,
991 .num_pmcs = 6,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +1000992 .pmc_type = PPC_PMC_G4,
Andy Fleming555d97a2005-12-15 20:02:04 -0600993 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -0600994 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +0000995 .oprofile_type = PPC_OPROFILE_G4,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +1100996 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +1100997 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -0700998 },
999 { /* 7447/7457 Rev 1.2 and later */
1000 .pvr_mask = 0xffff0000,
1001 .pvr_value = 0x80020000,
1002 .cpu_name = "7447/7457",
Kumar Gala10b35d92005-09-23 14:08:58 -05001003 .cpu_features = CPU_FTRS_7447,
Paul Mackerrasfab5db92006-06-07 16:14:40 +10001004 .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001005 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001006 .icache_bsize = 32,
1007 .dcache_bsize = 32,
1008 .num_pmcs = 6,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +10001009 .pmc_type = PPC_PMC_G4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001010 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -06001011 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001012 .oprofile_type = PPC_OPROFILE_G4,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001013 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001014 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001015 },
1016 { /* 7447A */
1017 .pvr_mask = 0xffff0000,
1018 .pvr_value = 0x80030000,
1019 .cpu_name = "7447A",
Kumar Gala10b35d92005-09-23 14:08:58 -05001020 .cpu_features = CPU_FTRS_7447A,
Paul Mackerrasfab5db92006-06-07 16:14:40 +10001021 .cpu_user_features = COMMON_USER |
1022 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001023 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001024 .icache_bsize = 32,
1025 .dcache_bsize = 32,
1026 .num_pmcs = 6,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +10001027 .pmc_type = PPC_PMC_G4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001028 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -06001029 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001030 .oprofile_type = PPC_OPROFILE_G4,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001031 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001032 .platform = "ppc7450",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001033 },
Kumar Galabbde6302005-09-03 15:55:55 -07001034 { /* 7448 */
1035 .pvr_mask = 0xffff0000,
1036 .pvr_value = 0x80040000,
1037 .cpu_name = "7448",
James.Yang3d372542007-05-02 16:34:43 -05001038 .cpu_features = CPU_FTRS_7448,
Paul Mackerrasfab5db92006-06-07 16:14:40 +10001039 .cpu_user_features = COMMON_USER |
1040 PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001041 .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS,
Kumar Galabbde6302005-09-03 15:55:55 -07001042 .icache_bsize = 32,
1043 .dcache_bsize = 32,
1044 .num_pmcs = 6,
Benjamin Herrenschmidtb950bdd2008-08-18 14:23:51 +10001045 .pmc_type = PPC_PMC_G4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001046 .cpu_setup = __setup_cpu_745x,
Andy Fleming555d97a2005-12-15 20:02:04 -06001047 .oprofile_cpu_type = "ppc/7450",
Andy Whitcroft7a45fb12006-01-13 12:35:49 +00001048 .oprofile_type = PPC_OPROFILE_G4,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001049 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001050 .platform = "ppc7450",
Kumar Galabbde6302005-09-03 15:55:55 -07001051 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001052 { /* 82xx (8240, 8245, 8260 are all 603e cores) */
1053 .pvr_mask = 0x7fff0000,
1054 .pvr_value = 0x00810000,
1055 .cpu_name = "82xx",
Kumar Gala10b35d92005-09-23 14:08:58 -05001056 .cpu_features = CPU_FTRS_82XX,
Stephen Rothwell49209602005-10-12 15:55:09 +10001057 .cpu_user_features = COMMON_USER,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001058 .mmu_features = 0,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001059 .icache_bsize = 32,
1060 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001061 .cpu_setup = __setup_cpu_603,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001062 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001063 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001064 },
1065 { /* All G2_LE (603e core, plus some) have the same pvr */
1066 .pvr_mask = 0x7fff0000,
1067 .pvr_value = 0x00820000,
1068 .cpu_name = "G2_LE",
Kumar Gala10b35d92005-09-23 14:08:58 -05001069 .cpu_features = CPU_FTRS_G2_LE,
Stephen Rothwell49209602005-10-12 15:55:09 +10001070 .cpu_user_features = COMMON_USER,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001071 .mmu_features = MMU_FTR_USE_HIGH_BATS,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001072 .icache_bsize = 32,
1073 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001074 .cpu_setup = __setup_cpu_603,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001075 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001076 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001077 },
Kim Phillips6c4a2502006-10-02 20:10:24 -05001078 { /* e300c1 (a 603e core, plus some) on 83xx */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001079 .pvr_mask = 0x7fff0000,
1080 .pvr_value = 0x00830000,
Kim Phillips6c4a2502006-10-02 20:10:24 -05001081 .cpu_name = "e300c1",
Kumar Gala10b35d92005-09-23 14:08:58 -05001082 .cpu_features = CPU_FTRS_E300,
Stephen Rothwell49209602005-10-12 15:55:09 +10001083 .cpu_user_features = COMMON_USER,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001084 .mmu_features = MMU_FTR_USE_HIGH_BATS,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001085 .icache_bsize = 32,
1086 .dcache_bsize = 32,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001087 .cpu_setup = __setup_cpu_603,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001088 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001089 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001090 },
Kim Phillips6c4a2502006-10-02 20:10:24 -05001091 { /* e300c2 (an e300c1 core, plus some, minus FPU) on 83xx */
1092 .pvr_mask = 0x7fff0000,
1093 .pvr_value = 0x00840000,
1094 .cpu_name = "e300c2",
Kim Phillipsaa42c692006-12-08 02:43:30 -06001095 .cpu_features = CPU_FTRS_E300C2,
Kim Phillips6c4a2502006-10-02 20:10:24 -05001096 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
Kumar Gala2319f122009-03-19 03:55:41 +00001097 .mmu_features = MMU_FTR_USE_HIGH_BATS |
1098 MMU_FTR_NEED_DTLB_SW_LRU,
Kim Phillips6c4a2502006-10-02 20:10:24 -05001099 .icache_bsize = 32,
1100 .dcache_bsize = 32,
1101 .cpu_setup = __setup_cpu_603,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001102 .machine_check = machine_check_generic,
Kim Phillips6c4a2502006-10-02 20:10:24 -05001103 .platform = "ppc603",
1104 },
Li Yanga58d5242007-10-19 19:38:42 +08001105 { /* e300c3 (e300c1, plus one IU, half cache size) on 83xx */
Scott Wood57933f82006-12-01 12:57:05 -06001106 .pvr_mask = 0x7fff0000,
1107 .pvr_value = 0x00850000,
1108 .cpu_name = "e300c3",
1109 .cpu_features = CPU_FTRS_E300,
1110 .cpu_user_features = COMMON_USER,
Kumar Gala2319f122009-03-19 03:55:41 +00001111 .mmu_features = MMU_FTR_USE_HIGH_BATS |
1112 MMU_FTR_NEED_DTLB_SW_LRU,
Scott Wood57933f82006-12-01 12:57:05 -06001113 .icache_bsize = 32,
1114 .dcache_bsize = 32,
1115 .cpu_setup = __setup_cpu_603,
Andy Fleming1347a2c12008-02-04 18:28:07 -06001116 .num_pmcs = 4,
1117 .oprofile_cpu_type = "ppc/e300",
1118 .oprofile_type = PPC_OPROFILE_FSL_EMB,
Scott Wood57933f82006-12-01 12:57:05 -06001119 .platform = "ppc603",
1120 },
Li Yanga58d5242007-10-19 19:38:42 +08001121 { /* e300c4 (e300c1, plus one IU) */
1122 .pvr_mask = 0x7fff0000,
1123 .pvr_value = 0x00860000,
1124 .cpu_name = "e300c4",
1125 .cpu_features = CPU_FTRS_E300,
1126 .cpu_user_features = COMMON_USER,
Kumar Gala2319f122009-03-19 03:55:41 +00001127 .mmu_features = MMU_FTR_USE_HIGH_BATS |
1128 MMU_FTR_NEED_DTLB_SW_LRU,
Li Yanga58d5242007-10-19 19:38:42 +08001129 .icache_bsize = 32,
1130 .dcache_bsize = 32,
1131 .cpu_setup = __setup_cpu_603,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001132 .machine_check = machine_check_generic,
Andy Fleming1347a2c12008-02-04 18:28:07 -06001133 .num_pmcs = 4,
1134 .oprofile_cpu_type = "ppc/e300",
1135 .oprofile_type = PPC_OPROFILE_FSL_EMB,
Li Yanga58d5242007-10-19 19:38:42 +08001136 .platform = "ppc603",
1137 },
Linus Torvalds1da177e2005-04-16 15:20:36 -07001138 { /* default match, we assume split I/D cache & TB (non-601)... */
1139 .pvr_mask = 0x00000000,
1140 .pvr_value = 0x00000000,
1141 .cpu_name = "(generic PPC)",
Kumar Gala10b35d92005-09-23 14:08:58 -05001142 .cpu_features = CPU_FTRS_CLASSIC32,
Stephen Rothwell49209602005-10-12 15:55:09 +10001143 .cpu_user_features = COMMON_USER,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001144 .mmu_features = MMU_FTR_HPTE_TABLE,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001145 .icache_bsize = 32,
1146 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001147 .machine_check = machine_check_generic,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001148 .platform = "ppc603",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001149 },
1150#endif /* CLASSIC_PPC */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001151#ifdef CONFIG_8xx
1152 { /* 8xx */
1153 .pvr_mask = 0xffff0000,
1154 .pvr_value = 0x00500000,
1155 .cpu_name = "8xx",
1156 /* CPU_FTR_MAYBE_CAN_DOZE is possible,
1157 * if the 8xx code is there.... */
Kumar Gala10b35d92005-09-23 14:08:58 -05001158 .cpu_features = CPU_FTRS_8XX,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001159 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001160 .mmu_features = MMU_FTR_TYPE_8xx,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001161 .icache_bsize = 16,
1162 .dcache_bsize = 16,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001163 .platform = "ppc823",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001164 },
1165#endif /* CONFIG_8xx */
1166#ifdef CONFIG_40x
1167 { /* 403GC */
1168 .pvr_mask = 0xffffff00,
1169 .pvr_value = 0x00200200,
1170 .cpu_name = "403GC",
Kumar Gala10b35d92005-09-23 14:08:58 -05001171 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001172 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001173 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001174 .icache_bsize = 16,
1175 .dcache_bsize = 16,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001176 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001177 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001178 },
1179 { /* 403GCX */
1180 .pvr_mask = 0xffffff00,
1181 .pvr_value = 0x00201400,
1182 .cpu_name = "403GCX",
Kumar Gala10b35d92005-09-23 14:08:58 -05001183 .cpu_features = CPU_FTRS_40X,
Paul Mackerras98599012005-10-22 16:51:34 +10001184 .cpu_user_features = PPC_FEATURE_32 |
1185 PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001186 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001187 .icache_bsize = 16,
1188 .dcache_bsize = 16,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001189 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001190 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001191 },
1192 { /* 403G ?? */
1193 .pvr_mask = 0xffff0000,
1194 .pvr_value = 0x00200000,
1195 .cpu_name = "403G ??",
Kumar Gala10b35d92005-09-23 14:08:58 -05001196 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001197 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001198 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001199 .icache_bsize = 16,
1200 .dcache_bsize = 16,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001201 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001202 .platform = "ppc403",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001203 },
1204 { /* 405GP */
1205 .pvr_mask = 0xffff0000,
1206 .pvr_value = 0x40110000,
1207 .cpu_name = "405GP",
Kumar Gala10b35d92005-09-23 14:08:58 -05001208 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001209 .cpu_user_features = PPC_FEATURE_32 |
1210 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001211 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001212 .icache_bsize = 32,
1213 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001214 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001215 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001216 },
1217 { /* STB 03xxx */
1218 .pvr_mask = 0xffff0000,
1219 .pvr_value = 0x40130000,
1220 .cpu_name = "STB03xxx",
Kumar Gala10b35d92005-09-23 14:08:58 -05001221 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001222 .cpu_user_features = PPC_FEATURE_32 |
1223 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001224 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001225 .icache_bsize = 32,
1226 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001227 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001228 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001229 },
1230 { /* STB 04xxx */
1231 .pvr_mask = 0xffff0000,
1232 .pvr_value = 0x41810000,
1233 .cpu_name = "STB04xxx",
Kumar Gala10b35d92005-09-23 14:08:58 -05001234 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001235 .cpu_user_features = PPC_FEATURE_32 |
1236 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001237 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001238 .icache_bsize = 32,
1239 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001240 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001241 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001242 },
1243 { /* NP405L */
1244 .pvr_mask = 0xffff0000,
1245 .pvr_value = 0x41610000,
1246 .cpu_name = "NP405L",
Kumar Gala10b35d92005-09-23 14:08:58 -05001247 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001248 .cpu_user_features = PPC_FEATURE_32 |
1249 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001250 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001251 .icache_bsize = 32,
1252 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001253 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001254 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001255 },
1256 { /* NP4GS3 */
1257 .pvr_mask = 0xffff0000,
1258 .pvr_value = 0x40B10000,
1259 .cpu_name = "NP4GS3",
Kumar Gala10b35d92005-09-23 14:08:58 -05001260 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001261 .cpu_user_features = PPC_FEATURE_32 |
1262 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001263 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001264 .icache_bsize = 32,
1265 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001266 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001267 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001268 },
1269 { /* NP405H */
1270 .pvr_mask = 0xffff0000,
1271 .pvr_value = 0x41410000,
1272 .cpu_name = "NP405H",
Kumar Gala10b35d92005-09-23 14:08:58 -05001273 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001274 .cpu_user_features = PPC_FEATURE_32 |
1275 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001276 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001277 .icache_bsize = 32,
1278 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001279 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001280 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001281 },
1282 { /* 405GPr */
1283 .pvr_mask = 0xffff0000,
1284 .pvr_value = 0x50910000,
1285 .cpu_name = "405GPr",
Kumar Gala10b35d92005-09-23 14:08:58 -05001286 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001287 .cpu_user_features = PPC_FEATURE_32 |
1288 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001289 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001290 .icache_bsize = 32,
1291 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001292 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001293 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001294 },
1295 { /* STBx25xx */
1296 .pvr_mask = 0xffff0000,
1297 .pvr_value = 0x51510000,
1298 .cpu_name = "STBx25xx",
Kumar Gala10b35d92005-09-23 14:08:58 -05001299 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001300 .cpu_user_features = PPC_FEATURE_32 |
1301 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001302 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001303 .icache_bsize = 32,
1304 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001305 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001306 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001307 },
1308 { /* 405LP */
1309 .pvr_mask = 0xffff0000,
1310 .pvr_value = 0x41F10000,
1311 .cpu_name = "405LP",
Kumar Gala10b35d92005-09-23 14:08:58 -05001312 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001313 .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001314 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001315 .icache_bsize = 32,
1316 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001317 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001318 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001319 },
1320 { /* Xilinx Virtex-II Pro */
Grant C. Likely72646c72006-01-19 01:13:20 -07001321 .pvr_mask = 0xfffff000,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001322 .pvr_value = 0x20010000,
1323 .cpu_name = "Virtex-II Pro",
Kumar Gala10b35d92005-09-23 14:08:58 -05001324 .cpu_features = CPU_FTRS_40X,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001325 .cpu_user_features = PPC_FEATURE_32 |
1326 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001327 .mmu_features = MMU_FTR_TYPE_40x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001328 .icache_bsize = 32,
1329 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001330 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001331 .platform = "ppc405",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001332 },
Grant C. Likely72646c72006-01-19 01:13:20 -07001333 { /* Xilinx Virtex-4 FX */
1334 .pvr_mask = 0xfffff000,
1335 .pvr_value = 0x20011000,
1336 .cpu_name = "Virtex-4 FX",
1337 .cpu_features = CPU_FTRS_40X,
1338 .cpu_user_features = PPC_FEATURE_32 |
1339 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001340 .mmu_features = MMU_FTR_TYPE_40x,
Grant C. Likely72646c72006-01-19 01:13:20 -07001341 .icache_bsize = 32,
1342 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001343 .machine_check = machine_check_4xx,
Peter Bergner838fdb42006-09-14 14:18:38 -05001344 .platform = "ppc405",
Grant C. Likely72646c72006-01-19 01:13:20 -07001345 },
Eugene Suroveginad95d602005-06-07 13:22:09 -07001346 { /* 405EP */
1347 .pvr_mask = 0xffff0000,
1348 .pvr_value = 0x51210000,
1349 .cpu_name = "405EP",
Kumar Gala10b35d92005-09-23 14:08:58 -05001350 .cpu_features = CPU_FTRS_40X,
Eugene Suroveginad95d602005-06-07 13:22:09 -07001351 .cpu_user_features = PPC_FEATURE_32 |
1352 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001353 .mmu_features = MMU_FTR_TYPE_40x,
Eugene Suroveginad95d602005-06-07 13:22:09 -07001354 .icache_bsize = 32,
1355 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001356 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001357 .platform = "ppc405",
Eugene Suroveginad95d602005-06-07 13:22:09 -07001358 },
Lee Nipperff349102010-07-09 01:17:16 +00001359 { /* 405EX Rev. A/B with Security */
1360 .pvr_mask = 0xffff000f,
1361 .pvr_value = 0x12910007,
1362 .cpu_name = "405EX Rev. A/B",
Stefan Roese5d8476c2007-10-11 22:08:14 +10001363 .cpu_features = CPU_FTRS_40X,
1364 .cpu_user_features = PPC_FEATURE_32 |
1365 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001366 .mmu_features = MMU_FTR_TYPE_40x,
Stefan Roese5d8476c2007-10-11 22:08:14 +10001367 .icache_bsize = 32,
1368 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001369 .machine_check = machine_check_4xx,
Stefan Roese5d8476c2007-10-11 22:08:14 +10001370 .platform = "ppc405",
1371 },
Lee Nipperff349102010-07-09 01:17:16 +00001372 { /* 405EX Rev. C without Security */
1373 .pvr_mask = 0xffff000f,
1374 .pvr_value = 0x1291000d,
1375 .cpu_name = "405EX Rev. C",
1376 .cpu_features = CPU_FTRS_40X,
1377 .cpu_user_features = PPC_FEATURE_32 |
1378 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1379 .mmu_features = MMU_FTR_TYPE_40x,
1380 .icache_bsize = 32,
1381 .dcache_bsize = 32,
1382 .machine_check = machine_check_4xx,
1383 .platform = "ppc405",
1384 },
1385 { /* 405EX Rev. C with Security */
1386 .pvr_mask = 0xffff000f,
1387 .pvr_value = 0x1291000f,
1388 .cpu_name = "405EX Rev. C",
1389 .cpu_features = CPU_FTRS_40X,
1390 .cpu_user_features = PPC_FEATURE_32 |
1391 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1392 .mmu_features = MMU_FTR_TYPE_40x,
1393 .icache_bsize = 32,
1394 .dcache_bsize = 32,
1395 .machine_check = machine_check_4xx,
1396 .platform = "ppc405",
1397 },
1398 { /* 405EX Rev. D without Security */
1399 .pvr_mask = 0xffff000f,
1400 .pvr_value = 0x12910003,
1401 .cpu_name = "405EX Rev. D",
1402 .cpu_features = CPU_FTRS_40X,
1403 .cpu_user_features = PPC_FEATURE_32 |
1404 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1405 .mmu_features = MMU_FTR_TYPE_40x,
1406 .icache_bsize = 32,
1407 .dcache_bsize = 32,
1408 .machine_check = machine_check_4xx,
1409 .platform = "ppc405",
1410 },
1411 { /* 405EX Rev. D with Security */
1412 .pvr_mask = 0xffff000f,
1413 .pvr_value = 0x12910005,
1414 .cpu_name = "405EX Rev. D",
1415 .cpu_features = CPU_FTRS_40X,
1416 .cpu_user_features = PPC_FEATURE_32 |
1417 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1418 .mmu_features = MMU_FTR_TYPE_40x,
1419 .icache_bsize = 32,
1420 .dcache_bsize = 32,
1421 .machine_check = machine_check_4xx,
1422 .platform = "ppc405",
1423 },
1424 { /* 405EXr Rev. A/B without Security */
1425 .pvr_mask = 0xffff000f,
1426 .pvr_value = 0x12910001,
1427 .cpu_name = "405EXr Rev. A/B",
1428 .cpu_features = CPU_FTRS_40X,
1429 .cpu_user_features = PPC_FEATURE_32 |
1430 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1431 .mmu_features = MMU_FTR_TYPE_40x,
1432 .icache_bsize = 32,
1433 .dcache_bsize = 32,
1434 .machine_check = machine_check_4xx,
1435 .platform = "ppc405",
1436 },
1437 { /* 405EXr Rev. C without Security */
1438 .pvr_mask = 0xffff000f,
1439 .pvr_value = 0x12910009,
1440 .cpu_name = "405EXr Rev. C",
1441 .cpu_features = CPU_FTRS_40X,
1442 .cpu_user_features = PPC_FEATURE_32 |
1443 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1444 .mmu_features = MMU_FTR_TYPE_40x,
1445 .icache_bsize = 32,
1446 .dcache_bsize = 32,
1447 .machine_check = machine_check_4xx,
1448 .platform = "ppc405",
1449 },
1450 { /* 405EXr Rev. C with Security */
1451 .pvr_mask = 0xffff000f,
1452 .pvr_value = 0x1291000b,
1453 .cpu_name = "405EXr Rev. C",
1454 .cpu_features = CPU_FTRS_40X,
1455 .cpu_user_features = PPC_FEATURE_32 |
1456 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1457 .mmu_features = MMU_FTR_TYPE_40x,
1458 .icache_bsize = 32,
1459 .dcache_bsize = 32,
1460 .machine_check = machine_check_4xx,
1461 .platform = "ppc405",
1462 },
1463 { /* 405EXr Rev. D without Security */
1464 .pvr_mask = 0xffff000f,
Stefan Roeseb676d842008-01-15 18:09:15 +11001465 .pvr_value = 0x12910000,
Lee Nipperff349102010-07-09 01:17:16 +00001466 .cpu_name = "405EXr Rev. D",
1467 .cpu_features = CPU_FTRS_40X,
1468 .cpu_user_features = PPC_FEATURE_32 |
1469 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
1470 .mmu_features = MMU_FTR_TYPE_40x,
1471 .icache_bsize = 32,
1472 .dcache_bsize = 32,
1473 .machine_check = machine_check_4xx,
1474 .platform = "ppc405",
1475 },
1476 { /* 405EXr Rev. D with Security */
1477 .pvr_mask = 0xffff000f,
1478 .pvr_value = 0x12910002,
1479 .cpu_name = "405EXr Rev. D",
Stefan Roeseb676d842008-01-15 18:09:15 +11001480 .cpu_features = CPU_FTRS_40X,
1481 .cpu_user_features = PPC_FEATURE_32 |
1482 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001483 .mmu_features = MMU_FTR_TYPE_40x,
Stefan Roeseb676d842008-01-15 18:09:15 +11001484 .icache_bsize = 32,
1485 .dcache_bsize = 32,
1486 .machine_check = machine_check_4xx,
1487 .platform = "ppc405",
1488 },
Josh Boyerdf8f71f2008-10-09 08:56:38 -04001489 {
1490 /* 405EZ */
1491 .pvr_mask = 0xffff0000,
1492 .pvr_value = 0x41510000,
1493 .cpu_name = "405EZ",
1494 .cpu_features = CPU_FTRS_40X,
1495 .cpu_user_features = PPC_FEATURE_32 |
1496 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001497 .mmu_features = MMU_FTR_TYPE_40x,
Josh Boyerdf8f71f2008-10-09 08:56:38 -04001498 .icache_bsize = 32,
1499 .dcache_bsize = 32,
1500 .machine_check = machine_check_4xx,
1501 .platform = "ppc405",
1502 },
Benjamin Herrenschmidt76bc080e2008-05-05 15:22:27 +10001503 { /* default match */
1504 .pvr_mask = 0x00000000,
1505 .pvr_value = 0x00000000,
1506 .cpu_name = "(generic 40x PPC)",
1507 .cpu_features = CPU_FTRS_40X,
1508 .cpu_user_features = PPC_FEATURE_32 |
1509 PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001510 .mmu_features = MMU_FTR_TYPE_40x,
Benjamin Herrenschmidt76bc080e2008-05-05 15:22:27 +10001511 .icache_bsize = 32,
1512 .dcache_bsize = 32,
1513 .machine_check = machine_check_4xx,
1514 .platform = "ppc405",
1515 }
Linus Torvalds1da177e2005-04-16 15:20:36 -07001516
1517#endif /* CONFIG_40x */
1518#ifdef CONFIG_44x
Matt Porterc9cf73a2005-07-31 22:34:52 -07001519 {
1520 .pvr_mask = 0xf0000fff,
1521 .pvr_value = 0x40000850,
Valentine Barshakd1dfc352007-10-26 04:16:40 +10001522 .cpu_name = "440GR Rev. A",
1523 .cpu_features = CPU_FTRS_44X,
1524 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001525 .mmu_features = MMU_FTR_TYPE_44x,
Valentine Barshakd1dfc352007-10-26 04:16:40 +10001526 .icache_bsize = 32,
1527 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001528 .machine_check = machine_check_4xx,
Valentine Barshakd1dfc352007-10-26 04:16:40 +10001529 .platform = "ppc440",
1530 },
1531 { /* Use logical PVR for 440EP (logical pvr = pvr | 0x8) */
1532 .pvr_mask = 0xf0000fff,
1533 .pvr_value = 0x40000858,
Matt Porterc9cf73a2005-07-31 22:34:52 -07001534 .cpu_name = "440EP Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -05001535 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001536 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001537 .mmu_features = MMU_FTR_TYPE_44x,
Matt Porterc9cf73a2005-07-31 22:34:52 -07001538 .icache_bsize = 32,
1539 .dcache_bsize = 32,
Valentine Barshak81127532007-09-22 00:46:57 +10001540 .cpu_setup = __setup_cpu_440ep,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001541 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001542 .platform = "ppc440",
Matt Porterc9cf73a2005-07-31 22:34:52 -07001543 },
1544 {
1545 .pvr_mask = 0xf0000fff,
1546 .pvr_value = 0x400008d3,
Valentine Barshakd1dfc352007-10-26 04:16:40 +10001547 .cpu_name = "440GR Rev. B",
1548 .cpu_features = CPU_FTRS_44X,
1549 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001550 .mmu_features = MMU_FTR_TYPE_44x,
Valentine Barshakd1dfc352007-10-26 04:16:40 +10001551 .icache_bsize = 32,
1552 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001553 .machine_check = machine_check_4xx,
Valentine Barshakd1dfc352007-10-26 04:16:40 +10001554 .platform = "ppc440",
1555 },
Sean MacLennan3f8fc3e2008-01-10 07:25:58 +11001556 { /* Matches both physical and logical PVR for 440EP (logical pvr = pvr | 0x8) */
1557 .pvr_mask = 0xf0000ff7,
1558 .pvr_value = 0x400008d4,
1559 .cpu_name = "440EP Rev. C",
1560 .cpu_features = CPU_FTRS_44X,
1561 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001562 .mmu_features = MMU_FTR_TYPE_44x,
Sean MacLennan3f8fc3e2008-01-10 07:25:58 +11001563 .icache_bsize = 32,
1564 .dcache_bsize = 32,
1565 .cpu_setup = __setup_cpu_440ep,
1566 .machine_check = machine_check_4xx,
1567 .platform = "ppc440",
1568 },
Valentine Barshakd1dfc352007-10-26 04:16:40 +10001569 { /* Use logical PVR for 440EP (logical pvr = pvr | 0x8) */
1570 .pvr_mask = 0xf0000fff,
1571 .pvr_value = 0x400008db,
Matt Porterc9cf73a2005-07-31 22:34:52 -07001572 .cpu_name = "440EP Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -05001573 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001574 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001575 .mmu_features = MMU_FTR_TYPE_44x,
Matt Porterc9cf73a2005-07-31 22:34:52 -07001576 .icache_bsize = 32,
1577 .dcache_bsize = 32,
Valentine Barshak81127532007-09-22 00:46:57 +10001578 .cpu_setup = __setup_cpu_440ep,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001579 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001580 .platform = "ppc440",
Matt Porterc9cf73a2005-07-31 22:34:52 -07001581 },
Valentine Barshak15fc9932007-08-29 17:40:30 +04001582 { /* 440GRX */
1583 .pvr_mask = 0xf0000ffb,
Valentine Barshakd1dfc352007-10-26 04:16:40 +10001584 .pvr_value = 0x200008D0,
Valentine Barshak15fc9932007-08-29 17:40:30 +04001585 .cpu_name = "440GRX",
1586 .cpu_features = CPU_FTRS_44X,
1587 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001588 .mmu_features = MMU_FTR_TYPE_44x,
Valentine Barshak15fc9932007-08-29 17:40:30 +04001589 .icache_bsize = 32,
1590 .dcache_bsize = 32,
Valentine Barshak340ffd22007-09-22 00:50:09 +10001591 .cpu_setup = __setup_cpu_440grx,
Valentine Barshakb2be3b12007-12-22 03:22:23 +11001592 .machine_check = machine_check_440A,
Valentine Barshak340ffd22007-09-22 00:50:09 +10001593 .platform = "ppc440",
Valentine Barshak15fc9932007-08-29 17:40:30 +04001594 },
Valentine Barshakd1dfc352007-10-26 04:16:40 +10001595 { /* Use logical PVR for 440EPx (logical pvr = pvr | 0x8) */
1596 .pvr_mask = 0xf0000ffb,
1597 .pvr_value = 0x200008D8,
1598 .cpu_name = "440EPX",
1599 .cpu_features = CPU_FTRS_44X,
1600 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001601 .mmu_features = MMU_FTR_TYPE_44x,
Valentine Barshakd1dfc352007-10-26 04:16:40 +10001602 .icache_bsize = 32,
1603 .dcache_bsize = 32,
1604 .cpu_setup = __setup_cpu_440epx,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001605 .machine_check = machine_check_440A,
Valentine Barshakd1dfc352007-10-26 04:16:40 +10001606 .platform = "ppc440",
1607 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001608 { /* 440GP Rev. B */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001609 .pvr_mask = 0xf0000fff,
1610 .pvr_value = 0x40000440,
1611 .cpu_name = "440GP Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -05001612 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001613 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001614 .mmu_features = MMU_FTR_TYPE_44x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001615 .icache_bsize = 32,
1616 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001617 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001618 .platform = "ppc440gp",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001619 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001620 { /* 440GP Rev. C */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001621 .pvr_mask = 0xf0000fff,
1622 .pvr_value = 0x40000481,
1623 .cpu_name = "440GP Rev. C",
Kumar Gala10b35d92005-09-23 14:08:58 -05001624 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001625 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001626 .mmu_features = MMU_FTR_TYPE_44x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001627 .icache_bsize = 32,
1628 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001629 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001630 .platform = "ppc440gp",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001631 },
1632 { /* 440GX Rev. A */
1633 .pvr_mask = 0xf0000fff,
1634 .pvr_value = 0x50000850,
1635 .cpu_name = "440GX Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -05001636 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001637 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001638 .mmu_features = MMU_FTR_TYPE_44x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001639 .icache_bsize = 32,
1640 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001641 .cpu_setup = __setup_cpu_440gx,
1642 .machine_check = machine_check_440A,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001643 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001644 },
1645 { /* 440GX Rev. B */
1646 .pvr_mask = 0xf0000fff,
1647 .pvr_value = 0x50000851,
1648 .cpu_name = "440GX Rev. B",
Kumar Gala10b35d92005-09-23 14:08:58 -05001649 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001650 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001651 .mmu_features = MMU_FTR_TYPE_44x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001652 .icache_bsize = 32,
1653 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001654 .cpu_setup = __setup_cpu_440gx,
1655 .machine_check = machine_check_440A,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001656 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001657 },
1658 { /* 440GX Rev. C */
1659 .pvr_mask = 0xf0000fff,
1660 .pvr_value = 0x50000892,
1661 .cpu_name = "440GX Rev. C",
Kumar Gala10b35d92005-09-23 14:08:58 -05001662 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001663 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001664 .mmu_features = MMU_FTR_TYPE_44x,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001665 .icache_bsize = 32,
1666 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001667 .cpu_setup = __setup_cpu_440gx,
1668 .machine_check = machine_check_440A,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001669 .platform = "ppc440",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001670 },
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001671 { /* 440GX Rev. F */
1672 .pvr_mask = 0xf0000fff,
1673 .pvr_value = 0x50000894,
1674 .cpu_name = "440GX Rev. F",
Kumar Gala10b35d92005-09-23 14:08:58 -05001675 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001676 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001677 .mmu_features = MMU_FTR_TYPE_44x,
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001678 .icache_bsize = 32,
1679 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001680 .cpu_setup = __setup_cpu_440gx,
1681 .machine_check = machine_check_440A,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001682 .platform = "ppc440",
Eugene Surovegin9149fb32005-09-03 15:55:40 -07001683 },
Matt Porter656de7e2005-09-03 15:55:42 -07001684 { /* 440SP Rev. A */
Roland Dreier333e6152007-06-16 05:36:32 +10001685 .pvr_mask = 0xfff00fff,
1686 .pvr_value = 0x53200891,
Matt Porter656de7e2005-09-03 15:55:42 -07001687 .cpu_name = "440SP Rev. A",
Kumar Gala10b35d92005-09-23 14:08:58 -05001688 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001689 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001690 .mmu_features = MMU_FTR_TYPE_44x,
Matt Porter656de7e2005-09-03 15:55:42 -07001691 .icache_bsize = 32,
1692 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001693 .machine_check = machine_check_4xx,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001694 .platform = "ppc440",
Matt Porter656de7e2005-09-03 15:55:42 -07001695 },
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001696 { /* 440SPe Rev. A */
Roland Dreier333e6152007-06-16 05:36:32 +10001697 .pvr_mask = 0xfff00fff,
1698 .pvr_value = 0x53400890,
1699 .cpu_name = "440SPe Rev. A",
1700 .cpu_features = CPU_FTRS_44X,
1701 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001702 .mmu_features = MMU_FTR_TYPE_44x,
Roland Dreier333e6152007-06-16 05:36:32 +10001703 .icache_bsize = 32,
1704 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001705 .cpu_setup = __setup_cpu_440spe,
1706 .machine_check = machine_check_440A,
Roland Dreier333e6152007-06-16 05:36:32 +10001707 .platform = "ppc440",
1708 },
1709 { /* 440SPe Rev. B */
1710 .pvr_mask = 0xfff00fff,
1711 .pvr_value = 0x53400891,
1712 .cpu_name = "440SPe Rev. B",
Kumar Galaa147c582006-12-08 02:34:38 -06001713 .cpu_features = CPU_FTRS_44X,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001714 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001715 .mmu_features = MMU_FTR_TYPE_44x,
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001716 .icache_bsize = 32,
1717 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001718 .cpu_setup = __setup_cpu_440spe,
1719 .machine_check = machine_check_440A,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001720 .platform = "ppc440",
Roland Dreierb0f7b8b2005-11-07 00:58:13 -08001721 },
John Linn23e72372008-07-01 09:42:07 -07001722 { /* 440 in Xilinx Virtex-5 FXT */
1723 .pvr_mask = 0xfffffff0,
1724 .pvr_value = 0x7ff21910,
1725 .cpu_name = "440 in Virtex-5 FXT",
1726 .cpu_features = CPU_FTRS_44X,
1727 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001728 .mmu_features = MMU_FTR_TYPE_44x,
John Linn23e72372008-07-01 09:42:07 -07001729 .icache_bsize = 32,
1730 .dcache_bsize = 32,
Grant Likely640d17d2008-12-04 05:39:55 +00001731 .cpu_setup = __setup_cpu_440x5,
1732 .machine_check = machine_check_440A,
John Linn23e72372008-07-01 09:42:07 -07001733 .platform = "ppc440",
1734 },
Stefan Roese464076a2008-02-24 08:07:41 +11001735 { /* 460EX */
Stefan Roese20d70342009-07-29 07:04:46 +00001736 .pvr_mask = 0xffff0006,
Stefan Roese464076a2008-02-24 08:07:41 +11001737 .pvr_value = 0x13020002,
1738 .cpu_name = "460EX",
Benjamin Herrenschmidt6d2170b2008-12-18 19:13:22 +00001739 .cpu_features = CPU_FTRS_440x6,
Stefan Roese464076a2008-02-24 08:07:41 +11001740 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001741 .mmu_features = MMU_FTR_TYPE_44x,
Stefan Roese464076a2008-02-24 08:07:41 +11001742 .icache_bsize = 32,
1743 .dcache_bsize = 32,
1744 .cpu_setup = __setup_cpu_460ex,
1745 .machine_check = machine_check_440A,
1746 .platform = "ppc440",
1747 },
Stefan Roese20d70342009-07-29 07:04:46 +00001748 { /* 460EX Rev B */
1749 .pvr_mask = 0xffff0007,
1750 .pvr_value = 0x13020004,
1751 .cpu_name = "460EX Rev. B",
1752 .cpu_features = CPU_FTRS_440x6,
1753 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
1754 .mmu_features = MMU_FTR_TYPE_44x,
1755 .icache_bsize = 32,
1756 .dcache_bsize = 32,
1757 .cpu_setup = __setup_cpu_460ex,
1758 .machine_check = machine_check_440A,
1759 .platform = "ppc440",
1760 },
Stefan Roese464076a2008-02-24 08:07:41 +11001761 { /* 460GT */
Stefan Roese20d70342009-07-29 07:04:46 +00001762 .pvr_mask = 0xffff0006,
Stefan Roese464076a2008-02-24 08:07:41 +11001763 .pvr_value = 0x13020000,
1764 .cpu_name = "460GT",
Benjamin Herrenschmidt6d2170b2008-12-18 19:13:22 +00001765 .cpu_features = CPU_FTRS_440x6,
Josh Boyer939e6222008-06-11 07:52:40 -04001766 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001767 .mmu_features = MMU_FTR_TYPE_44x,
Stefan Roese464076a2008-02-24 08:07:41 +11001768 .icache_bsize = 32,
1769 .dcache_bsize = 32,
Josh Boyer939e6222008-06-11 07:52:40 -04001770 .cpu_setup = __setup_cpu_460gt,
Stefan Roese464076a2008-02-24 08:07:41 +11001771 .machine_check = machine_check_440A,
1772 .platform = "ppc440",
1773 },
Stefan Roese20d70342009-07-29 07:04:46 +00001774 { /* 460GT Rev B */
1775 .pvr_mask = 0xffff0007,
1776 .pvr_value = 0x13020005,
1777 .cpu_name = "460GT Rev. B",
1778 .cpu_features = CPU_FTRS_440x6,
1779 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
1780 .mmu_features = MMU_FTR_TYPE_44x,
1781 .icache_bsize = 32,
1782 .dcache_bsize = 32,
1783 .cpu_setup = __setup_cpu_460gt,
1784 .machine_check = machine_check_440A,
1785 .platform = "ppc440",
1786 },
Madhulika Madishetty6c712092009-02-05 13:31:36 +00001787 { /* 460SX */
1788 .pvr_mask = 0xffffff00,
1789 .pvr_value = 0x13541800,
1790 .cpu_name = "460SX",
1791 .cpu_features = CPU_FTRS_44X,
1792 .cpu_user_features = COMMON_USER_BOOKE,
1793 .mmu_features = MMU_FTR_TYPE_44x,
1794 .icache_bsize = 32,
1795 .dcache_bsize = 32,
1796 .cpu_setup = __setup_cpu_460sx,
1797 .machine_check = machine_check_440A,
1798 .platform = "ppc440",
1799 },
Tirumala Marri6edc3232010-09-13 13:26:11 +00001800 { /* 464 in APM821xx */
1801 .pvr_mask = 0xffffff00,
1802 .pvr_value = 0x12C41C80,
1803 .cpu_name = "APM821XX",
1804 .cpu_features = CPU_FTRS_44X,
1805 .cpu_user_features = COMMON_USER_BOOKE |
1806 PPC_FEATURE_HAS_FPU,
1807 .mmu_features = MMU_FTR_TYPE_44x,
1808 .icache_bsize = 32,
1809 .dcache_bsize = 32,
1810 .cpu_setup = __setup_cpu_apm821xx,
1811 .machine_check = machine_check_440A,
1812 .platform = "ppc440",
1813 },
Dave Kleikampc48d0db2011-01-26 06:17:58 +00001814 { /* 476 DD2 core */
1815 .pvr_mask = 0xffffffff,
1816 .pvr_value = 0x11a52080,
Dave Kleikampe7f75ad2010-03-05 10:43:12 +00001817 .cpu_name = "476",
Dave Kleikampc48d0db2011-01-26 06:17:58 +00001818 .cpu_features = CPU_FTRS_47X | CPU_FTR_476_DD2,
Dave Kleikampe7f75ad2010-03-05 10:43:12 +00001819 .cpu_user_features = COMMON_USER_BOOKE |
1820 PPC_FEATURE_HAS_FPU,
1821 .mmu_features = MMU_FTR_TYPE_47x |
1822 MMU_FTR_USE_TLBIVAX_BCAST | MMU_FTR_LOCK_BCAST_INVAL,
1823 .icache_bsize = 32,
1824 .dcache_bsize = 128,
Dave Kleikampfc5e7092010-03-05 03:43:18 +00001825 .machine_check = machine_check_47x,
Dave Kleikampe7f75ad2010-03-05 10:43:12 +00001826 .platform = "ppc470",
1827 },
Torez Smithb4e8c8d2010-03-05 10:45:54 +00001828 { /* 476 iss */
1829 .pvr_mask = 0xffff0000,
1830 .pvr_value = 0x00050000,
1831 .cpu_name = "476",
1832 .cpu_features = CPU_FTRS_47X,
1833 .cpu_user_features = COMMON_USER_BOOKE |
1834 PPC_FEATURE_HAS_FPU,
Torez Smithb4e8c8d2010-03-05 10:45:54 +00001835 .mmu_features = MMU_FTR_TYPE_47x |
1836 MMU_FTR_USE_TLBIVAX_BCAST | MMU_FTR_LOCK_BCAST_INVAL,
1837 .icache_bsize = 32,
1838 .dcache_bsize = 128,
1839 .machine_check = machine_check_47x,
1840 .platform = "ppc470",
1841 },
Dave Kleikampc48d0db2011-01-26 06:17:58 +00001842 { /* 476 others */
1843 .pvr_mask = 0xffff0000,
1844 .pvr_value = 0x11a50000,
1845 .cpu_name = "476",
1846 .cpu_features = CPU_FTRS_47X,
1847 .cpu_user_features = COMMON_USER_BOOKE |
1848 PPC_FEATURE_HAS_FPU,
1849 .mmu_features = MMU_FTR_TYPE_47x |
1850 MMU_FTR_USE_TLBIVAX_BCAST | MMU_FTR_LOCK_BCAST_INVAL,
1851 .icache_bsize = 32,
1852 .dcache_bsize = 128,
1853 .machine_check = machine_check_47x,
1854 .platform = "ppc470",
1855 },
Benjamin Herrenschmidt76bc080e2008-05-05 15:22:27 +10001856 { /* default match */
1857 .pvr_mask = 0x00000000,
1858 .pvr_value = 0x00000000,
1859 .cpu_name = "(generic 44x PPC)",
1860 .cpu_features = CPU_FTRS_44X,
1861 .cpu_user_features = COMMON_USER_BOOKE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001862 .mmu_features = MMU_FTR_TYPE_44x,
Benjamin Herrenschmidt76bc080e2008-05-05 15:22:27 +10001863 .icache_bsize = 32,
1864 .dcache_bsize = 32,
1865 .machine_check = machine_check_4xx,
1866 .platform = "ppc440",
1867 }
Linus Torvalds1da177e2005-04-16 15:20:36 -07001868#endif /* CONFIG_44x */
Josh Boyere3e414b2007-12-24 08:44:47 -06001869#ifdef CONFIG_E200
Stephen Rothwell49209602005-10-12 15:55:09 +10001870 { /* e200z5 */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001871 .pvr_mask = 0xfff00000,
1872 .pvr_value = 0x81000000,
1873 .cpu_name = "e200z5",
1874 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001875 .cpu_features = CPU_FTRS_E200,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001876 .cpu_user_features = COMMON_USER_BOOKE |
1877 PPC_FEATURE_HAS_EFP_SINGLE |
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001878 PPC_FEATURE_UNIFIED_CACHE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001879 .mmu_features = MMU_FTR_TYPE_FSL_E,
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001880 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001881 .machine_check = machine_check_e200,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001882 .platform = "ppc5554",
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001883 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001884 { /* e200z6 */
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001885 .pvr_mask = 0xfff00000,
1886 .pvr_value = 0x81100000,
1887 .cpu_name = "e200z6",
1888 /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
Kumar Gala10b35d92005-09-23 14:08:58 -05001889 .cpu_features = CPU_FTRS_E200,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001890 .cpu_user_features = COMMON_USER_BOOKE |
Kumar Gala5e14d212007-09-13 01:44:20 -05001891 PPC_FEATURE_HAS_SPE_COMP |
1892 PPC_FEATURE_HAS_EFP_SINGLE_COMP |
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001893 PPC_FEATURE_UNIFIED_CACHE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001894 .mmu_features = MMU_FTR_TYPE_FSL_E,
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001895 .dcache_bsize = 32,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001896 .machine_check = machine_check_e200,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001897 .platform = "ppc5554",
Kumar Gala33d9e9b2005-06-25 14:54:37 -07001898 },
Benjamin Herrenschmidt76bc080e2008-05-05 15:22:27 +10001899 { /* default match */
1900 .pvr_mask = 0x00000000,
1901 .pvr_value = 0x00000000,
1902 .cpu_name = "(generic E200 PPC)",
1903 .cpu_features = CPU_FTRS_E200,
1904 .cpu_user_features = COMMON_USER_BOOKE |
1905 PPC_FEATURE_HAS_EFP_SINGLE |
1906 PPC_FEATURE_UNIFIED_CACHE,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001907 .mmu_features = MMU_FTR_TYPE_FSL_E,
Benjamin Herrenschmidt76bc080e2008-05-05 15:22:27 +10001908 .dcache_bsize = 32,
Kumar Gala105c31d2009-01-08 08:31:20 -06001909 .cpu_setup = __setup_cpu_e200,
Benjamin Herrenschmidt76bc080e2008-05-05 15:22:27 +10001910 .machine_check = machine_check_e200,
1911 .platform = "ppc5554",
Paul Mackerras516c8be2008-05-12 14:20:35 +10001912 }
Benjamin Herrenschmidt76bc080e2008-05-05 15:22:27 +10001913#endif /* CONFIG_E200 */
Kumar Gala4490c062010-10-08 08:32:11 -05001914#endif /* CONFIG_PPC32 */
Benjamin Herrenschmidt76bc080e2008-05-05 15:22:27 +10001915#ifdef CONFIG_E500
Kumar Gala4490c062010-10-08 08:32:11 -05001916#ifdef CONFIG_PPC32
Stephen Rothwell49209602005-10-12 15:55:09 +10001917 { /* e500 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001918 .pvr_mask = 0xffff0000,
1919 .pvr_value = 0x80200000,
1920 .cpu_name = "e500",
Kumar Gala10b35d92005-09-23 14:08:58 -05001921 .cpu_features = CPU_FTRS_E500,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001922 .cpu_user_features = COMMON_USER_BOOKE |
Kumar Gala5e14d212007-09-13 01:44:20 -05001923 PPC_FEATURE_HAS_SPE_COMP |
1924 PPC_FEATURE_HAS_EFP_SINGLE_COMP,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001925 .mmu_features = MMU_FTR_TYPE_FSL_E,
Linus Torvalds1da177e2005-04-16 15:20:36 -07001926 .icache_bsize = 32,
1927 .dcache_bsize = 32,
1928 .num_pmcs = 4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001929 .oprofile_cpu_type = "ppc/e500",
Andy Fleming39aef682008-02-04 18:27:55 -06001930 .oprofile_type = PPC_OPROFILE_FSL_EMB,
Kumar Gala105c31d2009-01-08 08:31:20 -06001931 .cpu_setup = __setup_cpu_e500v1,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001932 .machine_check = machine_check_e500,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001933 .platform = "ppc8540",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001934 },
Stephen Rothwell49209602005-10-12 15:55:09 +10001935 { /* e500v2 */
Kumar Gala5b37b702005-06-21 17:15:18 -07001936 .pvr_mask = 0xffff0000,
1937 .pvr_value = 0x80210000,
1938 .cpu_name = "e500v2",
Kumar Gala10b35d92005-09-23 14:08:58 -05001939 .cpu_features = CPU_FTRS_E500_2,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001940 .cpu_user_features = COMMON_USER_BOOKE |
Kumar Gala5e14d212007-09-13 01:44:20 -05001941 PPC_FEATURE_HAS_SPE_COMP |
1942 PPC_FEATURE_HAS_EFP_SINGLE_COMP |
1943 PPC_FEATURE_HAS_EFP_DOUBLE_COMP,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001944 .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS,
Kumar Gala5b37b702005-06-21 17:15:18 -07001945 .icache_bsize = 32,
1946 .dcache_bsize = 32,
1947 .num_pmcs = 4,
Andy Fleming555d97a2005-12-15 20:02:04 -06001948 .oprofile_cpu_type = "ppc/e500",
Andy Fleming39aef682008-02-04 18:27:55 -06001949 .oprofile_type = PPC_OPROFILE_FSL_EMB,
Kumar Gala105c31d2009-01-08 08:31:20 -06001950 .cpu_setup = __setup_cpu_e500v2,
Benjamin Herrenschmidt47c0bd12007-12-21 15:39:21 +11001951 .machine_check = machine_check_e500,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11001952 .platform = "ppc8548",
Kumar Gala5b37b702005-06-21 17:15:18 -07001953 },
Kumar Gala3dfa8772008-06-16 09:41:32 -05001954 { /* e500mc */
1955 .pvr_mask = 0xffff0000,
1956 .pvr_value = 0x80230000,
1957 .cpu_name = "e500mc",
Kumar Gala3dfa8772008-06-16 09:41:32 -05001958 .cpu_features = CPU_FTRS_E500MC,
1959 .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU,
Kumar Galac3071952009-02-10 22:26:06 -06001960 .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS |
Kumar Gala323d23a2009-04-23 08:51:22 -05001961 MMU_FTR_USE_TLBILX,
Kumar Gala3dfa8772008-06-16 09:41:32 -05001962 .icache_bsize = 64,
1963 .dcache_bsize = 64,
1964 .num_pmcs = 4,
Scott Wooda1110652010-02-25 18:09:45 -06001965 .oprofile_cpu_type = "ppc/e500mc",
Kumar Gala3dfa8772008-06-16 09:41:32 -05001966 .oprofile_type = PPC_OPROFILE_FSL_EMB,
Kumar Gala105c31d2009-01-08 08:31:20 -06001967 .cpu_setup = __setup_cpu_e500mc,
Scott Woodfe04b112010-04-08 00:38:22 -05001968 .machine_check = machine_check_e500mc,
Kumar Gala3dfa8772008-06-16 09:41:32 -05001969 .platform = "ppce500mc",
1970 },
Kumar Gala4490c062010-10-08 08:32:11 -05001971#endif /* CONFIG_PPC32 */
1972 { /* e5500 */
1973 .pvr_mask = 0xffff0000,
1974 .pvr_value = 0x80240000,
1975 .cpu_name = "e5500",
Kumar Gala11ed0db2011-04-06 00:11:06 -05001976 .cpu_features = CPU_FTRS_E5500,
Kumar Gala4490c062010-10-08 08:32:11 -05001977 .cpu_user_features = COMMON_USER_BOOKE,
1978 .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS |
1979 MMU_FTR_USE_TLBILX,
1980 .icache_bsize = 64,
1981 .dcache_bsize = 64,
1982 .num_pmcs = 4,
1983 .oprofile_cpu_type = "ppc/e500mc",
1984 .oprofile_type = PPC_OPROFILE_FSL_EMB,
1985 .cpu_setup = __setup_cpu_e5500,
1986 .cpu_restore = __restore_cpu_e5500,
1987 .machine_check = machine_check_e500mc,
1988 .platform = "ppce5500",
1989 },
1990#ifdef CONFIG_PPC32
Linus Torvalds1da177e2005-04-16 15:20:36 -07001991 { /* default match */
1992 .pvr_mask = 0x00000000,
1993 .pvr_value = 0x00000000,
Benjamin Herrenschmidt76bc080e2008-05-05 15:22:27 +10001994 .cpu_name = "(generic E500 PPC)",
1995 .cpu_features = CPU_FTRS_E500,
1996 .cpu_user_features = COMMON_USER_BOOKE |
1997 PPC_FEATURE_HAS_SPE_COMP |
1998 PPC_FEATURE_HAS_EFP_SINGLE_COMP,
Benjamin Herrenschmidt7c03d652008-12-18 19:13:32 +00001999 .mmu_features = MMU_FTR_TYPE_FSL_E,
Linus Torvalds1da177e2005-04-16 15:20:36 -07002000 .icache_bsize = 32,
2001 .dcache_bsize = 32,
Benjamin Herrenschmidt76bc080e2008-05-05 15:22:27 +10002002 .machine_check = machine_check_e500,
Paul Mackerras80f15dc2006-01-14 10:11:39 +11002003 .platform = "powerpc",
Paul Mackerras516c8be2008-05-12 14:20:35 +10002004 }
Stephen Rothwell49209602005-10-12 15:55:09 +10002005#endif /* CONFIG_PPC32 */
Kumar Gala4490c062010-10-08 08:32:11 -05002006#endif /* CONFIG_E500 */
Kumar Galaf45c4482009-08-18 19:08:30 +00002007
2008#ifdef CONFIG_PPC_BOOK3E_64
2009 { /* This is a default entry to get going, to be replaced by
2010 * a real one at some stage
2011 */
2012#define CPU_FTRS_BASE_BOOK3E (CPU_FTR_USE_TB | \
2013 CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_SMT | \
2014 CPU_FTR_NODSISRALIGN | CPU_FTR_NOEXECUTE)
2015 .pvr_mask = 0x00000000,
2016 .pvr_value = 0x00000000,
2017 .cpu_name = "Book3E",
2018 .cpu_features = CPU_FTRS_BASE_BOOK3E,
2019 .cpu_user_features = COMMON_USER_PPC64,
2020 .mmu_features = MMU_FTR_TYPE_3E | MMU_FTR_USE_TLBILX |
2021 MMU_FTR_USE_TLBIVAX_BCAST |
2022 MMU_FTR_LOCK_BCAST_INVAL,
2023 .icache_bsize = 64,
2024 .dcache_bsize = 64,
2025 .num_pmcs = 0,
2026 .machine_check = machine_check_generic,
2027 .platform = "power6",
2028 },
2029#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -07002030};
Benjamin Herrenschmidt42c4aaa2006-10-24 16:42:40 +10002031
Paul Mackerras87a72f92007-10-04 14:18:01 +10002032static struct cpu_spec the_cpu_spec;
2033
Michael Ellerman666435b2009-02-22 16:25:43 +00002034static void __init setup_cpu_spec(unsigned long offset, struct cpu_spec *s)
2035{
2036 struct cpu_spec *t = &the_cpu_spec;
Michael Ellerman2657dd42009-02-22 16:25:45 +00002037 struct cpu_spec old;
2038
Michael Ellerman666435b2009-02-22 16:25:43 +00002039 t = PTRRELOC(t);
Michael Ellerman2657dd42009-02-22 16:25:45 +00002040 old = *t;
2041
2042 /* Copy everything, then do fixups */
2043 *t = *s;
Michael Ellerman666435b2009-02-22 16:25:43 +00002044
2045 /*
2046 * If we are overriding a previous value derived from the real
2047 * PVR with a new value obtained using a logical PVR value,
2048 * don't modify the performance monitor fields.
2049 */
Michael Ellerman2657dd42009-02-22 16:25:45 +00002050 if (old.num_pmcs && !s->num_pmcs) {
2051 t->num_pmcs = old.num_pmcs;
2052 t->pmc_type = old.pmc_type;
2053 t->oprofile_type = old.oprofile_type;
2054 t->oprofile_mmcra_sihv = old.oprofile_mmcra_sihv;
2055 t->oprofile_mmcra_sipr = old.oprofile_mmcra_sipr;
2056 t->oprofile_mmcra_clear = old.oprofile_mmcra_clear;
2057
Michael Ellerman666435b2009-02-22 16:25:43 +00002058 /*
2059 * If we have passed through this logic once before and
2060 * have pulled the default case because the real PVR was
2061 * not found inside cpu_specs[], then we are possibly
2062 * running in compatibility mode. In that case, let the
2063 * oprofiler know which set of compatibility counters to
2064 * pull from by making sure the oprofile_cpu_type string
2065 * is set to that of compatibility mode. If the
2066 * oprofile_cpu_type already has a value, then we are
2067 * possibly overriding a real PVR with a logical one,
2068 * and, in that case, keep the current value for
2069 * oprofile_cpu_type.
2070 */
Benjamin Herrenschmidtb173f032009-05-14 18:34:06 +00002071 if (old.oprofile_cpu_type != NULL) {
Benjamin Herrenschmidt0203d6e2009-04-29 19:39:38 +00002072 t->oprofile_cpu_type = old.oprofile_cpu_type;
2073 t->oprofile_type = old.oprofile_type;
Michael Wolf79af6c42009-04-27 06:17:54 +00002074 }
Michael Ellerman2657dd42009-02-22 16:25:45 +00002075 }
Michael Ellerman666435b2009-02-22 16:25:43 +00002076
2077 *PTRRELOC(&cur_cpu_spec) = &the_cpu_spec;
2078
2079 /*
2080 * Set the base platform string once; assumes
2081 * we're called with real pvr first.
2082 */
2083 if (*PTRRELOC(&powerpc_base_platform) == NULL)
2084 *PTRRELOC(&powerpc_base_platform) = t->platform;
2085
2086#if defined(CONFIG_PPC64) || defined(CONFIG_BOOKE)
2087 /* ppc64 and booke expect identify_cpu to also call setup_cpu for
2088 * that processor. I will consolidate that at a later time, for now,
2089 * just use #ifdef. We also don't need to PTRRELOC the function
2090 * pointer on ppc64 and booke as we are running at 0 in real mode
2091 * on ppc64 and reloc_offset is always 0 on booke.
2092 */
Benjamin Herrenschmidtaf9eef32011-01-20 20:36:03 +00002093 if (t->cpu_setup) {
2094 t->cpu_setup(offset, t);
Michael Ellerman666435b2009-02-22 16:25:43 +00002095 }
2096#endif /* CONFIG_PPC64 || CONFIG_BOOKE */
2097}
2098
Paul Mackerras87a72f92007-10-04 14:18:01 +10002099struct cpu_spec * __init identify_cpu(unsigned long offset, unsigned int pvr)
Benjamin Herrenschmidt42c4aaa2006-10-24 16:42:40 +10002100{
2101 struct cpu_spec *s = cpu_specs;
Benjamin Herrenschmidt42c4aaa2006-10-24 16:42:40 +10002102 int i;
2103
2104 s = PTRRELOC(s);
Benjamin Herrenschmidt42c4aaa2006-10-24 16:42:40 +10002105
Michael Ellerman666435b2009-02-22 16:25:43 +00002106 for (i = 0; i < ARRAY_SIZE(cpu_specs); i++,s++) {
Benjamin Herrenschmidt42c4aaa2006-10-24 16:42:40 +10002107 if ((pvr & s->pvr_mask) == s->pvr_value) {
Michael Ellerman666435b2009-02-22 16:25:43 +00002108 setup_cpu_spec(offset, s);
Benjamin Herrenschmidt42c4aaa2006-10-24 16:42:40 +10002109 return s;
2110 }
Michael Ellerman666435b2009-02-22 16:25:43 +00002111 }
2112
Benjamin Herrenschmidt42c4aaa2006-10-24 16:42:40 +10002113 BUG();
Michael Ellerman666435b2009-02-22 16:25:43 +00002114
Benjamin Herrenschmidt42c4aaa2006-10-24 16:42:40 +10002115 return NULL;
2116}