cputable.c 28.7 KB
Newer Older
L
Linus Torvalds 已提交
1 2 3
/*
 *  Copyright (C) 2001 Ben. Herrenschmidt (benh@kernel.crashing.org)
 *
S
Stephen Rothwell 已提交
4 5 6
 *  Modifications for ppc64:
 *      Copyright (C) 2003 Dave Engebretsen <engebret@us.ibm.com>
 *
L
Linus Torvalds 已提交
7 8 9 10 11 12 13 14 15 16 17
 *  This program is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU General Public License
 *  as published by the Free Software Foundation; either version
 *  2 of the License, or (at your option) any later version.
 */

#include <linux/config.h>
#include <linux/string.h>
#include <linux/sched.h>
#include <linux/threads.h>
#include <linux/init.h>
18 19 20
#include <linux/module.h>

#include <asm/oprofile_impl.h>
L
Linus Torvalds 已提交
21 22
#include <asm/cputable.h>

23
struct cpu_spec* cur_cpu_spec = NULL;
S
Stephen Rothwell 已提交
24
EXPORT_SYMBOL(cur_cpu_spec);
L
Linus Torvalds 已提交
25

S
Stephen Rothwell 已提交
26 27 28 29 30 31 32 33 34 35 36 37
/* NOTE:
 * Unlike ppc32, ppc64 will only call this once for the boot CPU, it's
 * the responsibility of the appropriate CPU save/restore functions to
 * eventually copy these settings over. Those save/restore aren't yet
 * part of the cputable though. That has to be fixed for both ppc32
 * and ppc64
 */
#ifdef CONFIG_PPC64
extern void __setup_cpu_power3(unsigned long offset, struct cpu_spec* spec);
extern void __setup_cpu_power4(unsigned long offset, struct cpu_spec* spec);
extern void __setup_cpu_be(unsigned long offset, struct cpu_spec* spec);
#else
38 39 40 41 42 43 44 45
extern void __setup_cpu_603(unsigned long offset, struct cpu_spec* spec);
extern void __setup_cpu_604(unsigned long offset, struct cpu_spec* spec);
extern void __setup_cpu_750(unsigned long offset, struct cpu_spec* spec);
extern void __setup_cpu_750cx(unsigned long offset, struct cpu_spec* spec);
extern void __setup_cpu_750fx(unsigned long offset, struct cpu_spec* spec);
extern void __setup_cpu_7400(unsigned long offset, struct cpu_spec* spec);
extern void __setup_cpu_7410(unsigned long offset, struct cpu_spec* spec);
extern void __setup_cpu_745x(unsigned long offset, struct cpu_spec* spec);
S
Stephen Rothwell 已提交
46
#endif /* CONFIG_PPC32 */
47
extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec);
L
Linus Torvalds 已提交
48 49 50 51

/* This table only contains "desktop" CPUs, it need to be filled with embedded
 * ones as well...
 */
S
Stephen Rothwell 已提交
52 53 54
#define COMMON_USER		(PPC_FEATURE_32 | PPC_FEATURE_HAS_FPU | \
				 PPC_FEATURE_HAS_MMU)
#define COMMON_USER_PPC64	(COMMON_USER | PPC_FEATURE_64)
55 56 57
#define COMMON_USER_POWER4	(COMMON_USER_PPC64 | PPC_FEATURE_POWER4)
#define COMMON_USER_POWER5	(COMMON_USER_PPC64 | PPC_FEATURE_POWER5)
#define COMMON_USER_POWER5_PLUS	(COMMON_USER_PPC64 | PPC_FEATURE_POWER5_PLUS)
S
Stephen Rothwell 已提交
58

L
Linus Torvalds 已提交
59 60 61 62 63

/* We only set the spe features if the kernel was compiled with
 * spe support
 */
#ifdef CONFIG_SPE
S
Stephen Rothwell 已提交
64
#define PPC_FEATURE_SPE_COMP	PPC_FEATURE_HAS_SPE
L
Linus Torvalds 已提交
65
#else
S
Stephen Rothwell 已提交
66
#define PPC_FEATURE_SPE_COMP	0
L
Linus Torvalds 已提交
67 68 69
#endif

