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