| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | *  Copyright (C) 2001 Ben. Herrenschmidt (benh@kernel.crashing.org) | 
|  | 3 | * | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 4 | *  Modifications for ppc64: | 
|  | 5 | *      Copyright (C) 2003 Dave Engebretsen <engebret@us.ibm.com> | 
|  | 6 | * | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | *  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 Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | #include <linux/string.h> | 
|  | 14 | #include <linux/sched.h> | 
|  | 15 | #include <linux/threads.h> | 
|  | 16 | #include <linux/init.h> | 
| Kumar Gala | 400d221 | 2005-09-27 15:13:12 -0500 | [diff] [blame] | 17 | #include <linux/module.h> | 
|  | 18 |  | 
|  | 19 | #include <asm/oprofile_impl.h> | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | #include <asm/cputable.h> | 
| Benjamin Herrenschmidt | 42c4aaa | 2006-10-24 16:42:40 +1000 | [diff] [blame] | 21 | #include <asm/prom.h>		/* for PTRRELOC on ARCH=ppc */ | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 |  | 
| Kumar Gala | 400d221 | 2005-09-27 15:13:12 -0500 | [diff] [blame] | 23 | struct cpu_spec* cur_cpu_spec = NULL; | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 24 | EXPORT_SYMBOL(cur_cpu_spec); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 |  | 
| Nathan Lynch | 9115d13 | 2008-07-16 09:58:51 +1000 | [diff] [blame] | 26 | /* The platform string corresponding to the real PVR */ | 
|  | 27 | const char *powerpc_base_platform; | 
|  | 28 |  | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 29 | /* NOTE: | 
|  | 30 | * Unlike ppc32, ppc64 will only call this once for the boot CPU, it's | 
|  | 31 | * the responsibility of the appropriate CPU save/restore functions to | 
|  | 32 | * eventually copy these settings over. Those save/restore aren't yet | 
|  | 33 | * part of the cputable though. That has to be fixed for both ppc32 | 
|  | 34 | * and ppc64 | 
|  | 35 | */ | 
| Geoff Levand | b26f100 | 2006-05-19 14:24:18 +1000 | [diff] [blame] | 36 | #ifdef CONFIG_PPC32 | 
| Valentine Barshak | 8112753 | 2007-09-22 00:46:57 +1000 | [diff] [blame] | 37 | extern void __setup_cpu_440ep(unsigned long offset, struct cpu_spec* spec); | 
|  | 38 | extern void __setup_cpu_440epx(unsigned long offset, struct cpu_spec* spec); | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 39 | extern void __setup_cpu_440gx(unsigned long offset, struct cpu_spec* spec); | 
| Valentine Barshak | 340ffd2 | 2007-09-22 00:50:09 +1000 | [diff] [blame] | 40 | extern void __setup_cpu_440grx(unsigned long offset, struct cpu_spec* spec); | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 41 | extern void __setup_cpu_440spe(unsigned long offset, struct cpu_spec* spec); | 
| Stefan Roese | 464076a | 2008-02-24 08:07:41 +1100 | [diff] [blame] | 42 | extern void __setup_cpu_460ex(unsigned long offset, struct cpu_spec* spec); | 
| Josh Boyer | 939e622 | 2008-06-11 07:52:40 -0400 | [diff] [blame] | 43 | extern void __setup_cpu_460gt(unsigned long offset, struct cpu_spec* spec); | 
| Kumar Gala | 400d221 | 2005-09-27 15:13:12 -0500 | [diff] [blame] | 44 | extern void __setup_cpu_603(unsigned long offset, struct cpu_spec* spec); | 
|  | 45 | extern void __setup_cpu_604(unsigned long offset, struct cpu_spec* spec); | 
|  | 46 | extern void __setup_cpu_750(unsigned long offset, struct cpu_spec* spec); | 
|  | 47 | extern void __setup_cpu_750cx(unsigned long offset, struct cpu_spec* spec); | 
|  | 48 | extern void __setup_cpu_750fx(unsigned long offset, struct cpu_spec* spec); | 
|  | 49 | extern void __setup_cpu_7400(unsigned long offset, struct cpu_spec* spec); | 
|  | 50 | extern void __setup_cpu_7410(unsigned long offset, struct cpu_spec* spec); | 
|  | 51 | extern void __setup_cpu_745x(unsigned long offset, struct cpu_spec* spec); | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 52 | #endif /* CONFIG_PPC32 */ | 
| Olof Johansson | f39b7a5 | 2006-08-11 00:07:08 -0500 | [diff] [blame] | 53 | #ifdef CONFIG_PPC64 | 
| Kumar Gala | 400d221 | 2005-09-27 15:13:12 -0500 | [diff] [blame] | 54 | extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec); | 
| Olof Johansson | 5b43d20 | 2006-10-04 23:41:41 -0500 | [diff] [blame] | 55 | extern void __setup_cpu_ppc970MP(unsigned long offset, struct cpu_spec* spec); | 
| Olof Johansson | 1199919 | 2007-02-04 16:36:51 -0600 | [diff] [blame] | 56 | extern void __setup_cpu_pa6t(unsigned long offset, struct cpu_spec* spec); | 
| Stephen Rothwell | 40d244d | 2007-02-12 22:10:48 +1100 | [diff] [blame] | 57 | extern void __restore_cpu_pa6t(void); | 
| Olof Johansson | f39b7a5 | 2006-08-11 00:07:08 -0500 | [diff] [blame] | 58 | extern void __restore_cpu_ppc970(void); | 
| Michael Neuling | e952e6c | 2008-06-18 10:47:26 +1000 | [diff] [blame] | 59 | extern void __setup_cpu_power7(unsigned long offset, struct cpu_spec* spec); | 
|  | 60 | extern void __restore_cpu_power7(void); | 
| Olof Johansson | f39b7a5 | 2006-08-11 00:07:08 -0500 | [diff] [blame] | 61 | #endif /* CONFIG_PPC64 */ | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 62 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 63 | /* This table only contains "desktop" CPUs, it need to be filled with embedded | 
|  | 64 | * ones as well... | 
|  | 65 | */ | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 66 | #define COMMON_USER		(PPC_FEATURE_32 | PPC_FEATURE_HAS_FPU | \ | 
|  | 67 | PPC_FEATURE_HAS_MMU) | 
|  | 68 | #define COMMON_USER_PPC64	(COMMON_USER | PPC_FEATURE_64) | 
| Paul Mackerras | a7ddc5e | 2005-11-10 14:29:18 +1100 | [diff] [blame] | 69 | #define COMMON_USER_POWER4	(COMMON_USER_PPC64 | PPC_FEATURE_POWER4) | 
| Benjamin Herrenschmidt | aa5cb02 | 2006-03-01 15:07:07 +1100 | [diff] [blame] | 70 | #define COMMON_USER_POWER5	(COMMON_USER_PPC64 | PPC_FEATURE_POWER5 |\ | 
|  | 71 | PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP) | 
|  | 72 | #define COMMON_USER_POWER5_PLUS	(COMMON_USER_PPC64 | PPC_FEATURE_POWER5_PLUS|\ | 
|  | 73 | PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP) | 
| Anton Blanchard | 03054d5 | 2006-04-29 09:51:06 +1000 | [diff] [blame] | 74 | #define COMMON_USER_POWER6	(COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_05 |\ | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 75 | PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \ | 
| Nathan Lynch | 0f47331 | 2008-07-10 01:06:57 +1000 | [diff] [blame] | 76 | PPC_FEATURE_TRUE_LE | \ | 
|  | 77 | PPC_FEATURE_PSERIES_PERFMON_COMPAT) | 
| Michael Neuling | e952e6c | 2008-06-18 10:47:26 +1000 | [diff] [blame] | 78 | #define COMMON_USER_POWER7	(COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_06 |\ | 
|  | 79 | PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \ | 
| Nathan Lynch | 0f47331 | 2008-07-10 01:06:57 +1000 | [diff] [blame] | 80 | PPC_FEATURE_TRUE_LE | \ | 
|  | 81 | PPC_FEATURE_PSERIES_PERFMON_COMPAT) | 
| Olof Johansson | b3ebd1d | 2006-09-06 14:35:57 -0500 | [diff] [blame] | 82 | #define COMMON_USER_PA6T	(COMMON_USER_PPC64 | PPC_FEATURE_PA6T |\ | 
|  | 83 | PPC_FEATURE_TRUE_LE | \ | 
|  | 84 | PPC_FEATURE_HAS_ALTIVEC_COMP) | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 85 | #define COMMON_USER_BOOKE	(PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \ | 
|  | 86 | PPC_FEATURE_BOOKE) | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 87 |  | 
| Paul Mackerras | 87a72f9 | 2007-10-04 14:18:01 +1000 | [diff] [blame] | 88 | static struct cpu_spec __initdata cpu_specs[] = { | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 89 | #ifdef CONFIG_PPC64 | 
|  | 90 | {	/* Power3 */ | 
|  | 91 | .pvr_mask		= 0xffff0000, | 
|  | 92 | .pvr_value		= 0x00400000, | 
|  | 93 | .cpu_name		= "POWER3 (630)", | 
|  | 94 | .cpu_features		= CPU_FTRS_POWER3, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 95 | .cpu_user_features	= COMMON_USER_PPC64|PPC_FEATURE_PPC_LE, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 96 | .icache_bsize		= 128, | 
|  | 97 | .dcache_bsize		= 128, | 
|  | 98 | .num_pmcs		= 8, | 
| Olof Johansson | 1bd2e5a | 2007-01-28 21:23:54 -0600 | [diff] [blame] | 99 | .pmc_type		= PPC_PMC_IBM, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 100 | .oprofile_cpu_type	= "ppc64/power3", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 101 | .oprofile_type		= PPC_OPROFILE_RS64, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 102 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 103 | .platform		= "power3", | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 104 | }, | 
|  | 105 | {	/* Power3+ */ | 
|  | 106 | .pvr_mask		= 0xffff0000, | 
|  | 107 | .pvr_value		= 0x00410000, | 
|  | 108 | .cpu_name		= "POWER3 (630+)", | 
|  | 109 | .cpu_features		= CPU_FTRS_POWER3, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 110 | .cpu_user_features	= COMMON_USER_PPC64|PPC_FEATURE_PPC_LE, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 111 | .icache_bsize		= 128, | 
|  | 112 | .dcache_bsize		= 128, | 
|  | 113 | .num_pmcs		= 8, | 
| Olof Johansson | 1bd2e5a | 2007-01-28 21:23:54 -0600 | [diff] [blame] | 114 | .pmc_type		= PPC_PMC_IBM, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 115 | .oprofile_cpu_type	= "ppc64/power3", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 116 | .oprofile_type		= PPC_OPROFILE_RS64, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 117 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 118 | .platform		= "power3", | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 119 | }, | 
|  | 120 | {	/* Northstar */ | 
|  | 121 | .pvr_mask		= 0xffff0000, | 
|  | 122 | .pvr_value		= 0x00330000, | 
|  | 123 | .cpu_name		= "RS64-II (northstar)", | 
|  | 124 | .cpu_features		= CPU_FTRS_RS64, | 
|  | 125 | .cpu_user_features	= COMMON_USER_PPC64, | 
|  | 126 | .icache_bsize		= 128, | 
|  | 127 | .dcache_bsize		= 128, | 
|  | 128 | .num_pmcs		= 8, | 
| Olof Johansson | 1bd2e5a | 2007-01-28 21:23:54 -0600 | [diff] [blame] | 129 | .pmc_type		= PPC_PMC_IBM, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 130 | .oprofile_cpu_type	= "ppc64/rs64", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 131 | .oprofile_type		= PPC_OPROFILE_RS64, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 132 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 133 | .platform		= "rs64", | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 134 | }, | 
|  | 135 | {	/* Pulsar */ | 
|  | 136 | .pvr_mask		= 0xffff0000, | 
|  | 137 | .pvr_value		= 0x00340000, | 
|  | 138 | .cpu_name		= "RS64-III (pulsar)", | 
|  | 139 | .cpu_features		= CPU_FTRS_RS64, | 
|  | 140 | .cpu_user_features	= COMMON_USER_PPC64, | 
|  | 141 | .icache_bsize		= 128, | 
|  | 142 | .dcache_bsize		= 128, | 
|  | 143 | .num_pmcs		= 8, | 
| Olof Johansson | 1bd2e5a | 2007-01-28 21:23:54 -0600 | [diff] [blame] | 144 | .pmc_type		= PPC_PMC_IBM, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 145 | .oprofile_cpu_type	= "ppc64/rs64", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 146 | .oprofile_type		= PPC_OPROFILE_RS64, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 147 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 148 | .platform		= "rs64", | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 149 | }, | 
|  | 150 | {	/* I-star */ | 
|  | 151 | .pvr_mask		= 0xffff0000, | 
|  | 152 | .pvr_value		= 0x00360000, | 
|  | 153 | .cpu_name		= "RS64-III (icestar)", | 
|  | 154 | .cpu_features		= CPU_FTRS_RS64, | 
|  | 155 | .cpu_user_features	= COMMON_USER_PPC64, | 
|  | 156 | .icache_bsize		= 128, | 
|  | 157 | .dcache_bsize		= 128, | 
|  | 158 | .num_pmcs		= 8, | 
| Olof Johansson | 1bd2e5a | 2007-01-28 21:23:54 -0600 | [diff] [blame] | 159 | .pmc_type		= PPC_PMC_IBM, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 160 | .oprofile_cpu_type	= "ppc64/rs64", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 161 | .oprofile_type		= PPC_OPROFILE_RS64, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 162 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 163 | .platform		= "rs64", | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 164 | }, | 
|  | 165 | {	/* S-star */ | 
|  | 166 | .pvr_mask		= 0xffff0000, | 
|  | 167 | .pvr_value		= 0x00370000, | 
|  | 168 | .cpu_name		= "RS64-IV (sstar)", | 
|  | 169 | .cpu_features		= CPU_FTRS_RS64, | 
|  | 170 | .cpu_user_features	= COMMON_USER_PPC64, | 
|  | 171 | .icache_bsize		= 128, | 
|  | 172 | .dcache_bsize		= 128, | 
|  | 173 | .num_pmcs		= 8, | 
| Olof Johansson | 1bd2e5a | 2007-01-28 21:23:54 -0600 | [diff] [blame] | 174 | .pmc_type		= PPC_PMC_IBM, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 175 | .oprofile_cpu_type	= "ppc64/rs64", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 176 | .oprofile_type		= PPC_OPROFILE_RS64, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 177 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 178 | .platform		= "rs64", | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 179 | }, | 
|  | 180 | {	/* Power4 */ | 
|  | 181 | .pvr_mask		= 0xffff0000, | 
|  | 182 | .pvr_value		= 0x00350000, | 
|  | 183 | .cpu_name		= "POWER4 (gp)", | 
|  | 184 | .cpu_features		= CPU_FTRS_POWER4, | 
| Paul Mackerras | a7ddc5e | 2005-11-10 14:29:18 +1100 | [diff] [blame] | 185 | .cpu_user_features	= COMMON_USER_POWER4, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 186 | .icache_bsize		= 128, | 
|  | 187 | .dcache_bsize		= 128, | 
|  | 188 | .num_pmcs		= 8, | 
| Olof Johansson | 1bd2e5a | 2007-01-28 21:23:54 -0600 | [diff] [blame] | 189 | .pmc_type		= PPC_PMC_IBM, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 190 | .oprofile_cpu_type	= "ppc64/power4", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 191 | .oprofile_type		= PPC_OPROFILE_POWER4, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 192 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 193 | .platform		= "power4", | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 194 | }, | 
|  | 195 | {	/* Power4+ */ | 
|  | 196 | .pvr_mask		= 0xffff0000, | 
|  | 197 | .pvr_value		= 0x00380000, | 
|  | 198 | .cpu_name		= "POWER4+ (gq)", | 
|  | 199 | .cpu_features		= CPU_FTRS_POWER4, | 
| Paul Mackerras | a7ddc5e | 2005-11-10 14:29:18 +1100 | [diff] [blame] | 200 | .cpu_user_features	= COMMON_USER_POWER4, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 201 | .icache_bsize		= 128, | 
|  | 202 | .dcache_bsize		= 128, | 
|  | 203 | .num_pmcs		= 8, | 
| Olof Johansson | 1bd2e5a | 2007-01-28 21:23:54 -0600 | [diff] [blame] | 204 | .pmc_type		= PPC_PMC_IBM, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 205 | .oprofile_cpu_type	= "ppc64/power4", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 206 | .oprofile_type		= PPC_OPROFILE_POWER4, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 207 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 208 | .platform		= "power4", | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 209 | }, | 
|  | 210 | {	/* PPC970 */ | 
|  | 211 | .pvr_mask		= 0xffff0000, | 
|  | 212 | .pvr_value		= 0x00390000, | 
|  | 213 | .cpu_name		= "PPC970", | 
|  | 214 | .cpu_features		= CPU_FTRS_PPC970, | 
| Paul Mackerras | a7ddc5e | 2005-11-10 14:29:18 +1100 | [diff] [blame] | 215 | .cpu_user_features	= COMMON_USER_POWER4 | | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 216 | PPC_FEATURE_HAS_ALTIVEC_COMP, | 
|  | 217 | .icache_bsize		= 128, | 
|  | 218 | .dcache_bsize		= 128, | 
|  | 219 | .num_pmcs		= 8, | 
| Olof Johansson | 1bd2e5a | 2007-01-28 21:23:54 -0600 | [diff] [blame] | 220 | .pmc_type		= PPC_PMC_IBM, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 221 | .cpu_setup		= __setup_cpu_ppc970, | 
| Olof Johansson | f39b7a5 | 2006-08-11 00:07:08 -0500 | [diff] [blame] | 222 | .cpu_restore		= __restore_cpu_ppc970, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 223 | .oprofile_cpu_type	= "ppc64/970", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 224 | .oprofile_type		= PPC_OPROFILE_POWER4, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 225 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 226 | .platform		= "ppc970", | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 227 | }, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 228 | {	/* PPC970FX */ | 
|  | 229 | .pvr_mask		= 0xffff0000, | 
|  | 230 | .pvr_value		= 0x003c0000, | 
|  | 231 | .cpu_name		= "PPC970FX", | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 232 | .cpu_features		= CPU_FTRS_PPC970, | 
| Paul Mackerras | a7ddc5e | 2005-11-10 14:29:18 +1100 | [diff] [blame] | 233 | .cpu_user_features	= COMMON_USER_POWER4 | | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 234 | PPC_FEATURE_HAS_ALTIVEC_COMP, | 
|  | 235 | .icache_bsize		= 128, | 
|  | 236 | .dcache_bsize		= 128, | 
|  | 237 | .num_pmcs		= 8, | 
| Olof Johansson | 1bd2e5a | 2007-01-28 21:23:54 -0600 | [diff] [blame] | 238 | .pmc_type		= PPC_PMC_IBM, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 239 | .cpu_setup		= __setup_cpu_ppc970, | 
| Olof Johansson | f39b7a5 | 2006-08-11 00:07:08 -0500 | [diff] [blame] | 240 | .cpu_restore		= __restore_cpu_ppc970, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 241 | .oprofile_cpu_type	= "ppc64/970", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 242 | .oprofile_type		= PPC_OPROFILE_POWER4, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 243 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 244 | .platform		= "ppc970", | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 245 | }, | 
| Olof Johansson | 3546e81 | 2007-02-26 00:35:14 -0600 | [diff] [blame] | 246 | {	/* PPC970MP DD1.0 - no DEEPNAP, use regular 970 init */ | 
|  | 247 | .pvr_mask		= 0xffffffff, | 
|  | 248 | .pvr_value		= 0x00440100, | 
|  | 249 | .cpu_name		= "PPC970MP", | 
|  | 250 | .cpu_features		= CPU_FTRS_PPC970, | 
|  | 251 | .cpu_user_features	= COMMON_USER_POWER4 | | 
|  | 252 | PPC_FEATURE_HAS_ALTIVEC_COMP, | 
|  | 253 | .icache_bsize		= 128, | 
|  | 254 | .dcache_bsize		= 128, | 
|  | 255 | .num_pmcs		= 8, | 
| Anton Blanchard | 2fae498 | 2007-05-19 15:22:41 +1000 | [diff] [blame] | 256 | .pmc_type		= PPC_PMC_IBM, | 
| Olof Johansson | 3546e81 | 2007-02-26 00:35:14 -0600 | [diff] [blame] | 257 | .cpu_setup		= __setup_cpu_ppc970, | 
|  | 258 | .cpu_restore		= __restore_cpu_ppc970, | 
|  | 259 | .oprofile_cpu_type	= "ppc64/970MP", | 
|  | 260 | .oprofile_type		= PPC_OPROFILE_POWER4, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 261 | .machine_check		= machine_check_generic, | 
| Olof Johansson | 3546e81 | 2007-02-26 00:35:14 -0600 | [diff] [blame] | 262 | .platform		= "ppc970", | 
|  | 263 | }, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 264 | {	/* PPC970MP */ | 
|  | 265 | .pvr_mask		= 0xffff0000, | 
|  | 266 | .pvr_value		= 0x00440000, | 
|  | 267 | .cpu_name		= "PPC970MP", | 
|  | 268 | .cpu_features		= CPU_FTRS_PPC970, | 
| Paul Mackerras | a7ddc5e | 2005-11-10 14:29:18 +1100 | [diff] [blame] | 269 | .cpu_user_features	= COMMON_USER_POWER4 | | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 270 | PPC_FEATURE_HAS_ALTIVEC_COMP, | 
|  | 271 | .icache_bsize		= 128, | 
|  | 272 | .dcache_bsize		= 128, | 
| Anton Blanchard | 87af41b | 2006-05-05 05:44:26 +1000 | [diff] [blame] | 273 | .num_pmcs		= 8, | 
| Anton Blanchard | 2fae498 | 2007-05-19 15:22:41 +1000 | [diff] [blame] | 274 | .pmc_type		= PPC_PMC_IBM, | 
| Olof Johansson | 5b43d20 | 2006-10-04 23:41:41 -0500 | [diff] [blame] | 275 | .cpu_setup		= __setup_cpu_ppc970MP, | 
| Olof Johansson | f39b7a5 | 2006-08-11 00:07:08 -0500 | [diff] [blame] | 276 | .cpu_restore		= __restore_cpu_ppc970, | 
| Mike Wolf | fecb352 | 2006-11-21 14:41:54 -0600 | [diff] [blame] | 277 | .oprofile_cpu_type	= "ppc64/970MP", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 278 | .oprofile_type		= PPC_OPROFILE_POWER4, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 279 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 280 | .platform		= "ppc970", | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 281 | }, | 
| Jake Moilanen | 362ff7b | 2006-10-18 10:47:22 -0500 | [diff] [blame] | 282 | {	/* PPC970GX */ | 
|  | 283 | .pvr_mask		= 0xffff0000, | 
|  | 284 | .pvr_value		= 0x00450000, | 
|  | 285 | .cpu_name		= "PPC970GX", | 
|  | 286 | .cpu_features		= CPU_FTRS_PPC970, | 
|  | 287 | .cpu_user_features	= COMMON_USER_POWER4 | | 
|  | 288 | PPC_FEATURE_HAS_ALTIVEC_COMP, | 
|  | 289 | .icache_bsize		= 128, | 
|  | 290 | .dcache_bsize		= 128, | 
|  | 291 | .num_pmcs		= 8, | 
| Olof Johansson | 1bd2e5a | 2007-01-28 21:23:54 -0600 | [diff] [blame] | 292 | .pmc_type		= PPC_PMC_IBM, | 
| Jake Moilanen | 362ff7b | 2006-10-18 10:47:22 -0500 | [diff] [blame] | 293 | .cpu_setup		= __setup_cpu_ppc970, | 
|  | 294 | .oprofile_cpu_type	= "ppc64/970", | 
|  | 295 | .oprofile_type		= PPC_OPROFILE_POWER4, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 296 | .machine_check		= machine_check_generic, | 
| Jake Moilanen | 362ff7b | 2006-10-18 10:47:22 -0500 | [diff] [blame] | 297 | .platform		= "ppc970", | 
|  | 298 | }, | 
| Benjamin Herrenschmidt | 3c726f8 | 2005-11-07 11:06:55 +1100 | [diff] [blame] | 299 | {	/* Power5 GR */ | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 300 | .pvr_mask		= 0xffff0000, | 
|  | 301 | .pvr_value		= 0x003a0000, | 
|  | 302 | .cpu_name		= "POWER5 (gr)", | 
|  | 303 | .cpu_features		= CPU_FTRS_POWER5, | 
| Paul Mackerras | a7ddc5e | 2005-11-10 14:29:18 +1100 | [diff] [blame] | 304 | .cpu_user_features	= COMMON_USER_POWER5, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 305 | .icache_bsize		= 128, | 
|  | 306 | .dcache_bsize		= 128, | 
|  | 307 | .num_pmcs		= 6, | 
| Olof Johansson | 1bd2e5a | 2007-01-28 21:23:54 -0600 | [diff] [blame] | 308 | .pmc_type		= PPC_PMC_IBM, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 309 | .oprofile_cpu_type	= "ppc64/power5", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 310 | .oprofile_type		= PPC_OPROFILE_POWER4, | 
| Michael Neuling | e78dbc8 | 2006-06-08 14:42:34 +1000 | [diff] [blame] | 311 | /* SIHV / SIPR bits are implemented on POWER4+ (GQ) | 
|  | 312 | * and above but only works on POWER5 and above | 
|  | 313 | */ | 
|  | 314 | .oprofile_mmcra_sihv	= MMCRA_SIHV, | 
|  | 315 | .oprofile_mmcra_sipr	= MMCRA_SIPR, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 316 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 317 | .platform		= "power5", | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 318 | }, | 
| Mike Wolf | 31a12ce | 2007-07-10 13:13:47 -0500 | [diff] [blame] | 319 | {	/* Power5++ */ | 
|  | 320 | .pvr_mask		= 0xffffff00, | 
|  | 321 | .pvr_value		= 0x003b0300, | 
|  | 322 | .cpu_name		= "POWER5+ (gs)", | 
|  | 323 | .cpu_features		= CPU_FTRS_POWER5, | 
|  | 324 | .cpu_user_features	= COMMON_USER_POWER5_PLUS, | 
|  | 325 | .icache_bsize		= 128, | 
|  | 326 | .dcache_bsize		= 128, | 
|  | 327 | .num_pmcs		= 6, | 
|  | 328 | .oprofile_cpu_type	= "ppc64/power5++", | 
|  | 329 | .oprofile_type		= PPC_OPROFILE_POWER4, | 
|  | 330 | .oprofile_mmcra_sihv	= MMCRA_SIHV, | 
|  | 331 | .oprofile_mmcra_sipr	= MMCRA_SIPR, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 332 | .machine_check		= machine_check_generic, | 
| Mike Wolf | 31a12ce | 2007-07-10 13:13:47 -0500 | [diff] [blame] | 333 | .platform		= "power5+", | 
|  | 334 | }, | 
| Benjamin Herrenschmidt | 3c726f8 | 2005-11-07 11:06:55 +1100 | [diff] [blame] | 335 | {	/* Power5 GS */ | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 336 | .pvr_mask		= 0xffff0000, | 
|  | 337 | .pvr_value		= 0x003b0000, | 
| Anton Blanchard | 834608f | 2006-01-09 15:42:30 +1100 | [diff] [blame] | 338 | .cpu_name		= "POWER5+ (gs)", | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 339 | .cpu_features		= CPU_FTRS_POWER5, | 
| Paul Mackerras | a7ddc5e | 2005-11-10 14:29:18 +1100 | [diff] [blame] | 340 | .cpu_user_features	= COMMON_USER_POWER5_PLUS, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 341 | .icache_bsize		= 128, | 
|  | 342 | .dcache_bsize		= 128, | 
|  | 343 | .num_pmcs		= 6, | 
| Olof Johansson | 1bd2e5a | 2007-01-28 21:23:54 -0600 | [diff] [blame] | 344 | .pmc_type		= PPC_PMC_IBM, | 
| Anton Blanchard | 834608f | 2006-01-09 15:42:30 +1100 | [diff] [blame] | 345 | .oprofile_cpu_type	= "ppc64/power5+", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 346 | .oprofile_type		= PPC_OPROFILE_POWER4, | 
| Michael Neuling | e78dbc8 | 2006-06-08 14:42:34 +1000 | [diff] [blame] | 347 | .oprofile_mmcra_sihv	= MMCRA_SIHV, | 
|  | 348 | .oprofile_mmcra_sipr	= MMCRA_SIPR, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 349 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 350 | .platform		= "power5+", | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 351 | }, | 
| Paul Mackerras | 974a76f | 2006-11-10 20:38:53 +1100 | [diff] [blame] | 352 | {	/* POWER6 in P5+ mode; 2.04-compliant processor */ | 
|  | 353 | .pvr_mask		= 0xffffffff, | 
|  | 354 | .pvr_value		= 0x0f000001, | 
|  | 355 | .cpu_name		= "POWER5+", | 
|  | 356 | .cpu_features		= CPU_FTRS_POWER5, | 
|  | 357 | .cpu_user_features	= COMMON_USER_POWER5_PLUS, | 
|  | 358 | .icache_bsize		= 128, | 
|  | 359 | .dcache_bsize		= 128, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 360 | .machine_check		= machine_check_generic, | 
| Torez Smith | 79e25ba | 2008-07-18 06:42:07 +1000 | [diff] [blame] | 361 | .oprofile_cpu_type	= "ppc64/compat-power5+", | 
| Paul Mackerras | 974a76f | 2006-11-10 20:38:53 +1100 | [diff] [blame] | 362 | .platform		= "power5+", | 
|  | 363 | }, | 
| Anton Blanchard | 03054d5 | 2006-04-29 09:51:06 +1000 | [diff] [blame] | 364 | {	/* Power6 */ | 
|  | 365 | .pvr_mask		= 0xffff0000, | 
|  | 366 | .pvr_value		= 0x003e0000, | 
| Paul Mackerras | 974a76f | 2006-11-10 20:38:53 +1100 | [diff] [blame] | 367 | .cpu_name		= "POWER6 (raw)", | 
|  | 368 | .cpu_features		= CPU_FTRS_POWER6, | 
|  | 369 | .cpu_user_features	= COMMON_USER_POWER6 | | 
|  | 370 | PPC_FEATURE_POWER6_EXT, | 
|  | 371 | .icache_bsize		= 128, | 
|  | 372 | .dcache_bsize		= 128, | 
|  | 373 | .num_pmcs		= 6, | 
| Anton Blanchard | 2fae498 | 2007-05-19 15:22:41 +1000 | [diff] [blame] | 374 | .pmc_type		= PPC_PMC_IBM, | 
| Paul Mackerras | 974a76f | 2006-11-10 20:38:53 +1100 | [diff] [blame] | 375 | .oprofile_cpu_type	= "ppc64/power6", | 
|  | 376 | .oprofile_type		= PPC_OPROFILE_POWER4, | 
|  | 377 | .oprofile_mmcra_sihv	= POWER6_MMCRA_SIHV, | 
|  | 378 | .oprofile_mmcra_sipr	= POWER6_MMCRA_SIPR, | 
|  | 379 | .oprofile_mmcra_clear	= POWER6_MMCRA_THRM | | 
|  | 380 | POWER6_MMCRA_OTHER, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 381 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 974a76f | 2006-11-10 20:38:53 +1100 | [diff] [blame] | 382 | .platform		= "power6x", | 
|  | 383 | }, | 
|  | 384 | {	/* 2.05-compliant processor, i.e. Power6 "architected" mode */ | 
|  | 385 | .pvr_mask		= 0xffffffff, | 
|  | 386 | .pvr_value		= 0x0f000002, | 
|  | 387 | .cpu_name		= "POWER6 (architected)", | 
| Anton Blanchard | 03054d5 | 2006-04-29 09:51:06 +1000 | [diff] [blame] | 388 | .cpu_features		= CPU_FTRS_POWER6, | 
|  | 389 | .cpu_user_features	= COMMON_USER_POWER6, | 
|  | 390 | .icache_bsize		= 128, | 
|  | 391 | .dcache_bsize		= 128, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 392 | .machine_check		= machine_check_generic, | 
| Torez Smith | 79e25ba | 2008-07-18 06:42:07 +1000 | [diff] [blame] | 393 | .oprofile_cpu_type	= "ppc64/compat-power6", | 
| Anton Blanchard | 03054d5 | 2006-04-29 09:51:06 +1000 | [diff] [blame] | 394 | .platform		= "power6", | 
|  | 395 | }, | 
| Joel Schopp | 635f5a6 | 2008-06-19 06:18:21 +1000 | [diff] [blame] | 396 | {	/* 2.06-compliant processor, i.e. Power7 "architected" mode */ | 
|  | 397 | .pvr_mask		= 0xffffffff, | 
|  | 398 | .pvr_value		= 0x0f000003, | 
|  | 399 | .cpu_name		= "POWER7 (architected)", | 
|  | 400 | .cpu_features		= CPU_FTRS_POWER7, | 
|  | 401 | .cpu_user_features	= COMMON_USER_POWER7, | 
|  | 402 | .icache_bsize		= 128, | 
|  | 403 | .dcache_bsize		= 128, | 
|  | 404 | .machine_check		= machine_check_generic, | 
| Torez Smith | 79e25ba | 2008-07-18 06:42:07 +1000 | [diff] [blame] | 405 | .oprofile_cpu_type	= "ppc64/compat-power7", | 
| Joel Schopp | 635f5a6 | 2008-06-19 06:18:21 +1000 | [diff] [blame] | 406 | .platform		= "power7", | 
|  | 407 | }, | 
| Michael Neuling | e952e6c | 2008-06-18 10:47:26 +1000 | [diff] [blame] | 408 | {	/* Power7 */ | 
|  | 409 | .pvr_mask		= 0xffff0000, | 
|  | 410 | .pvr_value		= 0x003f0000, | 
| Joel Schopp | 635f5a6 | 2008-06-19 06:18:21 +1000 | [diff] [blame] | 411 | .cpu_name		= "POWER7 (raw)", | 
| Michael Neuling | e952e6c | 2008-06-18 10:47:26 +1000 | [diff] [blame] | 412 | .cpu_features		= CPU_FTRS_POWER7, | 
|  | 413 | .cpu_user_features	= COMMON_USER_POWER7, | 
|  | 414 | .icache_bsize		= 128, | 
|  | 415 | .dcache_bsize		= 128, | 
|  | 416 | .num_pmcs		= 6, | 
|  | 417 | .pmc_type		= PPC_PMC_IBM, | 
|  | 418 | .cpu_setup		= __setup_cpu_power7, | 
|  | 419 | .cpu_restore		= __restore_cpu_power7, | 
|  | 420 | .oprofile_cpu_type	= "ppc64/power7", | 
|  | 421 | .oprofile_type		= PPC_OPROFILE_POWER4, | 
|  | 422 | .oprofile_mmcra_sihv	= POWER6_MMCRA_SIHV, | 
|  | 423 | .oprofile_mmcra_sipr	= POWER6_MMCRA_SIPR, | 
|  | 424 | .oprofile_mmcra_clear	= POWER6_MMCRA_THRM | | 
|  | 425 | POWER6_MMCRA_OTHER, | 
|  | 426 | .platform		= "power7", | 
|  | 427 | }, | 
| Arnd Bergmann | c902be7 | 2006-01-04 19:55:53 +0000 | [diff] [blame] | 428 | {	/* Cell Broadband Engine */ | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 429 | .pvr_mask		= 0xffff0000, | 
|  | 430 | .pvr_value		= 0x00700000, | 
|  | 431 | .cpu_name		= "Cell Broadband Engine", | 
|  | 432 | .cpu_features		= CPU_FTRS_CELL, | 
|  | 433 | .cpu_user_features	= COMMON_USER_PPC64 | | 
| Benjamin Herrenschmidt | aa5cb02 | 2006-03-01 15:07:07 +1100 | [diff] [blame] | 434 | PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP | | 
|  | 435 | PPC_FEATURE_SMT, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 436 | .icache_bsize		= 128, | 
|  | 437 | .dcache_bsize		= 128, | 
| Maynard Johnson | 18f2190 | 2006-11-20 18:45:16 +0100 | [diff] [blame] | 438 | .num_pmcs		= 4, | 
| Olof Johansson | 1bd2e5a | 2007-01-28 21:23:54 -0600 | [diff] [blame] | 439 | .pmc_type		= PPC_PMC_IBM, | 
| Maynard Johnson | 18f2190 | 2006-11-20 18:45:16 +0100 | [diff] [blame] | 440 | .oprofile_cpu_type	= "ppc64/cell-be", | 
|  | 441 | .oprofile_type		= PPC_OPROFILE_CELL, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 442 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 443 | .platform		= "ppc-cell-be", | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 444 | }, | 
| Olof Johansson | b3ebd1d | 2006-09-06 14:35:57 -0500 | [diff] [blame] | 445 | {	/* PA Semi PA6T */ | 
|  | 446 | .pvr_mask		= 0x7fff0000, | 
|  | 447 | .pvr_value		= 0x00900000, | 
|  | 448 | .cpu_name		= "PA6T", | 
|  | 449 | .cpu_features		= CPU_FTRS_PA6T, | 
|  | 450 | .cpu_user_features	= COMMON_USER_PA6T, | 
|  | 451 | .icache_bsize		= 64, | 
|  | 452 | .dcache_bsize		= 64, | 
|  | 453 | .num_pmcs		= 6, | 
| Olof Johansson | 1bd2e5a | 2007-01-28 21:23:54 -0600 | [diff] [blame] | 454 | .pmc_type		= PPC_PMC_PA6T, | 
| Olof Johansson | 1199919 | 2007-02-04 16:36:51 -0600 | [diff] [blame] | 455 | .cpu_setup		= __setup_cpu_pa6t, | 
|  | 456 | .cpu_restore		= __restore_cpu_pa6t, | 
| Olof Johansson | 25fc530 | 2007-04-18 16:38:21 +1000 | [diff] [blame] | 457 | .oprofile_cpu_type	= "ppc64/pa6t", | 
|  | 458 | .oprofile_type		= PPC_OPROFILE_PA6T, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 459 | .machine_check		= machine_check_generic, | 
| Olof Johansson | b3ebd1d | 2006-09-06 14:35:57 -0500 | [diff] [blame] | 460 | .platform		= "pa6t", | 
|  | 461 | }, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 462 | {	/* default match */ | 
|  | 463 | .pvr_mask		= 0x00000000, | 
|  | 464 | .pvr_value		= 0x00000000, | 
|  | 465 | .cpu_name		= "POWER4 (compatible)", | 
|  | 466 | .cpu_features		= CPU_FTRS_COMPATIBLE, | 
|  | 467 | .cpu_user_features	= COMMON_USER_PPC64, | 
|  | 468 | .icache_bsize		= 128, | 
|  | 469 | .dcache_bsize		= 128, | 
|  | 470 | .num_pmcs		= 6, | 
| Olof Johansson | 1bd2e5a | 2007-01-28 21:23:54 -0600 | [diff] [blame] | 471 | .pmc_type		= PPC_PMC_IBM, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 472 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 473 | .platform		= "power4", | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 474 | } | 
|  | 475 | #endif	/* CONFIG_PPC64 */ | 
|  | 476 | #ifdef CONFIG_PPC32 | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 477 | #if CLASSIC_PPC | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 478 | {	/* 601 */ | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 479 | .pvr_mask		= 0xffff0000, | 
|  | 480 | .pvr_value		= 0x00010000, | 
|  | 481 | .cpu_name		= "601", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 482 | .cpu_features		= CPU_FTRS_PPC601, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 483 | .cpu_user_features	= COMMON_USER | PPC_FEATURE_601_INSTR | | 
| Paul Mackerras | 9859901 | 2005-10-22 16:51:34 +1000 | [diff] [blame] | 484 | PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 485 | .icache_bsize		= 32, | 
|  | 486 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 487 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 488 | .platform		= "ppc601", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 489 | }, | 
|  | 490 | {	/* 603 */ | 
|  | 491 | .pvr_mask		= 0xffff0000, | 
|  | 492 | .pvr_value		= 0x00030000, | 
|  | 493 | .cpu_name		= "603", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 494 | .cpu_features		= CPU_FTRS_603, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 495 | .cpu_user_features	= COMMON_USER | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 496 | .icache_bsize		= 32, | 
|  | 497 | .dcache_bsize		= 32, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 498 | .cpu_setup		= __setup_cpu_603, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 499 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 500 | .platform		= "ppc603", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 501 | }, | 
|  | 502 | {	/* 603e */ | 
|  | 503 | .pvr_mask		= 0xffff0000, | 
|  | 504 | .pvr_value		= 0x00060000, | 
|  | 505 | .cpu_name		= "603e", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 506 | .cpu_features		= CPU_FTRS_603, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 507 | .cpu_user_features	= COMMON_USER | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 508 | .icache_bsize		= 32, | 
|  | 509 | .dcache_bsize		= 32, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 510 | .cpu_setup		= __setup_cpu_603, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 511 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 512 | .platform		= "ppc603", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 513 | }, | 
|  | 514 | {	/* 603ev */ | 
|  | 515 | .pvr_mask		= 0xffff0000, | 
|  | 516 | .pvr_value		= 0x00070000, | 
|  | 517 | .cpu_name		= "603ev", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 518 | .cpu_features		= CPU_FTRS_603, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 519 | .cpu_user_features	= COMMON_USER | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 520 | .icache_bsize		= 32, | 
|  | 521 | .dcache_bsize		= 32, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 522 | .cpu_setup		= __setup_cpu_603, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 523 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 524 | .platform		= "ppc603", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 525 | }, | 
|  | 526 | {	/* 604 */ | 
|  | 527 | .pvr_mask		= 0xffff0000, | 
|  | 528 | .pvr_value		= 0x00040000, | 
|  | 529 | .cpu_name		= "604", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 530 | .cpu_features		= CPU_FTRS_604, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 531 | .cpu_user_features	= COMMON_USER | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 532 | .icache_bsize		= 32, | 
|  | 533 | .dcache_bsize		= 32, | 
|  | 534 | .num_pmcs		= 2, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 535 | .cpu_setup		= __setup_cpu_604, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 536 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 537 | .platform		= "ppc604", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 538 | }, | 
|  | 539 | {	/* 604e */ | 
|  | 540 | .pvr_mask		= 0xfffff000, | 
|  | 541 | .pvr_value		= 0x00090000, | 
|  | 542 | .cpu_name		= "604e", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 543 | .cpu_features		= CPU_FTRS_604, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 544 | .cpu_user_features	= COMMON_USER | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 545 | .icache_bsize		= 32, | 
|  | 546 | .dcache_bsize		= 32, | 
|  | 547 | .num_pmcs		= 4, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 548 | .cpu_setup		= __setup_cpu_604, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 549 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 550 | .platform		= "ppc604", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 551 | }, | 
|  | 552 | {	/* 604r */ | 
|  | 553 | .pvr_mask		= 0xffff0000, | 
|  | 554 | .pvr_value		= 0x00090000, | 
|  | 555 | .cpu_name		= "604r", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 556 | .cpu_features		= CPU_FTRS_604, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 557 | .cpu_user_features	= COMMON_USER | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 558 | .icache_bsize		= 32, | 
|  | 559 | .dcache_bsize		= 32, | 
|  | 560 | .num_pmcs		= 4, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 561 | .cpu_setup		= __setup_cpu_604, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 562 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 563 | .platform		= "ppc604", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 564 | }, | 
|  | 565 | {	/* 604ev */ | 
|  | 566 | .pvr_mask		= 0xffff0000, | 
|  | 567 | .pvr_value		= 0x000a0000, | 
|  | 568 | .cpu_name		= "604ev", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 569 | .cpu_features		= CPU_FTRS_604, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 570 | .cpu_user_features	= COMMON_USER | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 571 | .icache_bsize		= 32, | 
|  | 572 | .dcache_bsize		= 32, | 
|  | 573 | .num_pmcs		= 4, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 574 | .cpu_setup		= __setup_cpu_604, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 575 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 576 | .platform		= "ppc604", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 577 | }, | 
|  | 578 | {	/* 740/750 (0x4202, don't support TAU ?) */ | 
|  | 579 | .pvr_mask		= 0xffffffff, | 
|  | 580 | .pvr_value		= 0x00084202, | 
|  | 581 | .cpu_name		= "740/750", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 582 | .cpu_features		= CPU_FTRS_740_NOTAU, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 583 | .cpu_user_features	= COMMON_USER | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 584 | .icache_bsize		= 32, | 
|  | 585 | .dcache_bsize		= 32, | 
|  | 586 | .num_pmcs		= 4, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 587 | .cpu_setup		= __setup_cpu_750, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 588 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 589 | .platform		= "ppc750", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 590 | }, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 591 | {	/* 750CX (80100 and 8010x?) */ | 
|  | 592 | .pvr_mask		= 0xfffffff0, | 
|  | 593 | .pvr_value		= 0x00080100, | 
|  | 594 | .cpu_name		= "750CX", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 595 | .cpu_features		= CPU_FTRS_750, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 596 | .cpu_user_features	= COMMON_USER | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 597 | .icache_bsize		= 32, | 
|  | 598 | .dcache_bsize		= 32, | 
|  | 599 | .num_pmcs		= 4, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 600 | .cpu_setup		= __setup_cpu_750cx, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 601 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 602 | .platform		= "ppc750", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 603 | }, | 
|  | 604 | {	/* 750CX (82201 and 82202) */ | 
|  | 605 | .pvr_mask		= 0xfffffff0, | 
|  | 606 | .pvr_value		= 0x00082200, | 
|  | 607 | .cpu_name		= "750CX", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 608 | .cpu_features		= CPU_FTRS_750, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 609 | .cpu_user_features	= COMMON_USER | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 610 | .icache_bsize		= 32, | 
|  | 611 | .dcache_bsize		= 32, | 
|  | 612 | .num_pmcs		= 4, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 613 | .pmc_type		= PPC_PMC_IBM, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 614 | .cpu_setup		= __setup_cpu_750cx, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 615 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 616 | .platform		= "ppc750", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 617 | }, | 
|  | 618 | {	/* 750CXe (82214) */ | 
|  | 619 | .pvr_mask		= 0xfffffff0, | 
|  | 620 | .pvr_value		= 0x00082210, | 
|  | 621 | .cpu_name		= "750CXe", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 622 | .cpu_features		= CPU_FTRS_750, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 623 | .cpu_user_features	= COMMON_USER | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 624 | .icache_bsize		= 32, | 
|  | 625 | .dcache_bsize		= 32, | 
|  | 626 | .num_pmcs		= 4, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 627 | .pmc_type		= PPC_PMC_IBM, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 628 | .cpu_setup		= __setup_cpu_750cx, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 629 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 630 | .platform		= "ppc750", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 631 | }, | 
| Arthur Othieno | 7c31625 | 2005-09-03 15:55:52 -0700 | [diff] [blame] | 632 | {	/* 750CXe "Gekko" (83214) */ | 
|  | 633 | .pvr_mask		= 0xffffffff, | 
|  | 634 | .pvr_value		= 0x00083214, | 
|  | 635 | .cpu_name		= "750CXe", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 636 | .cpu_features		= CPU_FTRS_750, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 637 | .cpu_user_features	= COMMON_USER | PPC_FEATURE_PPC_LE, | 
| Arthur Othieno | 7c31625 | 2005-09-03 15:55:52 -0700 | [diff] [blame] | 638 | .icache_bsize		= 32, | 
|  | 639 | .dcache_bsize		= 32, | 
|  | 640 | .num_pmcs		= 4, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 641 | .pmc_type		= PPC_PMC_IBM, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 642 | .cpu_setup		= __setup_cpu_750cx, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 643 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 644 | .platform		= "ppc750", | 
| Arthur Othieno | 7c31625 | 2005-09-03 15:55:52 -0700 | [diff] [blame] | 645 | }, | 
| Jake Moilanen | cfbff8a | 2006-10-03 14:29:34 -0500 | [diff] [blame] | 646 | {	/* 750CL */ | 
|  | 647 | .pvr_mask		= 0xfffff0f0, | 
|  | 648 | .pvr_value		= 0x00087010, | 
|  | 649 | .cpu_name		= "750CL", | 
| Josh Boyer | a14c450 | 2007-04-13 04:33:25 +1000 | [diff] [blame] | 650 | .cpu_features		= CPU_FTRS_750CL, | 
| Jake Moilanen | cfbff8a | 2006-10-03 14:29:34 -0500 | [diff] [blame] | 651 | .cpu_user_features	= COMMON_USER | PPC_FEATURE_PPC_LE, | 
|  | 652 | .icache_bsize		= 32, | 
|  | 653 | .dcache_bsize		= 32, | 
|  | 654 | .num_pmcs		= 4, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 655 | .pmc_type		= PPC_PMC_IBM, | 
| Josh Boyer | a14c450 | 2007-04-13 04:33:25 +1000 | [diff] [blame] | 656 | .cpu_setup		= __setup_cpu_750, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 657 | .machine_check		= machine_check_generic, | 
| Jake Moilanen | cfbff8a | 2006-10-03 14:29:34 -0500 | [diff] [blame] | 658 | .platform		= "ppc750", | 
|  | 659 | }, | 
| Arthur Othieno | ac1ff04 | 2005-09-03 15:55:51 -0700 | [diff] [blame] | 660 | {	/* 745/755 */ | 
|  | 661 | .pvr_mask		= 0xfffff000, | 
|  | 662 | .pvr_value		= 0x00083000, | 
|  | 663 | .cpu_name		= "745/755", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 664 | .cpu_features		= CPU_FTRS_750, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 665 | .cpu_user_features	= COMMON_USER | PPC_FEATURE_PPC_LE, | 
| Arthur Othieno | ac1ff04 | 2005-09-03 15:55:51 -0700 | [diff] [blame] | 666 | .icache_bsize		= 32, | 
|  | 667 | .dcache_bsize		= 32, | 
|  | 668 | .num_pmcs		= 4, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 669 | .pmc_type		= PPC_PMC_IBM, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 670 | .cpu_setup		= __setup_cpu_750, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 671 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 672 | .platform		= "ppc750", | 
| Arthur Othieno | ac1ff04 | 2005-09-03 15:55:51 -0700 | [diff] [blame] | 673 | }, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 674 | {	/* 750FX rev 1.x */ | 
|  | 675 | .pvr_mask		= 0xffffff00, | 
|  | 676 | .pvr_value		= 0x70000100, | 
|  | 677 | .cpu_name		= "750FX", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 678 | .cpu_features		= CPU_FTRS_750FX1, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 679 | .cpu_user_features	= COMMON_USER | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 680 | .icache_bsize		= 32, | 
|  | 681 | .dcache_bsize		= 32, | 
|  | 682 | .num_pmcs		= 4, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 683 | .pmc_type		= PPC_PMC_IBM, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 684 | .cpu_setup		= __setup_cpu_750, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 685 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 686 | .platform		= "ppc750", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 687 | }, | 
|  | 688 | {	/* 750FX rev 2.0 must disable HID0[DPM] */ | 
|  | 689 | .pvr_mask		= 0xffffffff, | 
|  | 690 | .pvr_value		= 0x70000200, | 
|  | 691 | .cpu_name		= "750FX", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 692 | .cpu_features		= CPU_FTRS_750FX2, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 693 | .cpu_user_features	= COMMON_USER | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 694 | .icache_bsize		= 32, | 
|  | 695 | .dcache_bsize		= 32, | 
|  | 696 | .num_pmcs		= 4, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 697 | .pmc_type		= PPC_PMC_IBM, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 698 | .cpu_setup		= __setup_cpu_750, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 699 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 700 | .platform		= "ppc750", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 701 | }, | 
|  | 702 | {	/* 750FX (All revs except 2.0) */ | 
|  | 703 | .pvr_mask		= 0xffff0000, | 
|  | 704 | .pvr_value		= 0x70000000, | 
|  | 705 | .cpu_name		= "750FX", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 706 | .cpu_features		= CPU_FTRS_750FX, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 707 | .cpu_user_features	= COMMON_USER | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 708 | .icache_bsize		= 32, | 
|  | 709 | .dcache_bsize		= 32, | 
|  | 710 | .num_pmcs		= 4, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 711 | .pmc_type		= PPC_PMC_IBM, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 712 | .cpu_setup		= __setup_cpu_750fx, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 713 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 714 | .platform		= "ppc750", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 715 | }, | 
|  | 716 | {	/* 750GX */ | 
|  | 717 | .pvr_mask		= 0xffff0000, | 
|  | 718 | .pvr_value		= 0x70020000, | 
|  | 719 | .cpu_name		= "750GX", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 720 | .cpu_features		= CPU_FTRS_750GX, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 721 | .cpu_user_features	= COMMON_USER | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 722 | .icache_bsize		= 32, | 
|  | 723 | .dcache_bsize		= 32, | 
|  | 724 | .num_pmcs		= 4, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 725 | .pmc_type		= PPC_PMC_IBM, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 726 | .cpu_setup		= __setup_cpu_750fx, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 727 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 728 | .platform		= "ppc750", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 729 | }, | 
|  | 730 | {	/* 740/750 (L2CR bit need fixup for 740) */ | 
|  | 731 | .pvr_mask		= 0xffff0000, | 
|  | 732 | .pvr_value		= 0x00080000, | 
|  | 733 | .cpu_name		= "740/750", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 734 | .cpu_features		= CPU_FTRS_740, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 735 | .cpu_user_features	= COMMON_USER | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 736 | .icache_bsize		= 32, | 
|  | 737 | .dcache_bsize		= 32, | 
|  | 738 | .num_pmcs		= 4, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 739 | .pmc_type		= PPC_PMC_IBM, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 740 | .cpu_setup		= __setup_cpu_750, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 741 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 742 | .platform		= "ppc750", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 743 | }, | 
|  | 744 | {	/* 7400 rev 1.1 ? (no TAU) */ | 
|  | 745 | .pvr_mask		= 0xffffffff, | 
|  | 746 | .pvr_value		= 0x000c1101, | 
|  | 747 | .cpu_name		= "7400 (1.1)", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 748 | .cpu_features		= CPU_FTRS_7400_NOTAU, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 749 | .cpu_user_features	= COMMON_USER | | 
|  | 750 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 751 | .icache_bsize		= 32, | 
|  | 752 | .dcache_bsize		= 32, | 
|  | 753 | .num_pmcs		= 4, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 754 | .pmc_type		= PPC_PMC_G4, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 755 | .cpu_setup		= __setup_cpu_7400, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 756 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 757 | .platform		= "ppc7400", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 758 | }, | 
|  | 759 | {	/* 7400 */ | 
|  | 760 | .pvr_mask		= 0xffff0000, | 
|  | 761 | .pvr_value		= 0x000c0000, | 
|  | 762 | .cpu_name		= "7400", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 763 | .cpu_features		= CPU_FTRS_7400, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 764 | .cpu_user_features	= COMMON_USER | | 
|  | 765 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 766 | .icache_bsize		= 32, | 
|  | 767 | .dcache_bsize		= 32, | 
|  | 768 | .num_pmcs		= 4, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 769 | .pmc_type		= PPC_PMC_G4, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 770 | .cpu_setup		= __setup_cpu_7400, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 771 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 772 | .platform		= "ppc7400", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 773 | }, | 
|  | 774 | {	/* 7410 */ | 
|  | 775 | .pvr_mask		= 0xffff0000, | 
|  | 776 | .pvr_value		= 0x800c0000, | 
|  | 777 | .cpu_name		= "7410", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 778 | .cpu_features		= CPU_FTRS_7400, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 779 | .cpu_user_features	= COMMON_USER | | 
|  | 780 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 781 | .icache_bsize		= 32, | 
|  | 782 | .dcache_bsize		= 32, | 
|  | 783 | .num_pmcs		= 4, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 784 | .pmc_type		= PPC_PMC_G4, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 785 | .cpu_setup		= __setup_cpu_7410, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 786 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 787 | .platform		= "ppc7400", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 788 | }, | 
|  | 789 | {	/* 7450 2.0 - no doze/nap */ | 
|  | 790 | .pvr_mask		= 0xffffffff, | 
|  | 791 | .pvr_value		= 0x80000200, | 
|  | 792 | .cpu_name		= "7450", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 793 | .cpu_features		= CPU_FTRS_7450_20, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 794 | .cpu_user_features	= COMMON_USER | | 
|  | 795 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 796 | .icache_bsize		= 32, | 
|  | 797 | .dcache_bsize		= 32, | 
|  | 798 | .num_pmcs		= 6, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 799 | .pmc_type		= PPC_PMC_G4, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 800 | .cpu_setup		= __setup_cpu_745x, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 801 | .oprofile_cpu_type      = "ppc/7450", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 802 | .oprofile_type		= PPC_OPROFILE_G4, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 803 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 804 | .platform		= "ppc7450", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 805 | }, | 
|  | 806 | {	/* 7450 2.1 */ | 
|  | 807 | .pvr_mask		= 0xffffffff, | 
|  | 808 | .pvr_value		= 0x80000201, | 
|  | 809 | .cpu_name		= "7450", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 810 | .cpu_features		= CPU_FTRS_7450_21, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 811 | .cpu_user_features	= COMMON_USER | | 
|  | 812 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 813 | .icache_bsize		= 32, | 
|  | 814 | .dcache_bsize		= 32, | 
|  | 815 | .num_pmcs		= 6, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 816 | .pmc_type		= PPC_PMC_G4, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 817 | .cpu_setup		= __setup_cpu_745x, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 818 | .oprofile_cpu_type      = "ppc/7450", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 819 | .oprofile_type		= PPC_OPROFILE_G4, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 820 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 821 | .platform		= "ppc7450", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 822 | }, | 
|  | 823 | {	/* 7450 2.3 and newer */ | 
|  | 824 | .pvr_mask		= 0xffff0000, | 
|  | 825 | .pvr_value		= 0x80000000, | 
|  | 826 | .cpu_name		= "7450", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 827 | .cpu_features		= CPU_FTRS_7450_23, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 828 | .cpu_user_features	= COMMON_USER | | 
|  | 829 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 830 | .icache_bsize		= 32, | 
|  | 831 | .dcache_bsize		= 32, | 
|  | 832 | .num_pmcs		= 6, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 833 | .pmc_type		= PPC_PMC_G4, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 834 | .cpu_setup		= __setup_cpu_745x, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 835 | .oprofile_cpu_type      = "ppc/7450", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 836 | .oprofile_type		= PPC_OPROFILE_G4, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 837 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 838 | .platform		= "ppc7450", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 839 | }, | 
|  | 840 | {	/* 7455 rev 1.x */ | 
|  | 841 | .pvr_mask		= 0xffffff00, | 
|  | 842 | .pvr_value		= 0x80010100, | 
|  | 843 | .cpu_name		= "7455", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 844 | .cpu_features		= CPU_FTRS_7455_1, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 845 | .cpu_user_features	= COMMON_USER | | 
|  | 846 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 847 | .icache_bsize		= 32, | 
|  | 848 | .dcache_bsize		= 32, | 
|  | 849 | .num_pmcs		= 6, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 850 | .pmc_type		= PPC_PMC_G4, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 851 | .cpu_setup		= __setup_cpu_745x, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 852 | .oprofile_cpu_type      = "ppc/7450", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 853 | .oprofile_type		= PPC_OPROFILE_G4, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 854 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 855 | .platform		= "ppc7450", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 856 | }, | 
|  | 857 | {	/* 7455 rev 2.0 */ | 
|  | 858 | .pvr_mask		= 0xffffffff, | 
|  | 859 | .pvr_value		= 0x80010200, | 
|  | 860 | .cpu_name		= "7455", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 861 | .cpu_features		= CPU_FTRS_7455_20, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 862 | .cpu_user_features	= COMMON_USER | | 
|  | 863 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 864 | .icache_bsize		= 32, | 
|  | 865 | .dcache_bsize		= 32, | 
|  | 866 | .num_pmcs		= 6, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 867 | .pmc_type		= PPC_PMC_G4, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 868 | .cpu_setup		= __setup_cpu_745x, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 869 | .oprofile_cpu_type      = "ppc/7450", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 870 | .oprofile_type		= PPC_OPROFILE_G4, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 871 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 872 | .platform		= "ppc7450", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 873 | }, | 
|  | 874 | {	/* 7455 others */ | 
|  | 875 | .pvr_mask		= 0xffff0000, | 
|  | 876 | .pvr_value		= 0x80010000, | 
|  | 877 | .cpu_name		= "7455", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 878 | .cpu_features		= CPU_FTRS_7455, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 879 | .cpu_user_features	= COMMON_USER | | 
|  | 880 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 881 | .icache_bsize		= 32, | 
|  | 882 | .dcache_bsize		= 32, | 
|  | 883 | .num_pmcs		= 6, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 884 | .pmc_type		= PPC_PMC_G4, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 885 | .cpu_setup		= __setup_cpu_745x, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 886 | .oprofile_cpu_type      = "ppc/7450", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 887 | .oprofile_type		= PPC_OPROFILE_G4, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 888 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 889 | .platform		= "ppc7450", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 890 | }, | 
|  | 891 | {	/* 7447/7457 Rev 1.0 */ | 
|  | 892 | .pvr_mask		= 0xffffffff, | 
|  | 893 | .pvr_value		= 0x80020100, | 
|  | 894 | .cpu_name		= "7447/7457", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 895 | .cpu_features		= CPU_FTRS_7447_10, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 896 | .cpu_user_features	= COMMON_USER | | 
|  | 897 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 898 | .icache_bsize		= 32, | 
|  | 899 | .dcache_bsize		= 32, | 
|  | 900 | .num_pmcs		= 6, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 901 | .pmc_type		= PPC_PMC_G4, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 902 | .cpu_setup		= __setup_cpu_745x, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 903 | .oprofile_cpu_type      = "ppc/7450", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 904 | .oprofile_type		= PPC_OPROFILE_G4, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 905 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 906 | .platform		= "ppc7450", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 907 | }, | 
|  | 908 | {	/* 7447/7457 Rev 1.1 */ | 
|  | 909 | .pvr_mask		= 0xffffffff, | 
|  | 910 | .pvr_value		= 0x80020101, | 
|  | 911 | .cpu_name		= "7447/7457", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 912 | .cpu_features		= CPU_FTRS_7447_10, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 913 | .cpu_user_features	= COMMON_USER | | 
|  | 914 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 915 | .icache_bsize		= 32, | 
|  | 916 | .dcache_bsize		= 32, | 
|  | 917 | .num_pmcs		= 6, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 918 | .pmc_type		= PPC_PMC_G4, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 919 | .cpu_setup		= __setup_cpu_745x, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 920 | .oprofile_cpu_type      = "ppc/7450", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 921 | .oprofile_type		= PPC_OPROFILE_G4, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 922 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 923 | .platform		= "ppc7450", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 924 | }, | 
|  | 925 | {	/* 7447/7457 Rev 1.2 and later */ | 
|  | 926 | .pvr_mask		= 0xffff0000, | 
|  | 927 | .pvr_value		= 0x80020000, | 
|  | 928 | .cpu_name		= "7447/7457", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 929 | .cpu_features		= CPU_FTRS_7447, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 930 | .cpu_user_features	= COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 931 | .icache_bsize		= 32, | 
|  | 932 | .dcache_bsize		= 32, | 
|  | 933 | .num_pmcs		= 6, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 934 | .pmc_type		= PPC_PMC_G4, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 935 | .cpu_setup		= __setup_cpu_745x, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 936 | .oprofile_cpu_type      = "ppc/7450", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 937 | .oprofile_type		= PPC_OPROFILE_G4, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 938 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 939 | .platform		= "ppc7450", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 940 | }, | 
|  | 941 | {	/* 7447A */ | 
|  | 942 | .pvr_mask		= 0xffff0000, | 
|  | 943 | .pvr_value		= 0x80030000, | 
|  | 944 | .cpu_name		= "7447A", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 945 | .cpu_features		= CPU_FTRS_7447A, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 946 | .cpu_user_features	= COMMON_USER | | 
|  | 947 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 948 | .icache_bsize		= 32, | 
|  | 949 | .dcache_bsize		= 32, | 
|  | 950 | .num_pmcs		= 6, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 951 | .pmc_type		= PPC_PMC_G4, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 952 | .cpu_setup		= __setup_cpu_745x, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 953 | .oprofile_cpu_type      = "ppc/7450", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 954 | .oprofile_type		= PPC_OPROFILE_G4, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 955 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 956 | .platform		= "ppc7450", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 957 | }, | 
| Kumar Gala | bbde630 | 2005-09-03 15:55:55 -0700 | [diff] [blame] | 958 | {	/* 7448 */ | 
|  | 959 | .pvr_mask		= 0xffff0000, | 
|  | 960 | .pvr_value		= 0x80040000, | 
|  | 961 | .cpu_name		= "7448", | 
| James.Yang | 3d37254 | 2007-05-02 16:34:43 -0500 | [diff] [blame] | 962 | .cpu_features		= CPU_FTRS_7448, | 
| Paul Mackerras | fab5db9 | 2006-06-07 16:14:40 +1000 | [diff] [blame] | 963 | .cpu_user_features	= COMMON_USER | | 
|  | 964 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | 
| Kumar Gala | bbde630 | 2005-09-03 15:55:55 -0700 | [diff] [blame] | 965 | .icache_bsize		= 32, | 
|  | 966 | .dcache_bsize		= 32, | 
|  | 967 | .num_pmcs		= 6, | 
| Benjamin Herrenschmidt | b950bdd | 2008-08-18 14:23:51 +1000 | [diff] [blame] | 968 | .pmc_type		= PPC_PMC_G4, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 969 | .cpu_setup		= __setup_cpu_745x, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 970 | .oprofile_cpu_type      = "ppc/7450", | 
| Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 971 | .oprofile_type		= PPC_OPROFILE_G4, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 972 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 973 | .platform		= "ppc7450", | 
| Kumar Gala | bbde630 | 2005-09-03 15:55:55 -0700 | [diff] [blame] | 974 | }, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 975 | {	/* 82xx (8240, 8245, 8260 are all 603e cores) */ | 
|  | 976 | .pvr_mask		= 0x7fff0000, | 
|  | 977 | .pvr_value		= 0x00810000, | 
|  | 978 | .cpu_name		= "82xx", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 979 | .cpu_features		= CPU_FTRS_82XX, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 980 | .cpu_user_features	= COMMON_USER, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 981 | .icache_bsize		= 32, | 
|  | 982 | .dcache_bsize		= 32, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 983 | .cpu_setup		= __setup_cpu_603, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 984 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 985 | .platform		= "ppc603", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 986 | }, | 
|  | 987 | {	/* All G2_LE (603e core, plus some) have the same pvr */ | 
|  | 988 | .pvr_mask		= 0x7fff0000, | 
|  | 989 | .pvr_value		= 0x00820000, | 
|  | 990 | .cpu_name		= "G2_LE", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 991 | .cpu_features		= CPU_FTRS_G2_LE, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 992 | .cpu_user_features	= COMMON_USER, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 993 | .icache_bsize		= 32, | 
|  | 994 | .dcache_bsize		= 32, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 995 | .cpu_setup		= __setup_cpu_603, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 996 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 997 | .platform		= "ppc603", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 998 | }, | 
| Kim Phillips | 6c4a250 | 2006-10-02 20:10:24 -0500 | [diff] [blame] | 999 | {	/* e300c1 (a 603e core, plus some) on 83xx */ | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1000 | .pvr_mask		= 0x7fff0000, | 
|  | 1001 | .pvr_value		= 0x00830000, | 
| Kim Phillips | 6c4a250 | 2006-10-02 20:10:24 -0500 | [diff] [blame] | 1002 | .cpu_name		= "e300c1", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1003 | .cpu_features		= CPU_FTRS_E300, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 1004 | .cpu_user_features	= COMMON_USER, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1005 | .icache_bsize		= 32, | 
|  | 1006 | .dcache_bsize		= 32, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1007 | .cpu_setup		= __setup_cpu_603, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1008 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1009 | .platform		= "ppc603", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1010 | }, | 
| Kim Phillips | 6c4a250 | 2006-10-02 20:10:24 -0500 | [diff] [blame] | 1011 | {	/* e300c2 (an e300c1 core, plus some, minus FPU) on 83xx */ | 
|  | 1012 | .pvr_mask		= 0x7fff0000, | 
|  | 1013 | .pvr_value		= 0x00840000, | 
|  | 1014 | .cpu_name		= "e300c2", | 
| Kim Phillips | aa42c69 | 2006-12-08 02:43:30 -0600 | [diff] [blame] | 1015 | .cpu_features		= CPU_FTRS_E300C2, | 
| Kim Phillips | 6c4a250 | 2006-10-02 20:10:24 -0500 | [diff] [blame] | 1016 | .cpu_user_features	= PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, | 
|  | 1017 | .icache_bsize		= 32, | 
|  | 1018 | .dcache_bsize		= 32, | 
|  | 1019 | .cpu_setup		= __setup_cpu_603, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1020 | .machine_check		= machine_check_generic, | 
| Kim Phillips | 6c4a250 | 2006-10-02 20:10:24 -0500 | [diff] [blame] | 1021 | .platform		= "ppc603", | 
|  | 1022 | }, | 
| Li Yang | a58d524 | 2007-10-19 19:38:42 +0800 | [diff] [blame] | 1023 | {	/* e300c3 (e300c1, plus one IU, half cache size) on 83xx */ | 
| Scott Wood | 57933f8 | 2006-12-01 12:57:05 -0600 | [diff] [blame] | 1024 | .pvr_mask		= 0x7fff0000, | 
|  | 1025 | .pvr_value		= 0x00850000, | 
|  | 1026 | .cpu_name		= "e300c3", | 
|  | 1027 | .cpu_features		= CPU_FTRS_E300, | 
|  | 1028 | .cpu_user_features	= COMMON_USER, | 
|  | 1029 | .icache_bsize		= 32, | 
|  | 1030 | .dcache_bsize		= 32, | 
|  | 1031 | .cpu_setup		= __setup_cpu_603, | 
| Andy Fleming | 1347a2c | 2008-02-04 18:28:07 -0600 | [diff] [blame] | 1032 | .num_pmcs		= 4, | 
|  | 1033 | .oprofile_cpu_type	= "ppc/e300", | 
|  | 1034 | .oprofile_type		= PPC_OPROFILE_FSL_EMB, | 
| Scott Wood | 57933f8 | 2006-12-01 12:57:05 -0600 | [diff] [blame] | 1035 | .platform		= "ppc603", | 
|  | 1036 | }, | 
| Li Yang | a58d524 | 2007-10-19 19:38:42 +0800 | [diff] [blame] | 1037 | {	/* e300c4 (e300c1, plus one IU) */ | 
|  | 1038 | .pvr_mask		= 0x7fff0000, | 
|  | 1039 | .pvr_value		= 0x00860000, | 
|  | 1040 | .cpu_name		= "e300c4", | 
|  | 1041 | .cpu_features		= CPU_FTRS_E300, | 
|  | 1042 | .cpu_user_features	= COMMON_USER, | 
|  | 1043 | .icache_bsize		= 32, | 
|  | 1044 | .dcache_bsize		= 32, | 
|  | 1045 | .cpu_setup		= __setup_cpu_603, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1046 | .machine_check		= machine_check_generic, | 
| Andy Fleming | 1347a2c | 2008-02-04 18:28:07 -0600 | [diff] [blame] | 1047 | .num_pmcs		= 4, | 
|  | 1048 | .oprofile_cpu_type	= "ppc/e300", | 
|  | 1049 | .oprofile_type		= PPC_OPROFILE_FSL_EMB, | 
| Li Yang | a58d524 | 2007-10-19 19:38:42 +0800 | [diff] [blame] | 1050 | .platform		= "ppc603", | 
|  | 1051 | }, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1052 | {	/* default match, we assume split I/D cache & TB (non-601)... */ | 
|  | 1053 | .pvr_mask		= 0x00000000, | 
|  | 1054 | .pvr_value		= 0x00000000, | 
|  | 1055 | .cpu_name		= "(generic PPC)", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1056 | .cpu_features		= CPU_FTRS_CLASSIC32, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 1057 | .cpu_user_features	= COMMON_USER, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1058 | .icache_bsize		= 32, | 
|  | 1059 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1060 | .machine_check		= machine_check_generic, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1061 | .platform		= "ppc603", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1062 | }, | 
|  | 1063 | #endif /* CLASSIC_PPC */ | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1064 | #ifdef CONFIG_8xx | 
|  | 1065 | {	/* 8xx */ | 
|  | 1066 | .pvr_mask		= 0xffff0000, | 
|  | 1067 | .pvr_value		= 0x00500000, | 
|  | 1068 | .cpu_name		= "8xx", | 
|  | 1069 | /* CPU_FTR_MAYBE_CAN_DOZE is possible, | 
|  | 1070 | * if the 8xx code is there.... */ | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1071 | .cpu_features		= CPU_FTRS_8XX, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1072 | .cpu_user_features	= PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, | 
|  | 1073 | .icache_bsize		= 16, | 
|  | 1074 | .dcache_bsize		= 16, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1075 | .platform		= "ppc823", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1076 | }, | 
|  | 1077 | #endif /* CONFIG_8xx */ | 
|  | 1078 | #ifdef CONFIG_40x | 
|  | 1079 | {	/* 403GC */ | 
|  | 1080 | .pvr_mask		= 0xffffff00, | 
|  | 1081 | .pvr_value		= 0x00200200, | 
|  | 1082 | .cpu_name		= "403GC", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1083 | .cpu_features		= CPU_FTRS_40X, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1084 | .cpu_user_features	= PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, | 
|  | 1085 | .icache_bsize		= 16, | 
|  | 1086 | .dcache_bsize		= 16, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1087 | .machine_check		= machine_check_4xx, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1088 | .platform		= "ppc403", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1089 | }, | 
|  | 1090 | {	/* 403GCX */ | 
|  | 1091 | .pvr_mask		= 0xffffff00, | 
|  | 1092 | .pvr_value		= 0x00201400, | 
|  | 1093 | .cpu_name		= "403GCX", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1094 | .cpu_features		= CPU_FTRS_40X, | 
| Paul Mackerras | 9859901 | 2005-10-22 16:51:34 +1000 | [diff] [blame] | 1095 | .cpu_user_features	= PPC_FEATURE_32 | | 
|  | 1096 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1097 | .icache_bsize		= 16, | 
|  | 1098 | .dcache_bsize		= 16, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1099 | .machine_check		= machine_check_4xx, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1100 | .platform		= "ppc403", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1101 | }, | 
|  | 1102 | {	/* 403G ?? */ | 
|  | 1103 | .pvr_mask		= 0xffff0000, | 
|  | 1104 | .pvr_value		= 0x00200000, | 
|  | 1105 | .cpu_name		= "403G ??", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1106 | .cpu_features		= CPU_FTRS_40X, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1107 | .cpu_user_features	= PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, | 
|  | 1108 | .icache_bsize		= 16, | 
|  | 1109 | .dcache_bsize		= 16, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1110 | .machine_check		= machine_check_4xx, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1111 | .platform		= "ppc403", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1112 | }, | 
|  | 1113 | {	/* 405GP */ | 
|  | 1114 | .pvr_mask		= 0xffff0000, | 
|  | 1115 | .pvr_value		= 0x40110000, | 
|  | 1116 | .cpu_name		= "405GP", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1117 | .cpu_features		= CPU_FTRS_40X, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1118 | .cpu_user_features	= PPC_FEATURE_32 | | 
|  | 1119 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | 
|  | 1120 | .icache_bsize		= 32, | 
|  | 1121 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1122 | .machine_check		= machine_check_4xx, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1123 | .platform		= "ppc405", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1124 | }, | 
|  | 1125 | {	/* STB 03xxx */ | 
|  | 1126 | .pvr_mask		= 0xffff0000, | 
|  | 1127 | .pvr_value		= 0x40130000, | 
|  | 1128 | .cpu_name		= "STB03xxx", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1129 | .cpu_features		= CPU_FTRS_40X, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1130 | .cpu_user_features	= PPC_FEATURE_32 | | 
|  | 1131 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | 
|  | 1132 | .icache_bsize		= 32, | 
|  | 1133 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1134 | .machine_check		= machine_check_4xx, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1135 | .platform		= "ppc405", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1136 | }, | 
|  | 1137 | {	/* STB 04xxx */ | 
|  | 1138 | .pvr_mask		= 0xffff0000, | 
|  | 1139 | .pvr_value		= 0x41810000, | 
|  | 1140 | .cpu_name		= "STB04xxx", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1141 | .cpu_features		= CPU_FTRS_40X, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1142 | .cpu_user_features	= PPC_FEATURE_32 | | 
|  | 1143 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | 
|  | 1144 | .icache_bsize		= 32, | 
|  | 1145 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1146 | .machine_check		= machine_check_4xx, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1147 | .platform		= "ppc405", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1148 | }, | 
|  | 1149 | {	/* NP405L */ | 
|  | 1150 | .pvr_mask		= 0xffff0000, | 
|  | 1151 | .pvr_value		= 0x41610000, | 
|  | 1152 | .cpu_name		= "NP405L", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1153 | .cpu_features		= CPU_FTRS_40X, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1154 | .cpu_user_features	= PPC_FEATURE_32 | | 
|  | 1155 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | 
|  | 1156 | .icache_bsize		= 32, | 
|  | 1157 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1158 | .machine_check		= machine_check_4xx, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1159 | .platform		= "ppc405", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1160 | }, | 
|  | 1161 | {	/* NP4GS3 */ | 
|  | 1162 | .pvr_mask		= 0xffff0000, | 
|  | 1163 | .pvr_value		= 0x40B10000, | 
|  | 1164 | .cpu_name		= "NP4GS3", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1165 | .cpu_features		= CPU_FTRS_40X, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1166 | .cpu_user_features	= PPC_FEATURE_32 | | 
|  | 1167 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | 
|  | 1168 | .icache_bsize		= 32, | 
|  | 1169 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1170 | .machine_check		= machine_check_4xx, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1171 | .platform		= "ppc405", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1172 | }, | 
|  | 1173 | {   /* NP405H */ | 
|  | 1174 | .pvr_mask		= 0xffff0000, | 
|  | 1175 | .pvr_value		= 0x41410000, | 
|  | 1176 | .cpu_name		= "NP405H", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1177 | .cpu_features		= CPU_FTRS_40X, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1178 | .cpu_user_features	= PPC_FEATURE_32 | | 
|  | 1179 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | 
|  | 1180 | .icache_bsize		= 32, | 
|  | 1181 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1182 | .machine_check		= machine_check_4xx, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1183 | .platform		= "ppc405", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1184 | }, | 
|  | 1185 | {	/* 405GPr */ | 
|  | 1186 | .pvr_mask		= 0xffff0000, | 
|  | 1187 | .pvr_value		= 0x50910000, | 
|  | 1188 | .cpu_name		= "405GPr", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1189 | .cpu_features		= CPU_FTRS_40X, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1190 | .cpu_user_features	= PPC_FEATURE_32 | | 
|  | 1191 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | 
|  | 1192 | .icache_bsize		= 32, | 
|  | 1193 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1194 | .machine_check		= machine_check_4xx, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1195 | .platform		= "ppc405", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1196 | }, | 
|  | 1197 | {   /* STBx25xx */ | 
|  | 1198 | .pvr_mask		= 0xffff0000, | 
|  | 1199 | .pvr_value		= 0x51510000, | 
|  | 1200 | .cpu_name		= "STBx25xx", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1201 | .cpu_features		= CPU_FTRS_40X, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1202 | .cpu_user_features	= PPC_FEATURE_32 | | 
|  | 1203 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | 
|  | 1204 | .icache_bsize		= 32, | 
|  | 1205 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1206 | .machine_check		= machine_check_4xx, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1207 | .platform		= "ppc405", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1208 | }, | 
|  | 1209 | {	/* 405LP */ | 
|  | 1210 | .pvr_mask		= 0xffff0000, | 
|  | 1211 | .pvr_value		= 0x41F10000, | 
|  | 1212 | .cpu_name		= "405LP", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1213 | .cpu_features		= CPU_FTRS_40X, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1214 | .cpu_user_features	= PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, | 
|  | 1215 | .icache_bsize		= 32, | 
|  | 1216 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1217 | .machine_check		= machine_check_4xx, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1218 | .platform		= "ppc405", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1219 | }, | 
|  | 1220 | {	/* Xilinx Virtex-II Pro  */ | 
| Grant C. Likely | 72646c7 | 2006-01-19 01:13:20 -0700 | [diff] [blame] | 1221 | .pvr_mask		= 0xfffff000, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1222 | .pvr_value		= 0x20010000, | 
|  | 1223 | .cpu_name		= "Virtex-II Pro", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1224 | .cpu_features		= CPU_FTRS_40X, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1225 | .cpu_user_features	= PPC_FEATURE_32 | | 
|  | 1226 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | 
|  | 1227 | .icache_bsize		= 32, | 
|  | 1228 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1229 | .machine_check		= machine_check_4xx, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1230 | .platform		= "ppc405", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1231 | }, | 
| Grant C. Likely | 72646c7 | 2006-01-19 01:13:20 -0700 | [diff] [blame] | 1232 | {	/* Xilinx Virtex-4 FX */ | 
|  | 1233 | .pvr_mask		= 0xfffff000, | 
|  | 1234 | .pvr_value		= 0x20011000, | 
|  | 1235 | .cpu_name		= "Virtex-4 FX", | 
|  | 1236 | .cpu_features		= CPU_FTRS_40X, | 
|  | 1237 | .cpu_user_features	= PPC_FEATURE_32 | | 
|  | 1238 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | 
|  | 1239 | .icache_bsize		= 32, | 
|  | 1240 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1241 | .machine_check		= machine_check_4xx, | 
| Peter Bergner | 838fdb4 | 2006-09-14 14:18:38 -0500 | [diff] [blame] | 1242 | .platform		= "ppc405", | 
| Grant C. Likely | 72646c7 | 2006-01-19 01:13:20 -0700 | [diff] [blame] | 1243 | }, | 
| Eugene Surovegin | ad95d60 | 2005-06-07 13:22:09 -0700 | [diff] [blame] | 1244 | {	/* 405EP */ | 
|  | 1245 | .pvr_mask		= 0xffff0000, | 
|  | 1246 | .pvr_value		= 0x51210000, | 
|  | 1247 | .cpu_name		= "405EP", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1248 | .cpu_features		= CPU_FTRS_40X, | 
| Eugene Surovegin | ad95d60 | 2005-06-07 13:22:09 -0700 | [diff] [blame] | 1249 | .cpu_user_features	= PPC_FEATURE_32 | | 
|  | 1250 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | 
|  | 1251 | .icache_bsize		= 32, | 
|  | 1252 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1253 | .machine_check		= machine_check_4xx, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1254 | .platform		= "ppc405", | 
| Eugene Surovegin | ad95d60 | 2005-06-07 13:22:09 -0700 | [diff] [blame] | 1255 | }, | 
| Stefan Roese | 5d8476c | 2007-10-11 22:08:14 +1000 | [diff] [blame] | 1256 | {	/* 405EX */ | 
| Stefan Roese | b676d84 | 2008-01-15 18:09:15 +1100 | [diff] [blame] | 1257 | .pvr_mask		= 0xffff0004, | 
|  | 1258 | .pvr_value		= 0x12910004, | 
| Stefan Roese | 5d8476c | 2007-10-11 22:08:14 +1000 | [diff] [blame] | 1259 | .cpu_name		= "405EX", | 
|  | 1260 | .cpu_features		= CPU_FTRS_40X, | 
|  | 1261 | .cpu_user_features	= PPC_FEATURE_32 | | 
|  | 1262 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | 
|  | 1263 | .icache_bsize		= 32, | 
|  | 1264 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1265 | .machine_check		= machine_check_4xx, | 
| Stefan Roese | 5d8476c | 2007-10-11 22:08:14 +1000 | [diff] [blame] | 1266 | .platform		= "ppc405", | 
|  | 1267 | }, | 
| Stefan Roese | b676d84 | 2008-01-15 18:09:15 +1100 | [diff] [blame] | 1268 | {	/* 405EXr */ | 
|  | 1269 | .pvr_mask		= 0xffff0004, | 
|  | 1270 | .pvr_value		= 0x12910000, | 
|  | 1271 | .cpu_name		= "405EXr", | 
|  | 1272 | .cpu_features		= CPU_FTRS_40X, | 
|  | 1273 | .cpu_user_features	= PPC_FEATURE_32 | | 
|  | 1274 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | 
|  | 1275 | .icache_bsize		= 32, | 
|  | 1276 | .dcache_bsize		= 32, | 
|  | 1277 | .machine_check		= machine_check_4xx, | 
|  | 1278 | .platform		= "ppc405", | 
|  | 1279 | }, | 
| Josh Boyer | df8f71f | 2008-10-09 08:56:38 -0400 | [diff] [blame] | 1280 | { | 
|  | 1281 | /* 405EZ */ | 
|  | 1282 | .pvr_mask		= 0xffff0000, | 
|  | 1283 | .pvr_value		= 0x41510000, | 
|  | 1284 | .cpu_name		= "405EZ", | 
|  | 1285 | .cpu_features		= CPU_FTRS_40X, | 
|  | 1286 | .cpu_user_features	= PPC_FEATURE_32 | | 
|  | 1287 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | 
|  | 1288 | .icache_bsize		= 32, | 
|  | 1289 | .dcache_bsize		= 32, | 
|  | 1290 | .machine_check		= machine_check_4xx, | 
|  | 1291 | .platform		= "ppc405", | 
|  | 1292 | }, | 
| Benjamin Herrenschmidt | 76bc080e | 2008-05-05 15:22:27 +1000 | [diff] [blame] | 1293 | {	/* default match */ | 
|  | 1294 | .pvr_mask		= 0x00000000, | 
|  | 1295 | .pvr_value		= 0x00000000, | 
|  | 1296 | .cpu_name		= "(generic 40x PPC)", | 
|  | 1297 | .cpu_features		= CPU_FTRS_40X, | 
|  | 1298 | .cpu_user_features	= PPC_FEATURE_32 | | 
|  | 1299 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | 
|  | 1300 | .icache_bsize		= 32, | 
|  | 1301 | .dcache_bsize		= 32, | 
|  | 1302 | .machine_check		= machine_check_4xx, | 
|  | 1303 | .platform		= "ppc405", | 
|  | 1304 | } | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1305 |  | 
|  | 1306 | #endif /* CONFIG_40x */ | 
|  | 1307 | #ifdef CONFIG_44x | 
| Matt Porter | c9cf73a | 2005-07-31 22:34:52 -0700 | [diff] [blame] | 1308 | { | 
|  | 1309 | .pvr_mask		= 0xf0000fff, | 
|  | 1310 | .pvr_value		= 0x40000850, | 
| Valentine Barshak | d1dfc35 | 2007-10-26 04:16:40 +1000 | [diff] [blame] | 1311 | .cpu_name		= "440GR Rev. A", | 
|  | 1312 | .cpu_features		= CPU_FTRS_44X, | 
|  | 1313 | .cpu_user_features	= COMMON_USER_BOOKE, | 
|  | 1314 | .icache_bsize		= 32, | 
|  | 1315 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1316 | .machine_check		= machine_check_4xx, | 
| Valentine Barshak | d1dfc35 | 2007-10-26 04:16:40 +1000 | [diff] [blame] | 1317 | .platform		= "ppc440", | 
|  | 1318 | }, | 
|  | 1319 | { /* Use logical PVR for 440EP (logical pvr = pvr | 0x8) */ | 
|  | 1320 | .pvr_mask		= 0xf0000fff, | 
|  | 1321 | .pvr_value		= 0x40000858, | 
| Matt Porter | c9cf73a | 2005-07-31 22:34:52 -0700 | [diff] [blame] | 1322 | .cpu_name		= "440EP Rev. A", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1323 | .cpu_features		= CPU_FTRS_44X, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1324 | .cpu_user_features	= COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, | 
| Matt Porter | c9cf73a | 2005-07-31 22:34:52 -0700 | [diff] [blame] | 1325 | .icache_bsize		= 32, | 
|  | 1326 | .dcache_bsize		= 32, | 
| Valentine Barshak | 8112753 | 2007-09-22 00:46:57 +1000 | [diff] [blame] | 1327 | .cpu_setup		= __setup_cpu_440ep, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1328 | .machine_check		= machine_check_4xx, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1329 | .platform		= "ppc440", | 
| Matt Porter | c9cf73a | 2005-07-31 22:34:52 -0700 | [diff] [blame] | 1330 | }, | 
|  | 1331 | { | 
|  | 1332 | .pvr_mask		= 0xf0000fff, | 
|  | 1333 | .pvr_value		= 0x400008d3, | 
| Valentine Barshak | d1dfc35 | 2007-10-26 04:16:40 +1000 | [diff] [blame] | 1334 | .cpu_name		= "440GR Rev. B", | 
|  | 1335 | .cpu_features		= CPU_FTRS_44X, | 
|  | 1336 | .cpu_user_features	= COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, | 
|  | 1337 | .icache_bsize		= 32, | 
|  | 1338 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1339 | .machine_check		= machine_check_4xx, | 
| Valentine Barshak | d1dfc35 | 2007-10-26 04:16:40 +1000 | [diff] [blame] | 1340 | .platform		= "ppc440", | 
|  | 1341 | }, | 
| Sean MacLennan | 3f8fc3e | 2008-01-10 07:25:58 +1100 | [diff] [blame] | 1342 | { /* Matches both physical and logical PVR for 440EP (logical pvr = pvr | 0x8) */ | 
|  | 1343 | .pvr_mask		= 0xf0000ff7, | 
|  | 1344 | .pvr_value		= 0x400008d4, | 
|  | 1345 | .cpu_name		= "440EP Rev. C", | 
|  | 1346 | .cpu_features		= CPU_FTRS_44X, | 
|  | 1347 | .cpu_user_features	= COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, | 
|  | 1348 | .icache_bsize		= 32, | 
|  | 1349 | .dcache_bsize		= 32, | 
|  | 1350 | .cpu_setup		= __setup_cpu_440ep, | 
|  | 1351 | .machine_check		= machine_check_4xx, | 
|  | 1352 | .platform		= "ppc440", | 
|  | 1353 | }, | 
| Valentine Barshak | d1dfc35 | 2007-10-26 04:16:40 +1000 | [diff] [blame] | 1354 | { /* Use logical PVR for 440EP (logical pvr = pvr | 0x8) */ | 
|  | 1355 | .pvr_mask		= 0xf0000fff, | 
|  | 1356 | .pvr_value		= 0x400008db, | 
| Matt Porter | c9cf73a | 2005-07-31 22:34:52 -0700 | [diff] [blame] | 1357 | .cpu_name		= "440EP Rev. B", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1358 | .cpu_features		= CPU_FTRS_44X, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1359 | .cpu_user_features	= COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, | 
| Matt Porter | c9cf73a | 2005-07-31 22:34:52 -0700 | [diff] [blame] | 1360 | .icache_bsize		= 32, | 
|  | 1361 | .dcache_bsize		= 32, | 
| Valentine Barshak | 8112753 | 2007-09-22 00:46:57 +1000 | [diff] [blame] | 1362 | .cpu_setup		= __setup_cpu_440ep, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1363 | .machine_check		= machine_check_4xx, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1364 | .platform		= "ppc440", | 
| Matt Porter | c9cf73a | 2005-07-31 22:34:52 -0700 | [diff] [blame] | 1365 | }, | 
| Valentine Barshak | 15fc993 | 2007-08-29 17:40:30 +0400 | [diff] [blame] | 1366 | { /* 440GRX */ | 
|  | 1367 | .pvr_mask		= 0xf0000ffb, | 
| Valentine Barshak | d1dfc35 | 2007-10-26 04:16:40 +1000 | [diff] [blame] | 1368 | .pvr_value		= 0x200008D0, | 
| Valentine Barshak | 15fc993 | 2007-08-29 17:40:30 +0400 | [diff] [blame] | 1369 | .cpu_name		= "440GRX", | 
|  | 1370 | .cpu_features		= CPU_FTRS_44X, | 
|  | 1371 | .cpu_user_features	= COMMON_USER_BOOKE, | 
|  | 1372 | .icache_bsize		= 32, | 
|  | 1373 | .dcache_bsize		= 32, | 
| Valentine Barshak | 340ffd2 | 2007-09-22 00:50:09 +1000 | [diff] [blame] | 1374 | .cpu_setup		= __setup_cpu_440grx, | 
| Valentine Barshak | b2be3b1 | 2007-12-22 03:22:23 +1100 | [diff] [blame] | 1375 | .machine_check		= machine_check_440A, | 
| Valentine Barshak | 340ffd2 | 2007-09-22 00:50:09 +1000 | [diff] [blame] | 1376 | .platform		= "ppc440", | 
| Valentine Barshak | 15fc993 | 2007-08-29 17:40:30 +0400 | [diff] [blame] | 1377 | }, | 
| Valentine Barshak | d1dfc35 | 2007-10-26 04:16:40 +1000 | [diff] [blame] | 1378 | { /* Use logical PVR for 440EPx (logical pvr = pvr | 0x8) */ | 
|  | 1379 | .pvr_mask		= 0xf0000ffb, | 
|  | 1380 | .pvr_value		= 0x200008D8, | 
|  | 1381 | .cpu_name		= "440EPX", | 
|  | 1382 | .cpu_features		= CPU_FTRS_44X, | 
|  | 1383 | .cpu_user_features	= COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, | 
|  | 1384 | .icache_bsize		= 32, | 
|  | 1385 | .dcache_bsize		= 32, | 
|  | 1386 | .cpu_setup		= __setup_cpu_440epx, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1387 | .machine_check		= machine_check_440A, | 
| Valentine Barshak | d1dfc35 | 2007-10-26 04:16:40 +1000 | [diff] [blame] | 1388 | .platform		= "ppc440", | 
|  | 1389 | }, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 1390 | {	/* 440GP Rev. B */ | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1391 | .pvr_mask		= 0xf0000fff, | 
|  | 1392 | .pvr_value		= 0x40000440, | 
|  | 1393 | .cpu_name		= "440GP Rev. B", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1394 | .cpu_features		= CPU_FTRS_44X, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1395 | .cpu_user_features	= COMMON_USER_BOOKE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1396 | .icache_bsize		= 32, | 
|  | 1397 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1398 | .machine_check		= machine_check_4xx, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1399 | .platform		= "ppc440gp", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1400 | }, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 1401 | {	/* 440GP Rev. C */ | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1402 | .pvr_mask		= 0xf0000fff, | 
|  | 1403 | .pvr_value		= 0x40000481, | 
|  | 1404 | .cpu_name		= "440GP Rev. C", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1405 | .cpu_features		= CPU_FTRS_44X, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1406 | .cpu_user_features	= COMMON_USER_BOOKE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1407 | .icache_bsize		= 32, | 
|  | 1408 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1409 | .machine_check		= machine_check_4xx, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1410 | .platform		= "ppc440gp", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1411 | }, | 
|  | 1412 | { /* 440GX Rev. A */ | 
|  | 1413 | .pvr_mask		= 0xf0000fff, | 
|  | 1414 | .pvr_value		= 0x50000850, | 
|  | 1415 | .cpu_name		= "440GX Rev. A", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1416 | .cpu_features		= CPU_FTRS_44X, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1417 | .cpu_user_features	= COMMON_USER_BOOKE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1418 | .icache_bsize		= 32, | 
|  | 1419 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1420 | .cpu_setup		= __setup_cpu_440gx, | 
|  | 1421 | .machine_check		= machine_check_440A, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1422 | .platform		= "ppc440", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1423 | }, | 
|  | 1424 | { /* 440GX Rev. B */ | 
|  | 1425 | .pvr_mask		= 0xf0000fff, | 
|  | 1426 | .pvr_value		= 0x50000851, | 
|  | 1427 | .cpu_name		= "440GX Rev. B", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1428 | .cpu_features		= CPU_FTRS_44X, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1429 | .cpu_user_features	= COMMON_USER_BOOKE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1430 | .icache_bsize		= 32, | 
|  | 1431 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1432 | .cpu_setup		= __setup_cpu_440gx, | 
|  | 1433 | .machine_check		= machine_check_440A, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1434 | .platform		= "ppc440", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1435 | }, | 
|  | 1436 | { /* 440GX Rev. C */ | 
|  | 1437 | .pvr_mask		= 0xf0000fff, | 
|  | 1438 | .pvr_value		= 0x50000892, | 
|  | 1439 | .cpu_name		= "440GX Rev. C", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1440 | .cpu_features		= CPU_FTRS_44X, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1441 | .cpu_user_features	= COMMON_USER_BOOKE, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1442 | .icache_bsize		= 32, | 
|  | 1443 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1444 | .cpu_setup		= __setup_cpu_440gx, | 
|  | 1445 | .machine_check		= machine_check_440A, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1446 | .platform		= "ppc440", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1447 | }, | 
| Eugene Surovegin | 9149fb3 | 2005-09-03 15:55:40 -0700 | [diff] [blame] | 1448 | { /* 440GX Rev. F */ | 
|  | 1449 | .pvr_mask		= 0xf0000fff, | 
|  | 1450 | .pvr_value		= 0x50000894, | 
|  | 1451 | .cpu_name		= "440GX Rev. F", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1452 | .cpu_features		= CPU_FTRS_44X, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1453 | .cpu_user_features	= COMMON_USER_BOOKE, | 
| Eugene Surovegin | 9149fb3 | 2005-09-03 15:55:40 -0700 | [diff] [blame] | 1454 | .icache_bsize		= 32, | 
|  | 1455 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1456 | .cpu_setup		= __setup_cpu_440gx, | 
|  | 1457 | .machine_check		= machine_check_440A, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1458 | .platform		= "ppc440", | 
| Eugene Surovegin | 9149fb3 | 2005-09-03 15:55:40 -0700 | [diff] [blame] | 1459 | }, | 
| Matt Porter | 656de7e | 2005-09-03 15:55:42 -0700 | [diff] [blame] | 1460 | { /* 440SP Rev. A */ | 
| Roland Dreier | 333e615 | 2007-06-16 05:36:32 +1000 | [diff] [blame] | 1461 | .pvr_mask		= 0xfff00fff, | 
|  | 1462 | .pvr_value		= 0x53200891, | 
| Matt Porter | 656de7e | 2005-09-03 15:55:42 -0700 | [diff] [blame] | 1463 | .cpu_name		= "440SP Rev. A", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1464 | .cpu_features		= CPU_FTRS_44X, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1465 | .cpu_user_features	= COMMON_USER_BOOKE, | 
| Matt Porter | 656de7e | 2005-09-03 15:55:42 -0700 | [diff] [blame] | 1466 | .icache_bsize		= 32, | 
|  | 1467 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1468 | .machine_check		= machine_check_4xx, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1469 | .platform		= "ppc440", | 
| Matt Porter | 656de7e | 2005-09-03 15:55:42 -0700 | [diff] [blame] | 1470 | }, | 
| Roland Dreier | b0f7b8b | 2005-11-07 00:58:13 -0800 | [diff] [blame] | 1471 | { /* 440SPe Rev. A */ | 
| Roland Dreier | 333e615 | 2007-06-16 05:36:32 +1000 | [diff] [blame] | 1472 | .pvr_mask               = 0xfff00fff, | 
|  | 1473 | .pvr_value              = 0x53400890, | 
|  | 1474 | .cpu_name               = "440SPe Rev. A", | 
|  | 1475 | .cpu_features		= CPU_FTRS_44X, | 
|  | 1476 | .cpu_user_features      = COMMON_USER_BOOKE, | 
|  | 1477 | .icache_bsize           = 32, | 
|  | 1478 | .dcache_bsize           = 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1479 | .cpu_setup		= __setup_cpu_440spe, | 
|  | 1480 | .machine_check		= machine_check_440A, | 
| Roland Dreier | 333e615 | 2007-06-16 05:36:32 +1000 | [diff] [blame] | 1481 | .platform               = "ppc440", | 
|  | 1482 | }, | 
|  | 1483 | { /* 440SPe Rev. B */ | 
|  | 1484 | .pvr_mask		= 0xfff00fff, | 
|  | 1485 | .pvr_value		= 0x53400891, | 
|  | 1486 | .cpu_name		= "440SPe Rev. B", | 
| Kumar Gala | a147c58 | 2006-12-08 02:34:38 -0600 | [diff] [blame] | 1487 | .cpu_features		= CPU_FTRS_44X, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1488 | .cpu_user_features	= COMMON_USER_BOOKE, | 
| Roland Dreier | b0f7b8b | 2005-11-07 00:58:13 -0800 | [diff] [blame] | 1489 | .icache_bsize		= 32, | 
|  | 1490 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1491 | .cpu_setup		= __setup_cpu_440spe, | 
|  | 1492 | .machine_check		= machine_check_440A, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1493 | .platform		= "ppc440", | 
| Roland Dreier | b0f7b8b | 2005-11-07 00:58:13 -0800 | [diff] [blame] | 1494 | }, | 
| John Linn | 23e7237 | 2008-07-01 09:42:07 -0700 | [diff] [blame] | 1495 | { /* 440 in Xilinx Virtex-5 FXT */ | 
|  | 1496 | .pvr_mask		= 0xfffffff0, | 
|  | 1497 | .pvr_value		= 0x7ff21910, | 
|  | 1498 | .cpu_name		= "440 in Virtex-5 FXT", | 
|  | 1499 | .cpu_features		= CPU_FTRS_44X, | 
|  | 1500 | .cpu_user_features	= COMMON_USER_BOOKE, | 
|  | 1501 | .icache_bsize		= 32, | 
|  | 1502 | .dcache_bsize		= 32, | 
|  | 1503 | .platform		= "ppc440", | 
|  | 1504 | }, | 
| Stefan Roese | 464076a | 2008-02-24 08:07:41 +1100 | [diff] [blame] | 1505 | { /* 460EX */ | 
|  | 1506 | .pvr_mask		= 0xffff0002, | 
|  | 1507 | .pvr_value		= 0x13020002, | 
|  | 1508 | .cpu_name		= "460EX", | 
|  | 1509 | .cpu_features		= CPU_FTRS_44X, | 
|  | 1510 | .cpu_user_features	= COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, | 
|  | 1511 | .icache_bsize		= 32, | 
|  | 1512 | .dcache_bsize		= 32, | 
|  | 1513 | .cpu_setup		= __setup_cpu_460ex, | 
|  | 1514 | .machine_check		= machine_check_440A, | 
|  | 1515 | .platform		= "ppc440", | 
|  | 1516 | }, | 
|  | 1517 | { /* 460GT */ | 
|  | 1518 | .pvr_mask		= 0xffff0002, | 
|  | 1519 | .pvr_value		= 0x13020000, | 
|  | 1520 | .cpu_name		= "460GT", | 
|  | 1521 | .cpu_features		= CPU_FTRS_44X, | 
| Josh Boyer | 939e622 | 2008-06-11 07:52:40 -0400 | [diff] [blame] | 1522 | .cpu_user_features	= COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, | 
| Stefan Roese | 464076a | 2008-02-24 08:07:41 +1100 | [diff] [blame] | 1523 | .icache_bsize		= 32, | 
|  | 1524 | .dcache_bsize		= 32, | 
| Josh Boyer | 939e622 | 2008-06-11 07:52:40 -0400 | [diff] [blame] | 1525 | .cpu_setup		= __setup_cpu_460gt, | 
| Stefan Roese | 464076a | 2008-02-24 08:07:41 +1100 | [diff] [blame] | 1526 | .machine_check		= machine_check_440A, | 
|  | 1527 | .platform		= "ppc440", | 
|  | 1528 | }, | 
| Benjamin Herrenschmidt | 76bc080e | 2008-05-05 15:22:27 +1000 | [diff] [blame] | 1529 | {	/* default match */ | 
|  | 1530 | .pvr_mask		= 0x00000000, | 
|  | 1531 | .pvr_value		= 0x00000000, | 
|  | 1532 | .cpu_name		= "(generic 44x PPC)", | 
|  | 1533 | .cpu_features		= CPU_FTRS_44X, | 
|  | 1534 | .cpu_user_features	= COMMON_USER_BOOKE, | 
|  | 1535 | .icache_bsize		= 32, | 
|  | 1536 | .dcache_bsize		= 32, | 
|  | 1537 | .machine_check		= machine_check_4xx, | 
|  | 1538 | .platform		= "ppc440", | 
|  | 1539 | } | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1540 | #endif /* CONFIG_44x */ | 
| Josh Boyer | e3e414b | 2007-12-24 08:44:47 -0600 | [diff] [blame] | 1541 | #ifdef CONFIG_E200 | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 1542 | {	/* e200z5 */ | 
| Kumar Gala | 33d9e9b | 2005-06-25 14:54:37 -0700 | [diff] [blame] | 1543 | .pvr_mask		= 0xfff00000, | 
|  | 1544 | .pvr_value		= 0x81000000, | 
|  | 1545 | .cpu_name		= "e200z5", | 
|  | 1546 | /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */ | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1547 | .cpu_features		= CPU_FTRS_E200, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1548 | .cpu_user_features	= COMMON_USER_BOOKE | | 
|  | 1549 | PPC_FEATURE_HAS_EFP_SINGLE | | 
| Kumar Gala | 33d9e9b | 2005-06-25 14:54:37 -0700 | [diff] [blame] | 1550 | PPC_FEATURE_UNIFIED_CACHE, | 
|  | 1551 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1552 | .machine_check		= machine_check_e200, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1553 | .platform		= "ppc5554", | 
| Kumar Gala | 33d9e9b | 2005-06-25 14:54:37 -0700 | [diff] [blame] | 1554 | }, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 1555 | {	/* e200z6 */ | 
| Kumar Gala | 33d9e9b | 2005-06-25 14:54:37 -0700 | [diff] [blame] | 1556 | .pvr_mask		= 0xfff00000, | 
|  | 1557 | .pvr_value		= 0x81100000, | 
|  | 1558 | .cpu_name		= "e200z6", | 
|  | 1559 | /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */ | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1560 | .cpu_features		= CPU_FTRS_E200, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1561 | .cpu_user_features	= COMMON_USER_BOOKE | | 
| Kumar Gala | 5e14d21 | 2007-09-13 01:44:20 -0500 | [diff] [blame] | 1562 | PPC_FEATURE_HAS_SPE_COMP | | 
|  | 1563 | PPC_FEATURE_HAS_EFP_SINGLE_COMP | | 
| Kumar Gala | 33d9e9b | 2005-06-25 14:54:37 -0700 | [diff] [blame] | 1564 | PPC_FEATURE_UNIFIED_CACHE, | 
|  | 1565 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1566 | .machine_check		= machine_check_e200, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1567 | .platform		= "ppc5554", | 
| Kumar Gala | 33d9e9b | 2005-06-25 14:54:37 -0700 | [diff] [blame] | 1568 | }, | 
| Benjamin Herrenschmidt | 76bc080e | 2008-05-05 15:22:27 +1000 | [diff] [blame] | 1569 | {	/* default match */ | 
|  | 1570 | .pvr_mask		= 0x00000000, | 
|  | 1571 | .pvr_value		= 0x00000000, | 
|  | 1572 | .cpu_name		= "(generic E200 PPC)", | 
|  | 1573 | .cpu_features		= CPU_FTRS_E200, | 
|  | 1574 | .cpu_user_features	= COMMON_USER_BOOKE | | 
|  | 1575 | PPC_FEATURE_HAS_EFP_SINGLE | | 
|  | 1576 | PPC_FEATURE_UNIFIED_CACHE, | 
|  | 1577 | .dcache_bsize		= 32, | 
|  | 1578 | .machine_check		= machine_check_e200, | 
|  | 1579 | .platform		= "ppc5554", | 
| Paul Mackerras | 516c8be | 2008-05-12 14:20:35 +1000 | [diff] [blame] | 1580 | } | 
| Benjamin Herrenschmidt | 76bc080e | 2008-05-05 15:22:27 +1000 | [diff] [blame] | 1581 | #endif /* CONFIG_E200 */ | 
|  | 1582 | #ifdef CONFIG_E500 | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 1583 | {	/* e500 */ | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1584 | .pvr_mask		= 0xffff0000, | 
|  | 1585 | .pvr_value		= 0x80200000, | 
|  | 1586 | .cpu_name		= "e500", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1587 | .cpu_features		= CPU_FTRS_E500, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1588 | .cpu_user_features	= COMMON_USER_BOOKE | | 
| Kumar Gala | 5e14d21 | 2007-09-13 01:44:20 -0500 | [diff] [blame] | 1589 | PPC_FEATURE_HAS_SPE_COMP | | 
|  | 1590 | PPC_FEATURE_HAS_EFP_SINGLE_COMP, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1591 | .icache_bsize		= 32, | 
|  | 1592 | .dcache_bsize		= 32, | 
|  | 1593 | .num_pmcs		= 4, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 1594 | .oprofile_cpu_type	= "ppc/e500", | 
| Andy Fleming | 39aef68 | 2008-02-04 18:27:55 -0600 | [diff] [blame] | 1595 | .oprofile_type		= PPC_OPROFILE_FSL_EMB, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1596 | .machine_check		= machine_check_e500, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1597 | .platform		= "ppc8540", | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1598 | }, | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 1599 | {	/* e500v2 */ | 
| Kumar Gala | 5b37b70 | 2005-06-21 17:15:18 -0700 | [diff] [blame] | 1600 | .pvr_mask		= 0xffff0000, | 
|  | 1601 | .pvr_value		= 0x80210000, | 
|  | 1602 | .cpu_name		= "e500v2", | 
| Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1603 | .cpu_features		= CPU_FTRS_E500_2, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1604 | .cpu_user_features	= COMMON_USER_BOOKE | | 
| Kumar Gala | 5e14d21 | 2007-09-13 01:44:20 -0500 | [diff] [blame] | 1605 | PPC_FEATURE_HAS_SPE_COMP | | 
|  | 1606 | PPC_FEATURE_HAS_EFP_SINGLE_COMP | | 
|  | 1607 | PPC_FEATURE_HAS_EFP_DOUBLE_COMP, | 
| Kumar Gala | 5b37b70 | 2005-06-21 17:15:18 -0700 | [diff] [blame] | 1608 | .icache_bsize		= 32, | 
|  | 1609 | .dcache_bsize		= 32, | 
|  | 1610 | .num_pmcs		= 4, | 
| Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 1611 | .oprofile_cpu_type	= "ppc/e500", | 
| Andy Fleming | 39aef68 | 2008-02-04 18:27:55 -0600 | [diff] [blame] | 1612 | .oprofile_type		= PPC_OPROFILE_FSL_EMB, | 
| Benjamin Herrenschmidt | 47c0bd1 | 2007-12-21 15:39:21 +1100 | [diff] [blame] | 1613 | .machine_check		= machine_check_e500, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1614 | .platform		= "ppc8548", | 
| Kumar Gala | 5b37b70 | 2005-06-21 17:15:18 -0700 | [diff] [blame] | 1615 | }, | 
| Kumar Gala | 3dfa877 | 2008-06-16 09:41:32 -0500 | [diff] [blame] | 1616 | {	/* e500mc */ | 
|  | 1617 | .pvr_mask		= 0xffff0000, | 
|  | 1618 | .pvr_value		= 0x80230000, | 
|  | 1619 | .cpu_name		= "e500mc", | 
| Kumar Gala | 3dfa877 | 2008-06-16 09:41:32 -0500 | [diff] [blame] | 1620 | .cpu_features		= CPU_FTRS_E500MC, | 
|  | 1621 | .cpu_user_features	= COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, | 
|  | 1622 | .icache_bsize		= 64, | 
|  | 1623 | .dcache_bsize		= 64, | 
|  | 1624 | .num_pmcs		= 4, | 
|  | 1625 | .oprofile_cpu_type	= "ppc/e500", /* xxx - galak, e500mc? */ | 
|  | 1626 | .oprofile_type		= PPC_OPROFILE_FSL_EMB, | 
|  | 1627 | .machine_check		= machine_check_e500, | 
|  | 1628 | .platform		= "ppce500mc", | 
|  | 1629 | }, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1630 | {	/* default match */ | 
|  | 1631 | .pvr_mask		= 0x00000000, | 
|  | 1632 | .pvr_value		= 0x00000000, | 
| Benjamin Herrenschmidt | 76bc080e | 2008-05-05 15:22:27 +1000 | [diff] [blame] | 1633 | .cpu_name		= "(generic E500 PPC)", | 
|  | 1634 | .cpu_features		= CPU_FTRS_E500, | 
|  | 1635 | .cpu_user_features	= COMMON_USER_BOOKE | | 
|  | 1636 | PPC_FEATURE_HAS_SPE_COMP | | 
|  | 1637 | PPC_FEATURE_HAS_EFP_SINGLE_COMP, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1638 | .icache_bsize		= 32, | 
|  | 1639 | .dcache_bsize		= 32, | 
| Benjamin Herrenschmidt | 76bc080e | 2008-05-05 15:22:27 +1000 | [diff] [blame] | 1640 | .machine_check		= machine_check_e500, | 
| Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1641 | .platform		= "powerpc", | 
| Paul Mackerras | 516c8be | 2008-05-12 14:20:35 +1000 | [diff] [blame] | 1642 | } | 
| Benjamin Herrenschmidt | 76bc080e | 2008-05-05 15:22:27 +1000 | [diff] [blame] | 1643 | #endif /* CONFIG_E500 */ | 
| Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 1644 | #endif /* CONFIG_PPC32 */ | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1645 | }; | 
| Benjamin Herrenschmidt | 42c4aaa | 2006-10-24 16:42:40 +1000 | [diff] [blame] | 1646 |  | 
| Paul Mackerras | 87a72f9 | 2007-10-04 14:18:01 +1000 | [diff] [blame] | 1647 | static struct cpu_spec the_cpu_spec; | 
|  | 1648 |  | 
|  | 1649 | struct cpu_spec * __init identify_cpu(unsigned long offset, unsigned int pvr) | 
| Benjamin Herrenschmidt | 42c4aaa | 2006-10-24 16:42:40 +1000 | [diff] [blame] | 1650 | { | 
|  | 1651 | struct cpu_spec *s = cpu_specs; | 
| Paul Mackerras | 87a72f9 | 2007-10-04 14:18:01 +1000 | [diff] [blame] | 1652 | struct cpu_spec *t = &the_cpu_spec; | 
| Benjamin Herrenschmidt | 42c4aaa | 2006-10-24 16:42:40 +1000 | [diff] [blame] | 1653 | int i; | 
|  | 1654 |  | 
|  | 1655 | s = PTRRELOC(s); | 
| Paul Mackerras | 87a72f9 | 2007-10-04 14:18:01 +1000 | [diff] [blame] | 1656 | t = PTRRELOC(t); | 
| Benjamin Herrenschmidt | 42c4aaa | 2006-10-24 16:42:40 +1000 | [diff] [blame] | 1657 |  | 
| Benjamin Herrenschmidt | 42c4aaa | 2006-10-24 16:42:40 +1000 | [diff] [blame] | 1658 | for (i = 0; i < ARRAY_SIZE(cpu_specs); i++,s++) | 
|  | 1659 | if ((pvr & s->pvr_mask) == s->pvr_value) { | 
| Paul Mackerras | 87a72f9 | 2007-10-04 14:18:01 +1000 | [diff] [blame] | 1660 | /* | 
|  | 1661 | * If we are overriding a previous value derived | 
|  | 1662 | * from the real PVR with a new value obtained | 
|  | 1663 | * using a logical PVR value, don't modify the | 
|  | 1664 | * performance monitor fields. | 
|  | 1665 | */ | 
|  | 1666 | if (t->num_pmcs && !s->num_pmcs) { | 
|  | 1667 | t->cpu_name = s->cpu_name; | 
|  | 1668 | t->cpu_features = s->cpu_features; | 
|  | 1669 | t->cpu_user_features = s->cpu_user_features; | 
|  | 1670 | t->icache_bsize = s->icache_bsize; | 
|  | 1671 | t->dcache_bsize = s->dcache_bsize; | 
|  | 1672 | t->cpu_setup = s->cpu_setup; | 
|  | 1673 | t->cpu_restore = s->cpu_restore; | 
|  | 1674 | t->platform = s->platform; | 
| Torez Smith | 79e25ba | 2008-07-18 06:42:07 +1000 | [diff] [blame] | 1675 | /* | 
|  | 1676 | * If we have passed through this logic once | 
|  | 1677 | * before and have pulled the default case | 
|  | 1678 | * because the real PVR was not found inside | 
|  | 1679 | * cpu_specs[], then we are possibly running in | 
|  | 1680 | * compatibility mode. In that case, let the | 
|  | 1681 | * oprofiler know which set of compatibility | 
|  | 1682 | * counters to pull from by making sure the | 
|  | 1683 | * oprofile_cpu_type string is set to that of | 
|  | 1684 | * compatibility mode. If the oprofile_cpu_type | 
|  | 1685 | * already has a value, then we are possibly | 
|  | 1686 | * overriding a real PVR with a logical one, and, | 
|  | 1687 | * in that case, keep the current value for | 
|  | 1688 | * oprofile_cpu_type. | 
|  | 1689 | */ | 
|  | 1690 | if (t->oprofile_cpu_type == NULL) | 
|  | 1691 | t->oprofile_cpu_type = s->oprofile_cpu_type; | 
| Paul Mackerras | 87a72f9 | 2007-10-04 14:18:01 +1000 | [diff] [blame] | 1692 | } else | 
|  | 1693 | *t = *s; | 
|  | 1694 | *PTRRELOC(&cur_cpu_spec) = &the_cpu_spec; | 
| Nathan Lynch | 9115d13 | 2008-07-16 09:58:51 +1000 | [diff] [blame] | 1695 |  | 
|  | 1696 | /* | 
|  | 1697 | * Set the base platform string once; assumes | 
|  | 1698 | * we're called with real pvr first. | 
|  | 1699 | */ | 
| Nathan Lynch | fc532f8 | 2008-07-25 17:50:30 -0500 | [diff] [blame] | 1700 | if (*PTRRELOC(&powerpc_base_platform) == NULL) | 
|  | 1701 | *PTRRELOC(&powerpc_base_platform) = t->platform; | 
| Nathan Lynch | 9115d13 | 2008-07-16 09:58:51 +1000 | [diff] [blame] | 1702 |  | 
| Valentine Barshak | 84e3ad5 | 2007-09-22 00:44:38 +1000 | [diff] [blame] | 1703 | #if defined(CONFIG_PPC64) || defined(CONFIG_BOOKE) | 
| Stefan Roese | 464076a | 2008-02-24 08:07:41 +1100 | [diff] [blame] | 1704 | /* ppc64 and booke expect identify_cpu to also call | 
| Valentine Barshak | 84e3ad5 | 2007-09-22 00:44:38 +1000 | [diff] [blame] | 1705 | * setup_cpu for that processor. I will consolidate | 
|  | 1706 | * that at a later time, for now, just use #ifdef. | 
| Benjamin Herrenschmidt | 42c4aaa | 2006-10-24 16:42:40 +1000 | [diff] [blame] | 1707 | * we also don't need to PTRRELOC the function pointer | 
| Valentine Barshak | 84e3ad5 | 2007-09-22 00:44:38 +1000 | [diff] [blame] | 1708 | * on ppc64 and booke as we are running at 0 in real | 
|  | 1709 | * mode on ppc64 and reloc_offset is always 0 on booke. | 
| Benjamin Herrenschmidt | 42c4aaa | 2006-10-24 16:42:40 +1000 | [diff] [blame] | 1710 | */ | 
|  | 1711 | if (s->cpu_setup) { | 
|  | 1712 | s->cpu_setup(offset, s); | 
|  | 1713 | } | 
| Valentine Barshak | 84e3ad5 | 2007-09-22 00:44:38 +1000 | [diff] [blame] | 1714 | #endif /* CONFIG_PPC64 || CONFIG_BOOKE */ | 
| Benjamin Herrenschmidt | 42c4aaa | 2006-10-24 16:42:40 +1000 | [diff] [blame] | 1715 | return s; | 
|  | 1716 | } | 
|  | 1717 | BUG(); | 
|  | 1718 | return NULL; | 
|  | 1719 | } |