struct cpu_spec	cpu_specs[] = {
S
Stephen Rothwell 已提交
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
#ifdef CONFIG_PPC64
	{	/* Power3 */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x00400000,
		.cpu_name		= "POWER3 (630)",
		.cpu_features		= CPU_FTRS_POWER3,
		.cpu_user_features	= COMMON_USER_PPC64,
		.icache_bsize		= 128,
		.dcache_bsize		= 128,
		.num_pmcs		= 8,
		.cpu_setup		= __setup_cpu_power3,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type	= "ppc64/power3",
		.oprofile_model		= &op_model_rs64,
#endif
	},
	{	/* Power3+ */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x00410000,
		.cpu_name		= "POWER3 (630+)",
		.cpu_features		= CPU_FTRS_POWER3,
		.cpu_user_features	= COMMON_USER_PPC64,
		.icache_bsize		= 128,
		.dcache_bsize		= 128,
		.num_pmcs		= 8,
		.cpu_setup		= __setup_cpu_power3,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type	= "ppc64/power3",
		.oprofile_model		= &op_model_rs64,
#endif
	},
	{	/* Northstar */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x00330000,
		.cpu_name		= "RS64-II (northstar)",
		.cpu_features		= CPU_FTRS_RS64,
		.cpu_user_features	= COMMON_USER_PPC64,
		.icache_bsize		= 128,
		.dcache_bsize		= 128,
		.num_pmcs		= 8,
		.cpu_setup		= __setup_cpu_power3,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type	= "ppc64/rs64",
		.oprofile_model		= &op_model_rs64,
#endif
	},
	{	/* Pulsar */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x00340000,
		.cpu_name		= "RS64-III (pulsar)",
		.cpu_features		= CPU_FTRS_RS64,
		.cpu_user_features	= COMMON_USER_PPC64,
		.icache_bsize		= 128,
		.dcache_bsize		= 128,
		.num_pmcs		= 8,
		.cpu_setup		= __setup_cpu_power3,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type	= "ppc64/rs64",
		.oprofile_model		= &op_model_rs64,
#endif
	},
	{	/* I-star */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x00360000,
		.cpu_name		= "RS64-III (icestar)",
		.cpu_features		= CPU_FTRS_RS64,
		.cpu_user_features	= COMMON_USER_PPC64,
		.icache_bsize		= 128,
		.dcache_bsize		= 128,
		.num_pmcs		= 8,
		.cpu_setup		= __setup_cpu_power3,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type	= "ppc64/rs64",
		.oprofile_model		= &op_model_rs64,
#endif
	},
	{	/* S-star */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x00370000,
		.cpu_name		= "RS64-IV (sstar)",
		.cpu_features		= CPU_FTRS_RS64,
		.cpu_user_features	= COMMON_USER_PPC64,
		.icache_bsize		= 128,
		.dcache_bsize		= 128,
		.num_pmcs		= 8,
		.cpu_setup		= __setup_cpu_power3,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type	= "ppc64/rs64",
		.oprofile_model		= &op_model_rs64,
#endif
	},
	{	/* Power4 */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x00350000,
		.cpu_name		= "POWER4 (gp)",
		.cpu_features		= CPU_FTRS_POWER4,
166
		.cpu_user_features	= COMMON_USER_POWER4,
S
Stephen Rothwell 已提交
167 168 169 170 171 172 173 174 175 176 177 178 179 180
		.icache_bsize		= 128,
		.dcache_bsize		= 128,
		.num_pmcs		= 8,
		.cpu_setup		= __setup_cpu_power4,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type	= "ppc64/power4",
		.oprofile_model		= &op_model_rs64,
#endif
	},
	{	/* Power4+ */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x00380000,
		.cpu_name		= "POWER4+ (gq)",
		.cpu_features		= CPU_FTRS_POWER4,
181
		.cpu_user_features	= COMMON_USER_POWER4,
S
Stephen Rothwell 已提交
182 183 184 185 186 187 188 189 190 191 192 193 194 195
		.icache_bsize		= 128,
		.dcache_bsize		= 128,
		.num_pmcs		= 8,
		.cpu_setup		= __setup_cpu_power4,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type	= "ppc64/power4",
		.oprofile_model		= &op_model_power4,
#endif
	},
	{	/* PPC970 */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x00390000,
		.cpu_name		= "PPC970",
		.cpu_features		= CPU_FTRS_PPC970,
196
		.cpu_user_features	= COMMON_USER_POWER4 |
S
Stephen Rothwell 已提交
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217
			PPC_FEATURE_HAS_ALTIVEC_COMP,
		.icache_bsize		= 128,
		.dcache_bsize		= 128,
		.num_pmcs		= 8,
		.cpu_setup		= __setup_cpu_ppc970,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type	= "ppc64/970",
		.oprofile_model		= &op_model_power4,
#endif
	},
#endif /* CONFIG_PPC64 */
#if defined(CONFIG_PPC64) || defined(CONFIG_POWER4)
	{	/* PPC970FX */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x003c0000,
		.cpu_name		= "PPC970FX",
#ifdef CONFIG_PPC32
		.cpu_features		= CPU_FTRS_970_32,
#else
		.cpu_features		= CPU_FTRS_PPC970,
#endif
218
		.cpu_user_features	= COMMON_USER_POWER4 |
S
Stephen Rothwell 已提交
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235
			PPC_FEATURE_HAS_ALTIVEC_COMP,
		.icache_bsize		= 128,
		.dcache_bsize		= 128,
		.num_pmcs		= 8,
		.cpu_setup		= __setup_cpu_ppc970,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type	= "ppc64/970",
		.oprofile_model		= &op_model_power4,
#endif
	},
#endif /* defined(CONFIG_PPC64) || defined(CONFIG_POWER4) */
#ifdef CONFIG_PPC64
	{	/* PPC970MP */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x00440000,
		.cpu_name		= "PPC970MP",
		.cpu_features		= CPU_FTRS_PPC970,
236
		.cpu_user_features	= COMMON_USER_POWER4 |
S
Stephen Rothwell 已提交
237 238 239 240 241 242 243 244 245
			PPC_FEATURE_HAS_ALTIVEC_COMP,
		.icache_bsize		= 128,
		.dcache_bsize		= 128,
		.cpu_setup		= __setup_cpu_ppc970,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type	= "ppc64/970",
		.oprofile_model		= &op_model_power4,
#endif
	},
246
	{	/* Power5 GR */
S
Stephen Rothwell 已提交
247 248 249 250
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x003a0000,
		.cpu_name		= "POWER5 (gr)",
		.cpu_features		= CPU_FTRS_POWER5,
251
		.cpu_user_features	= COMMON_USER_POWER5,
S
Stephen Rothwell 已提交
252 253 254 255 256 257 258 259 260
		.icache_bsize		= 128,
		.dcache_bsize		= 128,
		.num_pmcs		= 6,
		.cpu_setup		= __setup_cpu_power4,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type	= "ppc64/power5",
		.oprofile_model		= &op_model_power4,
#endif
	},
261
	{	/* Power5 GS */
S
Stephen Rothwell 已提交
262 263 264 265
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x003b0000,
		.cpu_name		= "POWER5 (gs)",
		.cpu_features		= CPU_FTRS_POWER5,
266
		.cpu_user_features	= COMMON_USER_POWER5_PLUS,
S
Stephen Rothwell 已提交
267 268 269 270 271 272 273 274 275 276 277 278 279 280 281
		.icache_bsize		= 128,
		.dcache_bsize		= 128,
		.num_pmcs		= 6,
		.cpu_setup		= __setup_cpu_power4,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type	= "ppc64/power5",
		.oprofile_model		= &op_model_power4,
#endif
	},
	{	/* BE DD1.x */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x00700000,
		.cpu_name		= "Cell Broadband Engine",
		.cpu_features		= CPU_FTRS_CELL,
		.cpu_user_features	= COMMON_USER_PPC64 |
282
			PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP,
S
Stephen Rothwell 已提交
283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299
		.icache_bsize		= 128,
		.dcache_bsize		= 128,
		.cpu_setup		= __setup_cpu_be,
	},
	{	/* default match */
		.pvr_mask		= 0x00000000,
		.pvr_value		= 0x00000000,
		.cpu_name		= "POWER4 (compatible)",
		.cpu_features		= CPU_FTRS_COMPATIBLE,
		.cpu_user_features	= COMMON_USER_PPC64,
		.icache_bsize		= 128,
		.dcache_bsize		= 128,
		.num_pmcs		= 6,
		.cpu_setup		= __setup_cpu_power4,
	}
#endif	/* CONFIG_PPC64 */
#ifdef CONFIG_PPC32
L
Linus Torvalds 已提交
300
#if CLASSIC_PPC
S
Stephen Rothwell 已提交
301
	{	/* 601 */
L
Linus Torvalds 已提交
302 303 304
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x00010000,
		.cpu_name		= "601",
305
		.cpu_features		= CPU_FTRS_PPC601,
S
Stephen Rothwell 已提交
306
		.cpu_user_features	= COMMON_USER | PPC_FEATURE_601_INSTR |
307
			PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB,
L
Linus Torvalds 已提交
308 309 310 311 312 313 314
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	},
	{	/* 603 */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x00030000,
		.cpu_name		= "603",
315
		.cpu_features		= CPU_FTRS_603,
S
Stephen Rothwell 已提交
316
		.cpu_user_features	= COMMON_USER,
L
Linus Torvalds 已提交
317 318 319 320 321 322 323 324
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.cpu_setup		= __setup_cpu_603
	},
	{	/* 603e */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x00060000,
		.cpu_name		= "603e",
325
		.cpu_features		= CPU_FTRS_603,
S
Stephen Rothwell 已提交
326
		.cpu_user_features	= COMMON_USER,
L
Linus Torvalds 已提交
327 328 329 330 331 332 333 334
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.cpu_setup		= __setup_cpu_603
	},
	{	/* 603ev */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x00070000,
		.cpu_name		= "603ev",
335
		.cpu_features		= CPU_FTRS_603,
S
Stephen Rothwell 已提交
336
		.cpu_user_features	= COMMON_USER,
L
Linus Torvalds 已提交
337 338 339 340 341 342 343 344
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.cpu_setup		= __setup_cpu_603
	},
	{	/* 604 */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x00040000,
		.cpu_name		= "604",
345
		.cpu_features		= CPU_FTRS_604,
S
Stephen Rothwell 已提交
346
		.cpu_user_features	= COMMON_USER,
L
Linus Torvalds 已提交
347 348 349 350 351 352 353 354 355
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 2,
		.cpu_setup		= __setup_cpu_604
	},
	{	/* 604e */
		.pvr_mask		= 0xfffff000,
		.pvr_value		= 0x00090000,
		.cpu_name		= "604e",
356
		.cpu_features		= CPU_FTRS_604,
S
Stephen Rothwell 已提交
357
		.cpu_user_features	= COMMON_USER,
L
Linus Torvalds 已提交
358 359 360 361 362 363 364 365 366
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 4,
		.cpu_setup		= __setup_cpu_604
	},
	{	/* 604r */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x00090000,
		.cpu_name		= "604r",
367
		.cpu_features		= CPU_FTRS_604,
S
Stephen Rothwell 已提交
368
		.cpu_user_features	= COMMON_USER,
L
Linus Torvalds 已提交
369 370 371 372 373 374 375 376 377
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 4,
		.cpu_setup		= __setup_cpu_604
	},
	{	/* 604ev */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x000a0000,
		.cpu_name		= "604ev",
378
		.cpu_features		= CPU_FTRS_604,
S
Stephen Rothwell 已提交
379
		.cpu_user_features	= COMMON_USER,
L
Linus Torvalds 已提交
380 381 382 383 384 385 386 387 388
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 4,
		.cpu_setup		= __setup_cpu_604
	},
	{	/* 740/750 (0x4202, don't support TAU ?) */
		.pvr_mask		= 0xffffffff,
		.pvr_value		= 0x00084202,
		.cpu_name		= "740/750",
389
		.cpu_features		= CPU_FTRS_740_NOTAU,
S
Stephen Rothwell 已提交
390
		.cpu_user_features	= COMMON_USER,
L
Linus Torvalds 已提交
391 392 393 394 395 396 397 398 399
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 4,
		.cpu_setup		= __setup_cpu_750
	},
	{	/* 750CX (80100 and 8010x?) */
		.pvr_mask		= 0xfffffff0,
		.pvr_value		= 0x00080100,
		.cpu_name		= "750CX",
400
		.cpu_features		= CPU_FTRS_750,
S
Stephen Rothwell 已提交
401
		.cpu_user_features	= COMMON_USER,
L
Linus Torvalds 已提交
402 403 404 405 406 407 408 409 410
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 4,
		.cpu_setup		= __setup_cpu_750cx
	},
	{	/* 750CX (82201 and 82202) */
		.pvr_mask		= 0xfffffff0,
		.pvr_value		= 0x00082200,
		.cpu_name		= "750CX",
411
		.cpu_features		= CPU_FTRS_750,
S
Stephen Rothwell 已提交
412
		.cpu_user_features	= COMMON_USER,
L
Linus Torvalds 已提交
413 414 415 416 417 418 419 420 421
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 4,
		.cpu_setup		= __setup_cpu_750cx
	},
	{	/* 750CXe (82214) */
		.pvr_mask		= 0xfffffff0,
		.pvr_value		= 0x00082210,
		.cpu_name		= "750CXe",
422
		.cpu_features		= CPU_FTRS_750,
S
Stephen Rothwell 已提交
423
		.cpu_user_features	= COMMON_USER,
L
Linus Torvalds 已提交
424 425 426 427 428
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 4,
		.cpu_setup		= __setup_cpu_750cx
	},
429 430 431 432
	{	/* 750CXe "Gekko" (83214) */
		.pvr_mask		= 0xffffffff,
		.pvr_value		= 0x00083214,
		.cpu_name		= "750CXe",
433
		.cpu_features		= CPU_FTRS_750,
S
Stephen Rothwell 已提交
434
		.cpu_user_features	= COMMON_USER,
435 436 437 438 439
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 4,
		.cpu_setup		= __setup_cpu_750cx
	},
440 441 442 443
	{	/* 745/755 */
		.pvr_mask		= 0xfffff000,
		.pvr_value		= 0x00083000,
		.cpu_name		= "745/755",
444
		.cpu_features		= CPU_FTRS_750,
S
Stephen Rothwell 已提交
445
		.cpu_user_features	= COMMON_USER,
446 447 448 449 450
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 4,
		.cpu_setup		= __setup_cpu_750
	},
L
Linus Torvalds 已提交
451 452 453 454
	{	/* 750FX rev 1.x */
		.pvr_mask		= 0xffffff00,
		.pvr_value		= 0x70000100,
		.cpu_name		= "750FX",
455
		.cpu_features		= CPU_FTRS_750FX1,
S
Stephen Rothwell 已提交
456
		.cpu_user_features	= COMMON_USER,
L
Linus Torvalds 已提交
457 458 459 460 461 462 463 464 465
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 4,
		.cpu_setup		= __setup_cpu_750
	},
	{	/* 750FX rev 2.0 must disable HID0[DPM] */
		.pvr_mask		= 0xffffffff,
		.pvr_value		= 0x70000200,
		.cpu_name		= "750FX",
466
		.cpu_features		= CPU_FTRS_750FX2,
S
Stephen Rothwell 已提交
467
		.cpu_user_features	= COMMON_USER,
L
Linus Torvalds 已提交
468 469 470 471 472 473 474 475 476
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 4,
		.cpu_setup		= __setup_cpu_750
	},
	{	/* 750FX (All revs except 2.0) */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x70000000,
		.cpu_name		= "750FX",
477
		.cpu_features		= CPU_FTRS_750FX,
S
Stephen Rothwell 已提交
478
		.cpu_user_features	= COMMON_USER,
L
Linus Torvalds 已提交
479 480 481 482 483 484 485 486 487
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 4,
		.cpu_setup		= __setup_cpu_750fx
	},
	{	/* 750GX */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x70020000,
		.cpu_name		= "750GX",
488
		.cpu_features		= CPU_FTRS_750GX,
S
Stephen Rothwell 已提交
489
		.cpu_user_features	= COMMON_USER,
L
Linus Torvalds 已提交
490 491 492 493 494 495 496 497 498
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 4,
		.cpu_setup		= __setup_cpu_750fx
	},
	{	/* 740/750 (L2CR bit need fixup for 740) */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x00080000,
		.cpu_name		= "740/750",
499
		.cpu_features		= CPU_FTRS_740,
S
Stephen Rothwell 已提交
500
		.cpu_user_features	= COMMON_USER,
L
Linus Torvalds 已提交
501 502 503 504 505 506 507 508 509
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 4,
		.cpu_setup		= __setup_cpu_750
	},
	{	/* 7400 rev 1.1 ? (no TAU) */
		.pvr_mask		= 0xffffffff,
		.pvr_value		= 0x000c1101,
		.cpu_name		= "7400 (1.1)",
510
		.cpu_features		= CPU_FTRS_7400_NOTAU,
S
Stephen Rothwell 已提交
511
		.cpu_user_features	= COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
L
Linus Torvalds 已提交
512 513 514 515 516 517 518 519 520
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 4,
		.cpu_setup		= __setup_cpu_7400
	},
	{	/* 7400 */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x000c0000,
		.cpu_name		= "7400",
521
		.cpu_features		= CPU_FTRS_7400,
S
Stephen Rothwell 已提交
522
		.cpu_user_features	= COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
L
Linus Torvalds 已提交
523 524 525 526 527 528 529 530 531
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 4,
		.cpu_setup		= __setup_cpu_7400
	},
	{	/* 7410 */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x800c0000,
		.cpu_name		= "7410",
532
		.cpu_features		= CPU_FTRS_7400,
S
Stephen Rothwell 已提交
533
		.cpu_user_features	= COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
L
Linus Torvalds 已提交
534 535 536 537 538 539 540 541 542
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 4,
		.cpu_setup		= __setup_cpu_7410
	},
	{	/* 7450 2.0 - no doze/nap */
		.pvr_mask		= 0xffffffff,
		.pvr_value		= 0x80000200,
		.cpu_name		= "7450",
543
		.cpu_features		= CPU_FTRS_7450_20,
S
Stephen Rothwell 已提交
544
		.cpu_user_features	= COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
L
Linus Torvalds 已提交
545 546 547
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 6,
548 549 550 551 552
		.cpu_setup		= __setup_cpu_745x,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type      = "ppc/7450",
		.oprofile_model         = &op_model_7450,
#endif
L
Linus Torvalds 已提交
553 554 555 556 557
	},
	{	/* 7450 2.1 */
		.pvr_mask		= 0xffffffff,
		.pvr_value		= 0x80000201,
		.cpu_name		= "7450",
558
		.cpu_features		= CPU_FTRS_7450_21,
S
Stephen Rothwell 已提交
559
		.cpu_user_features	= COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
L
Linus Torvalds 已提交
560 561 562
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 6,
563 564 565 566 567
		.cpu_setup		= __setup_cpu_745x,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type      = "ppc/7450",
		.oprofile_model         = &op_model_7450,
#endif
L
Linus Torvalds 已提交
568 569 570 571 572
	},
	{	/* 7450 2.3 and newer */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x80000000,
		.cpu_name		= "7450",
573
		.cpu_features		= CPU_FTRS_7450_23,
S
Stephen Rothwell 已提交
574
		.cpu_user_features	= COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
L
Linus Torvalds 已提交
575 576 577
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 6,
578 579 580 581 582
		.cpu_setup		= __setup_cpu_745x,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type      = "ppc/7450",
		.oprofile_model         = &op_model_7450,
#endif
L
Linus Torvalds 已提交
583 584 585 586 587
	},
	{	/* 7455 rev 1.x */
		.pvr_mask		= 0xffffff00,
		.pvr_value		= 0x80010100,
		.cpu_name		= "7455",
588
		.cpu_features		= CPU_FTRS_7455_1,
S
Stephen Rothwell 已提交
589
		.cpu_user_features	= COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
L
Linus Torvalds 已提交
590 591 592
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 6,
593 594 595 596 597
		.cpu_setup		= __setup_cpu_745x,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type      = "ppc/7450",
		.oprofile_model         = &op_model_7450,
#endif
L
Linus Torvalds 已提交
598 599 600 601 602
	},
	{	/* 7455 rev 2.0 */
		.pvr_mask		= 0xffffffff,
		.pvr_value		= 0x80010200,
		.cpu_name		= "7455",
603
		.cpu_features		= CPU_FTRS_7455_20,
S
Stephen Rothwell 已提交
604
		.cpu_user_features	= COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
L
Linus Torvalds 已提交
605 606 607
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 6,
608 609 610 611 612
		.cpu_setup		= __setup_cpu_745x,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type      = "ppc/7450",
		.oprofile_model         = &op_model_7450,
#endif
L
Linus Torvalds 已提交
613 614 615 616 617
	},
	{	/* 7455 others */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x80010000,
		.cpu_name		= "7455",
618
		.cpu_features		= CPU_FTRS_7455,
S
Stephen Rothwell 已提交
619
		.cpu_user_features	= COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
L
Linus Torvalds 已提交
620 621 622
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 6,
623 624 625 626 627
		.cpu_setup		= __setup_cpu_745x,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type      = "ppc/7450",
		.oprofile_model         = &op_model_7450,
#endif
L
Linus Torvalds 已提交
628 629 630 631 632
	},
	{	/* 7447/7457 Rev 1.0 */
		.pvr_mask		= 0xffffffff,
		.pvr_value		= 0x80020100,
		.cpu_name		= "7447/7457",
633
		.cpu_features		= CPU_FTRS_7447_10,
S
Stephen Rothwell 已提交
634
		.cpu_user_features	= COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
L
Linus Torvalds 已提交
635 636 637
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 6,
638 639 640 641 642
		.cpu_setup		= __setup_cpu_745x,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type      = "ppc/7450",
		.oprofile_model         = &op_model_7450,
#endif
L
Linus Torvalds 已提交
643 644 645 646 647
	},
	{	/* 7447/7457 Rev 1.1 */
		.pvr_mask		= 0xffffffff,
		.pvr_value		= 0x80020101,
		.cpu_name		= "7447/7457",
648
		.cpu_features		= CPU_FTRS_7447_10,
S
Stephen Rothwell 已提交
649
		.cpu_user_features	= COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
L
Linus Torvalds 已提交
650 651 652
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 6,
653 654 655 656 657
		.cpu_setup		= __setup_cpu_745x,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type      = "ppc/7450",
		.oprofile_model         = &op_model_7450,
#endif
L
Linus Torvalds 已提交
658 659 660 661 662
	},
	{	/* 7447/7457 Rev 1.2 and later */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x80020000,
		.cpu_name		= "7447/7457",
663
		.cpu_features		= CPU_FTRS_7447,
S
Stephen Rothwell 已提交
664
		.cpu_user_features	= COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
L
Linus Torvalds 已提交
665 666 667
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 6,
668 669 670 671 672
		.cpu_setup		= __setup_cpu_745x,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type      = "ppc/7450",
		.oprofile_model         = &op_model_7450,
#endif
L
Linus Torvalds 已提交
673 674 675 676 677
	},
	{	/* 7447A */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x80030000,
		.cpu_name		= "7447A",
678
		.cpu_features		= CPU_FTRS_7447A,
S
Stephen Rothwell 已提交
679
		.cpu_user_features	= COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
680 681 682
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 6,
683 684 685 686 687
		.cpu_setup		= __setup_cpu_745x,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type      = "ppc/7450",
		.oprofile_model         = &op_model_7450,
#endif
688 689 690 691 692
	},
	{	/* 7448 */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x80040000,
		.cpu_name		= "7448",
693
		.cpu_features		= CPU_FTRS_7447A,
S
Stephen Rothwell 已提交
694
		.cpu_user_features	= COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP,
L
Linus Torvalds 已提交
695 696 697
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 6,
698 699 700 701 702
		.cpu_setup		= __setup_cpu_745x,
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type      = "ppc/7450",
		.oprofile_model         = &op_model_7450,
#endif
L
Linus Torvalds 已提交
703 704 705 706 707
	},
	{	/* 82xx (8240, 8245, 8260 are all 603e cores) */
		.pvr_mask		= 0x7fff0000,
		.pvr_value		= 0x00810000,
		.cpu_name		= "82xx",
708
		.cpu_features		= CPU_FTRS_82XX,
S
Stephen Rothwell 已提交
709
		.cpu_user_features	= COMMON_USER,
L
Linus Torvalds 已提交
710 711 712 713 714 715 716 717
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.cpu_setup		= __setup_cpu_603
	},
	{	/* All G2_LE (603e core, plus some) have the same pvr */
		.pvr_mask		= 0x7fff0000,
		.pvr_value		= 0x00820000,
		.cpu_name		= "G2_LE",
718
		.cpu_features		= CPU_FTRS_G2_LE,
S
Stephen Rothwell 已提交
719
		.cpu_user_features	= COMMON_USER,
L
Linus Torvalds 已提交
720 721 722 723 724 725 726 727
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.cpu_setup		= __setup_cpu_603
	},
	{	/* e300 (a 603e core, plus some) on 83xx */
		.pvr_mask		= 0x7fff0000,
		.pvr_value		= 0x00830000,
		.cpu_name		= "e300",
728
		.cpu_features		= CPU_FTRS_E300,
S
Stephen Rothwell 已提交
729
		.cpu_user_features	= COMMON_USER,
L
Linus Torvalds 已提交
730 731 732 733 734 735 736 737
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.cpu_setup		= __setup_cpu_603
	},
	{	/* default match, we assume split I/D cache & TB (non-601)... */
		.pvr_mask		= 0x00000000,
		.pvr_value		= 0x00000000,
		.cpu_name		= "(generic PPC)",
738
		.cpu_features		= CPU_FTRS_CLASSIC32,
S
Stephen Rothwell 已提交
739
		.cpu_user_features	= COMMON_USER,
L
Linus Torvalds 已提交
740 741 742 743 744 745 746 747 748 749 750
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	},
#endif /* CLASSIC_PPC */
#ifdef CONFIG_8xx
	{	/* 8xx */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x00500000,
		.cpu_name		= "8xx",
		/* CPU_FTR_MAYBE_CAN_DOZE is possible,
		 * if the 8xx code is there.... */
751
		.cpu_features		= CPU_FTRS_8XX,
L
Linus Torvalds 已提交
752 753 754 755 756 757 758 759 760 761
		.cpu_user_features	= PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
		.icache_bsize		= 16,
		.dcache_bsize		= 16,
	},
#endif /* CONFIG_8xx */
#ifdef CONFIG_40x
	{	/* 403GC */
		.pvr_mask		= 0xffffff00,
		.pvr_value		= 0x00200200,
		.cpu_name		= "403GC",
762
		.cpu_features		= CPU_FTRS_40X,
L
Linus Torvalds 已提交
763 764 765 766 767 768 769 770
		.cpu_user_features	= PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
		.icache_bsize		= 16,
		.dcache_bsize		= 16,
	},
	{	/* 403GCX */
		.pvr_mask		= 0xffffff00,
		.pvr_value		= 0x00201400,
		.cpu_name		= "403GCX",
771
		.cpu_features		= CPU_FTRS_40X,
772 773
		.cpu_user_features	= PPC_FEATURE_32 |
		 	PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB,
L
Linus Torvalds 已提交
774 775 776 777 778 779 780
		.icache_bsize		= 16,
		.dcache_bsize		= 16,
	},
	{	/* 403G ?? */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x00200000,
		.cpu_name		= "403G ??",
781
		.cpu_features		= CPU_FTRS_40X,
L
Linus Torvalds 已提交
782 783 784 785 786 787 788 789
		.cpu_user_features	= PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
		.icache_bsize		= 16,
		.dcache_bsize		= 16,
	},
	{	/* 405GP */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x40110000,
		.cpu_name		= "405GP",
790
		.cpu_features		= CPU_FTRS_40X,
L
Linus Torvalds 已提交
791 792 793 794 795 796 797 798 799
		.cpu_user_features	= PPC_FEATURE_32 |
			PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	},
	{	/* STB 03xxx */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x40130000,
		.cpu_name		= "STB03xxx",
800
		.cpu_features		= CPU_FTRS_40X,
L
Linus Torvalds 已提交
801 802 803 804 805 806 807 808 809
		.cpu_user_features	= PPC_FEATURE_32 |
			PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	},
	{	/* STB 04xxx */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x41810000,
		.cpu_name		= "STB04xxx",
810
		.cpu_features		= CPU_FTRS_40X,
L
Linus Torvalds 已提交
811 812 813 814 815 816 817 818 819
		.cpu_user_features	= PPC_FEATURE_32 |
			PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	},
	{	/* NP405L */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x41610000,
		.cpu_name		= "NP405L",
820
		.cpu_features		= CPU_FTRS_40X,
L
Linus Torvalds 已提交
821 822 823 824 825 826 827 828 829
		.cpu_user_features	= PPC_FEATURE_32 |
			PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	},
	{	/* NP4GS3 */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x40B10000,
		.cpu_name		= "NP4GS3",
830
		.cpu_features		= CPU_FTRS_40X,
L
Linus Torvalds 已提交
831 832 833 834 835 836 837 838 839
		.cpu_user_features	= PPC_FEATURE_32 |
			PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	},
	{   /* NP405H */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x41410000,
		.cpu_name		= "NP405H",
840
		.cpu_features		= CPU_FTRS_40X,
L
Linus Torvalds 已提交
841 842 843 844 845 846 847 848 849
		.cpu_user_features	= PPC_FEATURE_32 |
			PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	},
	{	/* 405GPr */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x50910000,
		.cpu_name		= "405GPr",
850
		.cpu_features		= CPU_FTRS_40X,
L
Linus Torvalds 已提交
851 852 853 854 855 856 857 858 859
		.cpu_user_features	= PPC_FEATURE_32 |
			PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	},
	{   /* STBx25xx */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x51510000,
		.cpu_name		= "STBx25xx",
860
		.cpu_features		= CPU_FTRS_40X,
L
Linus Torvalds 已提交
861 862 863 864 865 866 867 868 869
		.cpu_user_features	= PPC_FEATURE_32 |
			PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	},
	{	/* 405LP */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x41F10000,
		.cpu_name		= "405LP",
870
		.cpu_features		= CPU_FTRS_40X,
L
Linus Torvalds 已提交
871 872 873 874 875 876 877 878
		.cpu_user_features	= PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	},
	{	/* Xilinx Virtex-II Pro  */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x20010000,
		.cpu_name		= "Virtex-II Pro",
879
		.cpu_features		= CPU_FTRS_40X,
L
Linus Torvalds 已提交
880 881 882 883 884
		.cpu_user_features	= PPC_FEATURE_32 |
			PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	},
885 886 887 888
	{	/* 405EP */
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x51210000,
		.cpu_name		= "405EP",
889
		.cpu_features		= CPU_FTRS_40X,
890 891 892 893 894
		.cpu_user_features	= PPC_FEATURE_32 |
			PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC,
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	},
L
Linus Torvalds 已提交
895 896 897

#endif /* CONFIG_40x */
#ifdef CONFIG_44x
M
Matt Porter 已提交
898 899 900 901
	{
		.pvr_mask		= 0xf0000fff,
		.pvr_value		= 0x40000850,
		.cpu_name		= "440EP Rev. A",
902
		.cpu_features		= CPU_FTRS_44X,
S
Stephen Rothwell 已提交
903
		.cpu_user_features	= COMMON_USER, /* 440EP has an FPU */
M
Matt Porter 已提交
904 905 906 907 908 909 910
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	},
	{
		.pvr_mask		= 0xf0000fff,
		.pvr_value		= 0x400008d3,
		.cpu_name		= "440EP Rev. B",
911
		.cpu_features		= CPU_FTRS_44X,
S
Stephen Rothwell 已提交
912
		.cpu_user_features	= COMMON_USER, /* 440EP has an FPU */
M
Matt Porter 已提交
913 914 915
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	},
S
Stephen Rothwell 已提交
916
	{	/* 440GP Rev. B */
L
Linus Torvalds 已提交
917 918 919
		.pvr_mask		= 0xf0000fff,
		.pvr_value		= 0x40000440,
		.cpu_name		= "440GP Rev. B",
920
		.cpu_features		= CPU_FTRS_44X,
L
Linus Torvalds 已提交
921 922 923 924
		.cpu_user_features	= PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	},
S
Stephen Rothwell 已提交
925
	{	/* 440GP Rev. C */
L
Linus Torvalds 已提交
926 927 928
		.pvr_mask		= 0xf0000fff,
		.pvr_value		= 0x40000481,
		.cpu_name		= "440GP Rev. C",
929
		.cpu_features		= CPU_FTRS_44X,
L
Linus Torvalds 已提交
930 931 932 933 934 935 936 937
		.cpu_user_features	= PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	},
	{ /* 440GX Rev. A */
		.pvr_mask		= 0xf0000fff,
		.pvr_value		= 0x50000850,
		.cpu_name		= "440GX Rev. A",
938
		.cpu_features		= CPU_FTRS_44X,
L
Linus Torvalds 已提交
939 940 941 942 943 944 945 946
		.cpu_user_features	= PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	},
	{ /* 440GX Rev. B */
		.pvr_mask		= 0xf0000fff,
		.pvr_value		= 0x50000851,
		.cpu_name		= "440GX Rev. B",
947
		.cpu_features		= CPU_FTRS_44X,
L
Linus Torvalds 已提交
948 949 950 951 952 953 954 955
		.cpu_user_features	= PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	},
	{ /* 440GX Rev. C */
		.pvr_mask		= 0xf0000fff,
		.pvr_value		= 0x50000892,
		.cpu_name		= "440GX Rev. C",
956
		.cpu_features		= CPU_FTRS_44X,
L
Linus Torvalds 已提交
957 958 959 960
		.cpu_user_features	= PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	},
961 962 963 964
	{ /* 440GX Rev. F */
		.pvr_mask		= 0xf0000fff,
		.pvr_value		= 0x50000894,
		.cpu_name		= "440GX Rev. F",
965
		.cpu_features		= CPU_FTRS_44X,
966 967 968 969
		.cpu_user_features	= PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	},
970 971 972 973
	{ /* 440SP Rev. A */
		.pvr_mask		= 0xff000fff,
		.pvr_value		= 0x53000891,
		.cpu_name		= "440SP Rev. A",
974
		.cpu_features		= CPU_FTRS_44X,
975 976 977 978
		.cpu_user_features	= PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	},
R
Roland Dreier 已提交
979 980 981 982 983 984 985 986 987 988
	{ /* 440SPe Rev. A */
		.pvr_mask		= 0xff000fff,
		.pvr_value		= 0x53000890,
		.cpu_name		= "440SPe Rev. A",
		.cpu_features		= CPU_FTR_SPLIT_ID_CACHE |
			CPU_FTR_USE_TB,
		.cpu_user_features	= PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU,
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	},
L
Linus Torvalds 已提交
989
#endif /* CONFIG_44x */
990
#ifdef CONFIG_FSL_BOOKE
S
Stephen Rothwell 已提交
991
	{	/* e200z5 */
992 993 994 995
		.pvr_mask		= 0xfff00000,
		.pvr_value		= 0x81000000,
		.cpu_name		= "e200z5",
		/* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
996
		.cpu_features		= CPU_FTRS_E200,
997 998 999 1000 1001
		.cpu_user_features	= PPC_FEATURE_32 |
			PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_EFP_SINGLE |
			PPC_FEATURE_UNIFIED_CACHE,
		.dcache_bsize		= 32,
	},
S
Stephen Rothwell 已提交
1002
	{	/* e200z6 */
1003 1004 1005 1006
		.pvr_mask		= 0xfff00000,
		.pvr_value		= 0x81100000,
		.cpu_name		= "e200z6",
		/* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1007
		.cpu_features		= CPU_FTRS_E200,
1008 1009 1010 1011 1012 1013
		.cpu_user_features	= PPC_FEATURE_32 |
			PPC_FEATURE_HAS_MMU | PPC_FEATURE_SPE_COMP |
			PPC_FEATURE_HAS_EFP_SINGLE |
			PPC_FEATURE_UNIFIED_CACHE,
		.dcache_bsize		= 32,
	},
S
Stephen Rothwell 已提交
1014
	{	/* e500 */
L
Linus Torvalds 已提交
1015 1016 1017 1018
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x80200000,
		.cpu_name		= "e500",
		/* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1019
		.cpu_features		= CPU_FTRS_E500,
L
Linus Torvalds 已提交
1020 1021 1022 1023 1024 1025
		.cpu_user_features	= PPC_FEATURE_32 |
			PPC_FEATURE_HAS_MMU | PPC_FEATURE_SPE_COMP |
			PPC_FEATURE_HAS_EFP_SINGLE,
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 4,
1026 1027 1028 1029
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type	= "ppc/e500",
		.oprofile_model		= &op_model_fsl_booke,
#endif
L
Linus Torvalds 已提交
1030
	},
S
Stephen Rothwell 已提交
1031
	{	/* e500v2 */
1032 1033 1034 1035
		.pvr_mask		= 0xffff0000,
		.pvr_value		= 0x80210000,
		.cpu_name		= "e500v2",
		/* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */
1036
		.cpu_features		= CPU_FTRS_E500_2,
1037 1038 1039 1040 1041 1042
		.cpu_user_features	= PPC_FEATURE_32 |
			PPC_FEATURE_HAS_MMU | PPC_FEATURE_SPE_COMP |
			PPC_FEATURE_HAS_EFP_SINGLE | PPC_FEATURE_HAS_EFP_DOUBLE,
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.num_pmcs		= 4,
1043 1044 1045 1046
#ifdef CONFIG_OPROFILE
		.oprofile_cpu_type	= "ppc/e500",
		.oprofile_model		= &op_model_fsl_booke,
#endif
1047
	},
L
Linus Torvalds 已提交
1048 1049 1050 1051 1052 1053
#endif
#if !CLASSIC_PPC
	{	/* default match */
		.pvr_mask		= 0x00000000,
		.pvr_value		= 0x00000000,
		.cpu_name		= "(generic PPC)",
1054
		.cpu_features		= CPU_FTRS_GENERIC_32,
L
Linus Torvalds 已提交
1055 1056 1057 1058 1059
		.cpu_user_features	= PPC_FEATURE_32,
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
	}
#endif /* !CLASSIC_PPC */
S
Stephen Rothwell 已提交
1060
#endif /* CONFIG_PPC32 */
L
Linus Torvalds 已提交
1061
};