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 | |
| 13 | #include <linux/config.h> |
| 14 | #include <linux/string.h> |
| 15 | #include <linux/sched.h> |
| 16 | #include <linux/threads.h> |
| 17 | #include <linux/init.h> |
Kumar Gala | 400d221 | 2005-09-27 15:13:12 -0500 | [diff] [blame] | 18 | #include <linux/module.h> |
| 19 | |
| 20 | #include <asm/oprofile_impl.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | #include <asm/cputable.h> |
| 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 |
Kumar Gala | 400d221 | 2005-09-27 15:13:12 -0500 | [diff] [blame] | 34 | extern void __setup_cpu_603(unsigned long offset, struct cpu_spec* spec); |
| 35 | extern void __setup_cpu_604(unsigned long offset, struct cpu_spec* spec); |
| 36 | extern void __setup_cpu_750(unsigned long offset, struct cpu_spec* spec); |
| 37 | extern void __setup_cpu_750cx(unsigned long offset, struct cpu_spec* spec); |
| 38 | extern void __setup_cpu_750fx(unsigned long offset, struct cpu_spec* spec); |
| 39 | extern void __setup_cpu_7400(unsigned long offset, struct cpu_spec* spec); |
| 40 | extern void __setup_cpu_7410(unsigned long offset, struct cpu_spec* spec); |
| 41 | extern void __setup_cpu_745x(unsigned long offset, struct cpu_spec* spec); |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 42 | #endif /* CONFIG_PPC32 */ |
Kumar Gala | 400d221 | 2005-09-27 15:13:12 -0500 | [diff] [blame] | 43 | extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 44 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 45 | /* This table only contains "desktop" CPUs, it need to be filled with embedded |
| 46 | * ones as well... |
| 47 | */ |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 48 | #define COMMON_USER (PPC_FEATURE_32 | PPC_FEATURE_HAS_FPU | \ |
| 49 | PPC_FEATURE_HAS_MMU) |
| 50 | #define COMMON_USER_PPC64 (COMMON_USER | PPC_FEATURE_64) |
Paul Mackerras | a7ddc5e | 2005-11-10 14:29:18 +1100 | [diff] [blame] | 51 | #define COMMON_USER_POWER4 (COMMON_USER_PPC64 | PPC_FEATURE_POWER4) |
Benjamin Herrenschmidt | aa5cb02 | 2006-03-01 15:07:07 +1100 | [diff] [blame] | 52 | #define COMMON_USER_POWER5 (COMMON_USER_PPC64 | PPC_FEATURE_POWER5 |\ |
| 53 | PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP) |
| 54 | #define COMMON_USER_POWER5_PLUS (COMMON_USER_PPC64 | PPC_FEATURE_POWER5_PLUS|\ |
| 55 | PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP) |
Anton Blanchard | 03054d5 | 2006-04-29 09:51:06 +1000 | [diff] [blame] | 56 | #define COMMON_USER_POWER6 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_05 |\ |
| 57 | PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP) |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 58 | #define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \ |
| 59 | PPC_FEATURE_BOOKE) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 60 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 61 | /* We only set the spe features if the kernel was compiled with |
| 62 | * spe support |
| 63 | */ |
| 64 | #ifdef CONFIG_SPE |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 65 | #define PPC_FEATURE_SPE_COMP PPC_FEATURE_HAS_SPE |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 66 | #else |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 67 | #define PPC_FEATURE_SPE_COMP 0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 68 | #endif |
| 69 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 70 | struct cpu_spec cpu_specs[] = { |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 71 | #ifdef CONFIG_PPC64 |
| 72 | { /* Power3 */ |
| 73 | .pvr_mask = 0xffff0000, |
| 74 | .pvr_value = 0x00400000, |
| 75 | .cpu_name = "POWER3 (630)", |
| 76 | .cpu_features = CPU_FTRS_POWER3, |
| 77 | .cpu_user_features = COMMON_USER_PPC64, |
| 78 | .icache_bsize = 128, |
| 79 | .dcache_bsize = 128, |
| 80 | .num_pmcs = 8, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 81 | .oprofile_cpu_type = "ppc64/power3", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 82 | .oprofile_type = PPC_OPROFILE_RS64, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 83 | .platform = "power3", |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 84 | }, |
| 85 | { /* Power3+ */ |
| 86 | .pvr_mask = 0xffff0000, |
| 87 | .pvr_value = 0x00410000, |
| 88 | .cpu_name = "POWER3 (630+)", |
| 89 | .cpu_features = CPU_FTRS_POWER3, |
| 90 | .cpu_user_features = COMMON_USER_PPC64, |
| 91 | .icache_bsize = 128, |
| 92 | .dcache_bsize = 128, |
| 93 | .num_pmcs = 8, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 94 | .oprofile_cpu_type = "ppc64/power3", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 95 | .oprofile_type = PPC_OPROFILE_RS64, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 96 | .platform = "power3", |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 97 | }, |
| 98 | { /* Northstar */ |
| 99 | .pvr_mask = 0xffff0000, |
| 100 | .pvr_value = 0x00330000, |
| 101 | .cpu_name = "RS64-II (northstar)", |
| 102 | .cpu_features = CPU_FTRS_RS64, |
| 103 | .cpu_user_features = COMMON_USER_PPC64, |
| 104 | .icache_bsize = 128, |
| 105 | .dcache_bsize = 128, |
| 106 | .num_pmcs = 8, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 107 | .oprofile_cpu_type = "ppc64/rs64", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 108 | .oprofile_type = PPC_OPROFILE_RS64, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 109 | .platform = "rs64", |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 110 | }, |
| 111 | { /* Pulsar */ |
| 112 | .pvr_mask = 0xffff0000, |
| 113 | .pvr_value = 0x00340000, |
| 114 | .cpu_name = "RS64-III (pulsar)", |
| 115 | .cpu_features = CPU_FTRS_RS64, |
| 116 | .cpu_user_features = COMMON_USER_PPC64, |
| 117 | .icache_bsize = 128, |
| 118 | .dcache_bsize = 128, |
| 119 | .num_pmcs = 8, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 120 | .oprofile_cpu_type = "ppc64/rs64", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 121 | .oprofile_type = PPC_OPROFILE_RS64, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 122 | .platform = "rs64", |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 123 | }, |
| 124 | { /* I-star */ |
| 125 | .pvr_mask = 0xffff0000, |
| 126 | .pvr_value = 0x00360000, |
| 127 | .cpu_name = "RS64-III (icestar)", |
| 128 | .cpu_features = CPU_FTRS_RS64, |
| 129 | .cpu_user_features = COMMON_USER_PPC64, |
| 130 | .icache_bsize = 128, |
| 131 | .dcache_bsize = 128, |
| 132 | .num_pmcs = 8, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 133 | .oprofile_cpu_type = "ppc64/rs64", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 134 | .oprofile_type = PPC_OPROFILE_RS64, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 135 | .platform = "rs64", |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 136 | }, |
| 137 | { /* S-star */ |
| 138 | .pvr_mask = 0xffff0000, |
| 139 | .pvr_value = 0x00370000, |
| 140 | .cpu_name = "RS64-IV (sstar)", |
| 141 | .cpu_features = CPU_FTRS_RS64, |
| 142 | .cpu_user_features = COMMON_USER_PPC64, |
| 143 | .icache_bsize = 128, |
| 144 | .dcache_bsize = 128, |
| 145 | .num_pmcs = 8, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 146 | .oprofile_cpu_type = "ppc64/rs64", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 147 | .oprofile_type = PPC_OPROFILE_RS64, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 148 | .platform = "rs64", |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 149 | }, |
| 150 | { /* Power4 */ |
| 151 | .pvr_mask = 0xffff0000, |
| 152 | .pvr_value = 0x00350000, |
| 153 | .cpu_name = "POWER4 (gp)", |
| 154 | .cpu_features = CPU_FTRS_POWER4, |
Paul Mackerras | a7ddc5e | 2005-11-10 14:29:18 +1100 | [diff] [blame] | 155 | .cpu_user_features = COMMON_USER_POWER4, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 156 | .icache_bsize = 128, |
| 157 | .dcache_bsize = 128, |
| 158 | .num_pmcs = 8, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 159 | .oprofile_cpu_type = "ppc64/power4", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 160 | .oprofile_type = PPC_OPROFILE_POWER4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 161 | .platform = "power4", |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 162 | }, |
| 163 | { /* Power4+ */ |
| 164 | .pvr_mask = 0xffff0000, |
| 165 | .pvr_value = 0x00380000, |
| 166 | .cpu_name = "POWER4+ (gq)", |
| 167 | .cpu_features = CPU_FTRS_POWER4, |
Paul Mackerras | a7ddc5e | 2005-11-10 14:29:18 +1100 | [diff] [blame] | 168 | .cpu_user_features = COMMON_USER_POWER4, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 169 | .icache_bsize = 128, |
| 170 | .dcache_bsize = 128, |
| 171 | .num_pmcs = 8, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 172 | .oprofile_cpu_type = "ppc64/power4", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 173 | .oprofile_type = PPC_OPROFILE_POWER4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 174 | .platform = "power4", |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 175 | }, |
| 176 | { /* PPC970 */ |
| 177 | .pvr_mask = 0xffff0000, |
| 178 | .pvr_value = 0x00390000, |
| 179 | .cpu_name = "PPC970", |
| 180 | .cpu_features = CPU_FTRS_PPC970, |
Paul Mackerras | a7ddc5e | 2005-11-10 14:29:18 +1100 | [diff] [blame] | 181 | .cpu_user_features = COMMON_USER_POWER4 | |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 182 | PPC_FEATURE_HAS_ALTIVEC_COMP, |
| 183 | .icache_bsize = 128, |
| 184 | .dcache_bsize = 128, |
| 185 | .num_pmcs = 8, |
| 186 | .cpu_setup = __setup_cpu_ppc970, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 187 | .oprofile_cpu_type = "ppc64/970", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 188 | .oprofile_type = PPC_OPROFILE_POWER4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 189 | .platform = "ppc970", |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 190 | }, |
| 191 | #endif /* CONFIG_PPC64 */ |
| 192 | #if defined(CONFIG_PPC64) || defined(CONFIG_POWER4) |
| 193 | { /* PPC970FX */ |
| 194 | .pvr_mask = 0xffff0000, |
| 195 | .pvr_value = 0x003c0000, |
| 196 | .cpu_name = "PPC970FX", |
| 197 | #ifdef CONFIG_PPC32 |
| 198 | .cpu_features = CPU_FTRS_970_32, |
| 199 | #else |
| 200 | .cpu_features = CPU_FTRS_PPC970, |
| 201 | #endif |
Paul Mackerras | a7ddc5e | 2005-11-10 14:29:18 +1100 | [diff] [blame] | 202 | .cpu_user_features = COMMON_USER_POWER4 | |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 203 | PPC_FEATURE_HAS_ALTIVEC_COMP, |
| 204 | .icache_bsize = 128, |
| 205 | .dcache_bsize = 128, |
| 206 | .num_pmcs = 8, |
| 207 | .cpu_setup = __setup_cpu_ppc970, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 208 | .oprofile_cpu_type = "ppc64/970", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 209 | .oprofile_type = PPC_OPROFILE_POWER4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 210 | .platform = "ppc970", |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 211 | }, |
| 212 | #endif /* defined(CONFIG_PPC64) || defined(CONFIG_POWER4) */ |
| 213 | #ifdef CONFIG_PPC64 |
| 214 | { /* PPC970MP */ |
| 215 | .pvr_mask = 0xffff0000, |
| 216 | .pvr_value = 0x00440000, |
| 217 | .cpu_name = "PPC970MP", |
| 218 | .cpu_features = CPU_FTRS_PPC970, |
Paul Mackerras | a7ddc5e | 2005-11-10 14:29:18 +1100 | [diff] [blame] | 219 | .cpu_user_features = COMMON_USER_POWER4 | |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 220 | PPC_FEATURE_HAS_ALTIVEC_COMP, |
| 221 | .icache_bsize = 128, |
| 222 | .dcache_bsize = 128, |
| 223 | .cpu_setup = __setup_cpu_ppc970, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 224 | .oprofile_cpu_type = "ppc64/970", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 225 | .oprofile_type = PPC_OPROFILE_POWER4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 226 | .platform = "ppc970", |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 227 | }, |
Benjamin Herrenschmidt | 3c726f8 | 2005-11-07 11:06:55 +1100 | [diff] [blame] | 228 | { /* Power5 GR */ |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 229 | .pvr_mask = 0xffff0000, |
| 230 | .pvr_value = 0x003a0000, |
| 231 | .cpu_name = "POWER5 (gr)", |
| 232 | .cpu_features = CPU_FTRS_POWER5, |
Paul Mackerras | a7ddc5e | 2005-11-10 14:29:18 +1100 | [diff] [blame] | 233 | .cpu_user_features = COMMON_USER_POWER5, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 234 | .icache_bsize = 128, |
| 235 | .dcache_bsize = 128, |
| 236 | .num_pmcs = 6, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 237 | .oprofile_cpu_type = "ppc64/power5", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 238 | .oprofile_type = PPC_OPROFILE_POWER4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 239 | .platform = "power5", |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 240 | }, |
Benjamin Herrenschmidt | 3c726f8 | 2005-11-07 11:06:55 +1100 | [diff] [blame] | 241 | { /* Power5 GS */ |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 242 | .pvr_mask = 0xffff0000, |
| 243 | .pvr_value = 0x003b0000, |
Anton Blanchard | 834608f | 2006-01-09 15:42:30 +1100 | [diff] [blame] | 244 | .cpu_name = "POWER5+ (gs)", |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 245 | .cpu_features = CPU_FTRS_POWER5, |
Paul Mackerras | a7ddc5e | 2005-11-10 14:29:18 +1100 | [diff] [blame] | 246 | .cpu_user_features = COMMON_USER_POWER5_PLUS, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 247 | .icache_bsize = 128, |
| 248 | .dcache_bsize = 128, |
| 249 | .num_pmcs = 6, |
Anton Blanchard | 834608f | 2006-01-09 15:42:30 +1100 | [diff] [blame] | 250 | .oprofile_cpu_type = "ppc64/power5+", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 251 | .oprofile_type = PPC_OPROFILE_POWER4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 252 | .platform = "power5+", |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 253 | }, |
Anton Blanchard | 03054d5 | 2006-04-29 09:51:06 +1000 | [diff] [blame] | 254 | { /* Power6 */ |
| 255 | .pvr_mask = 0xffff0000, |
| 256 | .pvr_value = 0x003e0000, |
| 257 | .cpu_name = "POWER6", |
| 258 | .cpu_features = CPU_FTRS_POWER6, |
| 259 | .cpu_user_features = COMMON_USER_POWER6, |
| 260 | .icache_bsize = 128, |
| 261 | .dcache_bsize = 128, |
| 262 | .num_pmcs = 6, |
Anton Blanchard | 03054d5 | 2006-04-29 09:51:06 +1000 | [diff] [blame] | 263 | .oprofile_cpu_type = "ppc64/power6", |
| 264 | .oprofile_type = PPC_OPROFILE_POWER4, |
| 265 | .platform = "power6", |
| 266 | }, |
Arnd Bergmann | c902be7 | 2006-01-04 19:55:53 +0000 | [diff] [blame] | 267 | { /* Cell Broadband Engine */ |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 268 | .pvr_mask = 0xffff0000, |
| 269 | .pvr_value = 0x00700000, |
| 270 | .cpu_name = "Cell Broadband Engine", |
| 271 | .cpu_features = CPU_FTRS_CELL, |
| 272 | .cpu_user_features = COMMON_USER_PPC64 | |
Benjamin Herrenschmidt | aa5cb02 | 2006-03-01 15:07:07 +1100 | [diff] [blame] | 273 | PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP | |
| 274 | PPC_FEATURE_SMT, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 275 | .icache_bsize = 128, |
| 276 | .dcache_bsize = 128, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 277 | .platform = "ppc-cell-be", |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 278 | }, |
| 279 | { /* default match */ |
| 280 | .pvr_mask = 0x00000000, |
| 281 | .pvr_value = 0x00000000, |
| 282 | .cpu_name = "POWER4 (compatible)", |
| 283 | .cpu_features = CPU_FTRS_COMPATIBLE, |
| 284 | .cpu_user_features = COMMON_USER_PPC64, |
| 285 | .icache_bsize = 128, |
| 286 | .dcache_bsize = 128, |
| 287 | .num_pmcs = 6, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 288 | .platform = "power4", |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 289 | } |
| 290 | #endif /* CONFIG_PPC64 */ |
| 291 | #ifdef CONFIG_PPC32 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 292 | #if CLASSIC_PPC |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 293 | { /* 601 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 294 | .pvr_mask = 0xffff0000, |
| 295 | .pvr_value = 0x00010000, |
| 296 | .cpu_name = "601", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 297 | .cpu_features = CPU_FTRS_PPC601, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 298 | .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR | |
Paul Mackerras | 9859901 | 2005-10-22 16:51:34 +1000 | [diff] [blame] | 299 | PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 300 | .icache_bsize = 32, |
| 301 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 302 | .platform = "ppc601", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 303 | }, |
| 304 | { /* 603 */ |
| 305 | .pvr_mask = 0xffff0000, |
| 306 | .pvr_value = 0x00030000, |
| 307 | .cpu_name = "603", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 308 | .cpu_features = CPU_FTRS_603, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 309 | .cpu_user_features = COMMON_USER, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 310 | .icache_bsize = 32, |
| 311 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 312 | .cpu_setup = __setup_cpu_603, |
| 313 | .platform = "ppc603", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 314 | }, |
| 315 | { /* 603e */ |
| 316 | .pvr_mask = 0xffff0000, |
| 317 | .pvr_value = 0x00060000, |
| 318 | .cpu_name = "603e", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 319 | .cpu_features = CPU_FTRS_603, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 320 | .cpu_user_features = COMMON_USER, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 321 | .icache_bsize = 32, |
| 322 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 323 | .cpu_setup = __setup_cpu_603, |
| 324 | .platform = "ppc603", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 325 | }, |
| 326 | { /* 603ev */ |
| 327 | .pvr_mask = 0xffff0000, |
| 328 | .pvr_value = 0x00070000, |
| 329 | .cpu_name = "603ev", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 330 | .cpu_features = CPU_FTRS_603, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 331 | .cpu_user_features = COMMON_USER, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 332 | .icache_bsize = 32, |
| 333 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 334 | .cpu_setup = __setup_cpu_603, |
| 335 | .platform = "ppc603", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 336 | }, |
| 337 | { /* 604 */ |
| 338 | .pvr_mask = 0xffff0000, |
| 339 | .pvr_value = 0x00040000, |
| 340 | .cpu_name = "604", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 341 | .cpu_features = CPU_FTRS_604, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 342 | .cpu_user_features = COMMON_USER, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 343 | .icache_bsize = 32, |
| 344 | .dcache_bsize = 32, |
| 345 | .num_pmcs = 2, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 346 | .cpu_setup = __setup_cpu_604, |
| 347 | .platform = "ppc604", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 348 | }, |
| 349 | { /* 604e */ |
| 350 | .pvr_mask = 0xfffff000, |
| 351 | .pvr_value = 0x00090000, |
| 352 | .cpu_name = "604e", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 353 | .cpu_features = CPU_FTRS_604, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 354 | .cpu_user_features = COMMON_USER, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 355 | .icache_bsize = 32, |
| 356 | .dcache_bsize = 32, |
| 357 | .num_pmcs = 4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 358 | .cpu_setup = __setup_cpu_604, |
| 359 | .platform = "ppc604", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 360 | }, |
| 361 | { /* 604r */ |
| 362 | .pvr_mask = 0xffff0000, |
| 363 | .pvr_value = 0x00090000, |
| 364 | .cpu_name = "604r", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 365 | .cpu_features = CPU_FTRS_604, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 366 | .cpu_user_features = COMMON_USER, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 367 | .icache_bsize = 32, |
| 368 | .dcache_bsize = 32, |
| 369 | .num_pmcs = 4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 370 | .cpu_setup = __setup_cpu_604, |
| 371 | .platform = "ppc604", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 372 | }, |
| 373 | { /* 604ev */ |
| 374 | .pvr_mask = 0xffff0000, |
| 375 | .pvr_value = 0x000a0000, |
| 376 | .cpu_name = "604ev", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 377 | .cpu_features = CPU_FTRS_604, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 378 | .cpu_user_features = COMMON_USER, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 379 | .icache_bsize = 32, |
| 380 | .dcache_bsize = 32, |
| 381 | .num_pmcs = 4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 382 | .cpu_setup = __setup_cpu_604, |
| 383 | .platform = "ppc604", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 384 | }, |
| 385 | { /* 740/750 (0x4202, don't support TAU ?) */ |
| 386 | .pvr_mask = 0xffffffff, |
| 387 | .pvr_value = 0x00084202, |
| 388 | .cpu_name = "740/750", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 389 | .cpu_features = CPU_FTRS_740_NOTAU, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 390 | .cpu_user_features = COMMON_USER, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 391 | .icache_bsize = 32, |
| 392 | .dcache_bsize = 32, |
| 393 | .num_pmcs = 4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 394 | .cpu_setup = __setup_cpu_750, |
| 395 | .platform = "ppc750", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 396 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 397 | { /* 750CX (80100 and 8010x?) */ |
| 398 | .pvr_mask = 0xfffffff0, |
| 399 | .pvr_value = 0x00080100, |
| 400 | .cpu_name = "750CX", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 401 | .cpu_features = CPU_FTRS_750, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 402 | .cpu_user_features = COMMON_USER, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 403 | .icache_bsize = 32, |
| 404 | .dcache_bsize = 32, |
| 405 | .num_pmcs = 4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 406 | .cpu_setup = __setup_cpu_750cx, |
| 407 | .platform = "ppc750", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 408 | }, |
| 409 | { /* 750CX (82201 and 82202) */ |
| 410 | .pvr_mask = 0xfffffff0, |
| 411 | .pvr_value = 0x00082200, |
| 412 | .cpu_name = "750CX", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 413 | .cpu_features = CPU_FTRS_750, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 414 | .cpu_user_features = COMMON_USER, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 415 | .icache_bsize = 32, |
| 416 | .dcache_bsize = 32, |
| 417 | .num_pmcs = 4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 418 | .cpu_setup = __setup_cpu_750cx, |
| 419 | .platform = "ppc750", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 420 | }, |
| 421 | { /* 750CXe (82214) */ |
| 422 | .pvr_mask = 0xfffffff0, |
| 423 | .pvr_value = 0x00082210, |
| 424 | .cpu_name = "750CXe", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 425 | .cpu_features = CPU_FTRS_750, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 426 | .cpu_user_features = COMMON_USER, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 427 | .icache_bsize = 32, |
| 428 | .dcache_bsize = 32, |
| 429 | .num_pmcs = 4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 430 | .cpu_setup = __setup_cpu_750cx, |
| 431 | .platform = "ppc750", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 432 | }, |
Arthur Othieno | 7c31625 | 2005-09-03 15:55:52 -0700 | [diff] [blame] | 433 | { /* 750CXe "Gekko" (83214) */ |
| 434 | .pvr_mask = 0xffffffff, |
| 435 | .pvr_value = 0x00083214, |
| 436 | .cpu_name = "750CXe", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 437 | .cpu_features = CPU_FTRS_750, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 438 | .cpu_user_features = COMMON_USER, |
Arthur Othieno | 7c31625 | 2005-09-03 15:55:52 -0700 | [diff] [blame] | 439 | .icache_bsize = 32, |
| 440 | .dcache_bsize = 32, |
| 441 | .num_pmcs = 4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 442 | .cpu_setup = __setup_cpu_750cx, |
| 443 | .platform = "ppc750", |
Arthur Othieno | 7c31625 | 2005-09-03 15:55:52 -0700 | [diff] [blame] | 444 | }, |
Arthur Othieno | ac1ff04 | 2005-09-03 15:55:51 -0700 | [diff] [blame] | 445 | { /* 745/755 */ |
| 446 | .pvr_mask = 0xfffff000, |
| 447 | .pvr_value = 0x00083000, |
| 448 | .cpu_name = "745/755", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 449 | .cpu_features = CPU_FTRS_750, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 450 | .cpu_user_features = COMMON_USER, |
Arthur Othieno | ac1ff04 | 2005-09-03 15:55:51 -0700 | [diff] [blame] | 451 | .icache_bsize = 32, |
| 452 | .dcache_bsize = 32, |
| 453 | .num_pmcs = 4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 454 | .cpu_setup = __setup_cpu_750, |
| 455 | .platform = "ppc750", |
Arthur Othieno | ac1ff04 | 2005-09-03 15:55:51 -0700 | [diff] [blame] | 456 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 457 | { /* 750FX rev 1.x */ |
| 458 | .pvr_mask = 0xffffff00, |
| 459 | .pvr_value = 0x70000100, |
| 460 | .cpu_name = "750FX", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 461 | .cpu_features = CPU_FTRS_750FX1, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 462 | .cpu_user_features = COMMON_USER, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 463 | .icache_bsize = 32, |
| 464 | .dcache_bsize = 32, |
| 465 | .num_pmcs = 4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 466 | .cpu_setup = __setup_cpu_750, |
| 467 | .platform = "ppc750", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 468 | }, |
| 469 | { /* 750FX rev 2.0 must disable HID0[DPM] */ |
| 470 | .pvr_mask = 0xffffffff, |
| 471 | .pvr_value = 0x70000200, |
| 472 | .cpu_name = "750FX", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 473 | .cpu_features = CPU_FTRS_750FX2, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 474 | .cpu_user_features = COMMON_USER, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 475 | .icache_bsize = 32, |
| 476 | .dcache_bsize = 32, |
| 477 | .num_pmcs = 4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 478 | .cpu_setup = __setup_cpu_750, |
| 479 | .platform = "ppc750", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 480 | }, |
| 481 | { /* 750FX (All revs except 2.0) */ |
| 482 | .pvr_mask = 0xffff0000, |
| 483 | .pvr_value = 0x70000000, |
| 484 | .cpu_name = "750FX", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 485 | .cpu_features = CPU_FTRS_750FX, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 486 | .cpu_user_features = COMMON_USER, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 487 | .icache_bsize = 32, |
| 488 | .dcache_bsize = 32, |
| 489 | .num_pmcs = 4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 490 | .cpu_setup = __setup_cpu_750fx, |
| 491 | .platform = "ppc750", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 492 | }, |
| 493 | { /* 750GX */ |
| 494 | .pvr_mask = 0xffff0000, |
| 495 | .pvr_value = 0x70020000, |
| 496 | .cpu_name = "750GX", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 497 | .cpu_features = CPU_FTRS_750GX, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 498 | .cpu_user_features = COMMON_USER, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 499 | .icache_bsize = 32, |
| 500 | .dcache_bsize = 32, |
| 501 | .num_pmcs = 4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 502 | .cpu_setup = __setup_cpu_750fx, |
| 503 | .platform = "ppc750", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 504 | }, |
| 505 | { /* 740/750 (L2CR bit need fixup for 740) */ |
| 506 | .pvr_mask = 0xffff0000, |
| 507 | .pvr_value = 0x00080000, |
| 508 | .cpu_name = "740/750", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 509 | .cpu_features = CPU_FTRS_740, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 510 | .cpu_user_features = COMMON_USER, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 511 | .icache_bsize = 32, |
| 512 | .dcache_bsize = 32, |
| 513 | .num_pmcs = 4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 514 | .cpu_setup = __setup_cpu_750, |
| 515 | .platform = "ppc750", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 516 | }, |
| 517 | { /* 7400 rev 1.1 ? (no TAU) */ |
| 518 | .pvr_mask = 0xffffffff, |
| 519 | .pvr_value = 0x000c1101, |
| 520 | .cpu_name = "7400 (1.1)", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 521 | .cpu_features = CPU_FTRS_7400_NOTAU, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 522 | .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 523 | .icache_bsize = 32, |
| 524 | .dcache_bsize = 32, |
| 525 | .num_pmcs = 4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 526 | .cpu_setup = __setup_cpu_7400, |
| 527 | .platform = "ppc7400", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 528 | }, |
| 529 | { /* 7400 */ |
| 530 | .pvr_mask = 0xffff0000, |
| 531 | .pvr_value = 0x000c0000, |
| 532 | .cpu_name = "7400", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 533 | .cpu_features = CPU_FTRS_7400, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 534 | .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 535 | .icache_bsize = 32, |
| 536 | .dcache_bsize = 32, |
| 537 | .num_pmcs = 4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 538 | .cpu_setup = __setup_cpu_7400, |
| 539 | .platform = "ppc7400", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 540 | }, |
| 541 | { /* 7410 */ |
| 542 | .pvr_mask = 0xffff0000, |
| 543 | .pvr_value = 0x800c0000, |
| 544 | .cpu_name = "7410", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 545 | .cpu_features = CPU_FTRS_7400, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 546 | .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 547 | .icache_bsize = 32, |
| 548 | .dcache_bsize = 32, |
| 549 | .num_pmcs = 4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 550 | .cpu_setup = __setup_cpu_7410, |
| 551 | .platform = "ppc7400", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 552 | }, |
| 553 | { /* 7450 2.0 - no doze/nap */ |
| 554 | .pvr_mask = 0xffffffff, |
| 555 | .pvr_value = 0x80000200, |
| 556 | .cpu_name = "7450", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 557 | .cpu_features = CPU_FTRS_7450_20, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 558 | .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 559 | .icache_bsize = 32, |
| 560 | .dcache_bsize = 32, |
| 561 | .num_pmcs = 6, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 562 | .cpu_setup = __setup_cpu_745x, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 563 | .oprofile_cpu_type = "ppc/7450", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 564 | .oprofile_type = PPC_OPROFILE_G4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 565 | .platform = "ppc7450", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 566 | }, |
| 567 | { /* 7450 2.1 */ |
| 568 | .pvr_mask = 0xffffffff, |
| 569 | .pvr_value = 0x80000201, |
| 570 | .cpu_name = "7450", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 571 | .cpu_features = CPU_FTRS_7450_21, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 572 | .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 573 | .icache_bsize = 32, |
| 574 | .dcache_bsize = 32, |
| 575 | .num_pmcs = 6, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 576 | .cpu_setup = __setup_cpu_745x, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 577 | .oprofile_cpu_type = "ppc/7450", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 578 | .oprofile_type = PPC_OPROFILE_G4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 579 | .platform = "ppc7450", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 580 | }, |
| 581 | { /* 7450 2.3 and newer */ |
| 582 | .pvr_mask = 0xffff0000, |
| 583 | .pvr_value = 0x80000000, |
| 584 | .cpu_name = "7450", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 585 | .cpu_features = CPU_FTRS_7450_23, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 586 | .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 587 | .icache_bsize = 32, |
| 588 | .dcache_bsize = 32, |
| 589 | .num_pmcs = 6, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 590 | .cpu_setup = __setup_cpu_745x, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 591 | .oprofile_cpu_type = "ppc/7450", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 592 | .oprofile_type = PPC_OPROFILE_G4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 593 | .platform = "ppc7450", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 594 | }, |
| 595 | { /* 7455 rev 1.x */ |
| 596 | .pvr_mask = 0xffffff00, |
| 597 | .pvr_value = 0x80010100, |
| 598 | .cpu_name = "7455", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 599 | .cpu_features = CPU_FTRS_7455_1, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 600 | .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 601 | .icache_bsize = 32, |
| 602 | .dcache_bsize = 32, |
| 603 | .num_pmcs = 6, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 604 | .cpu_setup = __setup_cpu_745x, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 605 | .oprofile_cpu_type = "ppc/7450", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 606 | .oprofile_type = PPC_OPROFILE_G4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 607 | .platform = "ppc7450", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 608 | }, |
| 609 | { /* 7455 rev 2.0 */ |
| 610 | .pvr_mask = 0xffffffff, |
| 611 | .pvr_value = 0x80010200, |
| 612 | .cpu_name = "7455", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 613 | .cpu_features = CPU_FTRS_7455_20, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 614 | .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 615 | .icache_bsize = 32, |
| 616 | .dcache_bsize = 32, |
| 617 | .num_pmcs = 6, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 618 | .cpu_setup = __setup_cpu_745x, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 619 | .oprofile_cpu_type = "ppc/7450", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 620 | .oprofile_type = PPC_OPROFILE_G4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 621 | .platform = "ppc7450", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 622 | }, |
| 623 | { /* 7455 others */ |
| 624 | .pvr_mask = 0xffff0000, |
| 625 | .pvr_value = 0x80010000, |
| 626 | .cpu_name = "7455", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 627 | .cpu_features = CPU_FTRS_7455, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 628 | .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 629 | .icache_bsize = 32, |
| 630 | .dcache_bsize = 32, |
| 631 | .num_pmcs = 6, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 632 | .cpu_setup = __setup_cpu_745x, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 633 | .oprofile_cpu_type = "ppc/7450", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 634 | .oprofile_type = PPC_OPROFILE_G4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 635 | .platform = "ppc7450", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 636 | }, |
| 637 | { /* 7447/7457 Rev 1.0 */ |
| 638 | .pvr_mask = 0xffffffff, |
| 639 | .pvr_value = 0x80020100, |
| 640 | .cpu_name = "7447/7457", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 641 | .cpu_features = CPU_FTRS_7447_10, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 642 | .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 643 | .icache_bsize = 32, |
| 644 | .dcache_bsize = 32, |
| 645 | .num_pmcs = 6, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 646 | .cpu_setup = __setup_cpu_745x, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 647 | .oprofile_cpu_type = "ppc/7450", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 648 | .oprofile_type = PPC_OPROFILE_G4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 649 | .platform = "ppc7450", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 650 | }, |
| 651 | { /* 7447/7457 Rev 1.1 */ |
| 652 | .pvr_mask = 0xffffffff, |
| 653 | .pvr_value = 0x80020101, |
| 654 | .cpu_name = "7447/7457", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 655 | .cpu_features = CPU_FTRS_7447_10, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 656 | .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 657 | .icache_bsize = 32, |
| 658 | .dcache_bsize = 32, |
| 659 | .num_pmcs = 6, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 660 | .cpu_setup = __setup_cpu_745x, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 661 | .oprofile_cpu_type = "ppc/7450", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 662 | .oprofile_type = PPC_OPROFILE_G4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 663 | .platform = "ppc7450", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 664 | }, |
| 665 | { /* 7447/7457 Rev 1.2 and later */ |
| 666 | .pvr_mask = 0xffff0000, |
| 667 | .pvr_value = 0x80020000, |
| 668 | .cpu_name = "7447/7457", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 669 | .cpu_features = CPU_FTRS_7447, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 670 | .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 671 | .icache_bsize = 32, |
| 672 | .dcache_bsize = 32, |
| 673 | .num_pmcs = 6, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 674 | .cpu_setup = __setup_cpu_745x, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 675 | .oprofile_cpu_type = "ppc/7450", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 676 | .oprofile_type = PPC_OPROFILE_G4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 677 | .platform = "ppc7450", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 678 | }, |
| 679 | { /* 7447A */ |
| 680 | .pvr_mask = 0xffff0000, |
| 681 | .pvr_value = 0x80030000, |
| 682 | .cpu_name = "7447A", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 683 | .cpu_features = CPU_FTRS_7447A, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 684 | .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 685 | .icache_bsize = 32, |
| 686 | .dcache_bsize = 32, |
| 687 | .num_pmcs = 6, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 688 | .cpu_setup = __setup_cpu_745x, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 689 | .oprofile_cpu_type = "ppc/7450", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 690 | .oprofile_type = PPC_OPROFILE_G4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 691 | .platform = "ppc7450", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 692 | }, |
Kumar Gala | bbde630 | 2005-09-03 15:55:55 -0700 | [diff] [blame] | 693 | { /* 7448 */ |
| 694 | .pvr_mask = 0xffff0000, |
| 695 | .pvr_value = 0x80040000, |
| 696 | .cpu_name = "7448", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 697 | .cpu_features = CPU_FTRS_7447A, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 698 | .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Kumar Gala | bbde630 | 2005-09-03 15:55:55 -0700 | [diff] [blame] | 699 | .icache_bsize = 32, |
| 700 | .dcache_bsize = 32, |
| 701 | .num_pmcs = 6, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 702 | .cpu_setup = __setup_cpu_745x, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 703 | .oprofile_cpu_type = "ppc/7450", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 704 | .oprofile_type = PPC_OPROFILE_G4, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 705 | .platform = "ppc7450", |
Kumar Gala | bbde630 | 2005-09-03 15:55:55 -0700 | [diff] [blame] | 706 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 707 | { /* 82xx (8240, 8245, 8260 are all 603e cores) */ |
| 708 | .pvr_mask = 0x7fff0000, |
| 709 | .pvr_value = 0x00810000, |
| 710 | .cpu_name = "82xx", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 711 | .cpu_features = CPU_FTRS_82XX, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 712 | .cpu_user_features = COMMON_USER, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 713 | .icache_bsize = 32, |
| 714 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 715 | .cpu_setup = __setup_cpu_603, |
| 716 | .platform = "ppc603", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 717 | }, |
| 718 | { /* All G2_LE (603e core, plus some) have the same pvr */ |
| 719 | .pvr_mask = 0x7fff0000, |
| 720 | .pvr_value = 0x00820000, |
| 721 | .cpu_name = "G2_LE", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 722 | .cpu_features = CPU_FTRS_G2_LE, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 723 | .cpu_user_features = COMMON_USER, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 724 | .icache_bsize = 32, |
| 725 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 726 | .cpu_setup = __setup_cpu_603, |
| 727 | .platform = "ppc603", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 728 | }, |
| 729 | { /* e300 (a 603e core, plus some) on 83xx */ |
| 730 | .pvr_mask = 0x7fff0000, |
| 731 | .pvr_value = 0x00830000, |
| 732 | .cpu_name = "e300", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 733 | .cpu_features = CPU_FTRS_E300, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 734 | .cpu_user_features = COMMON_USER, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 735 | .icache_bsize = 32, |
| 736 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 737 | .cpu_setup = __setup_cpu_603, |
| 738 | .platform = "ppc603", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 739 | }, |
| 740 | { /* default match, we assume split I/D cache & TB (non-601)... */ |
| 741 | .pvr_mask = 0x00000000, |
| 742 | .pvr_value = 0x00000000, |
| 743 | .cpu_name = "(generic PPC)", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 744 | .cpu_features = CPU_FTRS_CLASSIC32, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 745 | .cpu_user_features = COMMON_USER, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 746 | .icache_bsize = 32, |
| 747 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 748 | .platform = "ppc603", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 749 | }, |
| 750 | #endif /* CLASSIC_PPC */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 751 | #ifdef CONFIG_8xx |
| 752 | { /* 8xx */ |
| 753 | .pvr_mask = 0xffff0000, |
| 754 | .pvr_value = 0x00500000, |
| 755 | .cpu_name = "8xx", |
| 756 | /* CPU_FTR_MAYBE_CAN_DOZE is possible, |
| 757 | * if the 8xx code is there.... */ |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 758 | .cpu_features = CPU_FTRS_8XX, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 759 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
| 760 | .icache_bsize = 16, |
| 761 | .dcache_bsize = 16, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 762 | .platform = "ppc823", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 763 | }, |
| 764 | #endif /* CONFIG_8xx */ |
| 765 | #ifdef CONFIG_40x |
| 766 | { /* 403GC */ |
| 767 | .pvr_mask = 0xffffff00, |
| 768 | .pvr_value = 0x00200200, |
| 769 | .cpu_name = "403GC", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 770 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 771 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
| 772 | .icache_bsize = 16, |
| 773 | .dcache_bsize = 16, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 774 | .platform = "ppc403", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 775 | }, |
| 776 | { /* 403GCX */ |
| 777 | .pvr_mask = 0xffffff00, |
| 778 | .pvr_value = 0x00201400, |
| 779 | .cpu_name = "403GCX", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 780 | .cpu_features = CPU_FTRS_40X, |
Paul Mackerras | 9859901 | 2005-10-22 16:51:34 +1000 | [diff] [blame] | 781 | .cpu_user_features = PPC_FEATURE_32 | |
| 782 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 783 | .icache_bsize = 16, |
| 784 | .dcache_bsize = 16, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 785 | .platform = "ppc403", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 786 | }, |
| 787 | { /* 403G ?? */ |
| 788 | .pvr_mask = 0xffff0000, |
| 789 | .pvr_value = 0x00200000, |
| 790 | .cpu_name = "403G ??", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 791 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 792 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
| 793 | .icache_bsize = 16, |
| 794 | .dcache_bsize = 16, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 795 | .platform = "ppc403", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 796 | }, |
| 797 | { /* 405GP */ |
| 798 | .pvr_mask = 0xffff0000, |
| 799 | .pvr_value = 0x40110000, |
| 800 | .cpu_name = "405GP", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 801 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 802 | .cpu_user_features = PPC_FEATURE_32 | |
| 803 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, |
| 804 | .icache_bsize = 32, |
| 805 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 806 | .platform = "ppc405", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 807 | }, |
| 808 | { /* STB 03xxx */ |
| 809 | .pvr_mask = 0xffff0000, |
| 810 | .pvr_value = 0x40130000, |
| 811 | .cpu_name = "STB03xxx", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 812 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 813 | .cpu_user_features = PPC_FEATURE_32 | |
| 814 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, |
| 815 | .icache_bsize = 32, |
| 816 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 817 | .platform = "ppc405", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 818 | }, |
| 819 | { /* STB 04xxx */ |
| 820 | .pvr_mask = 0xffff0000, |
| 821 | .pvr_value = 0x41810000, |
| 822 | .cpu_name = "STB04xxx", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 823 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 824 | .cpu_user_features = PPC_FEATURE_32 | |
| 825 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, |
| 826 | .icache_bsize = 32, |
| 827 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 828 | .platform = "ppc405", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 829 | }, |
| 830 | { /* NP405L */ |
| 831 | .pvr_mask = 0xffff0000, |
| 832 | .pvr_value = 0x41610000, |
| 833 | .cpu_name = "NP405L", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 834 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 835 | .cpu_user_features = PPC_FEATURE_32 | |
| 836 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, |
| 837 | .icache_bsize = 32, |
| 838 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 839 | .platform = "ppc405", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 840 | }, |
| 841 | { /* NP4GS3 */ |
| 842 | .pvr_mask = 0xffff0000, |
| 843 | .pvr_value = 0x40B10000, |
| 844 | .cpu_name = "NP4GS3", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 845 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 846 | .cpu_user_features = PPC_FEATURE_32 | |
| 847 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, |
| 848 | .icache_bsize = 32, |
| 849 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 850 | .platform = "ppc405", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 851 | }, |
| 852 | { /* NP405H */ |
| 853 | .pvr_mask = 0xffff0000, |
| 854 | .pvr_value = 0x41410000, |
| 855 | .cpu_name = "NP405H", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 856 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 857 | .cpu_user_features = PPC_FEATURE_32 | |
| 858 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, |
| 859 | .icache_bsize = 32, |
| 860 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 861 | .platform = "ppc405", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 862 | }, |
| 863 | { /* 405GPr */ |
| 864 | .pvr_mask = 0xffff0000, |
| 865 | .pvr_value = 0x50910000, |
| 866 | .cpu_name = "405GPr", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 867 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 868 | .cpu_user_features = PPC_FEATURE_32 | |
| 869 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, |
| 870 | .icache_bsize = 32, |
| 871 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 872 | .platform = "ppc405", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 873 | }, |
| 874 | { /* STBx25xx */ |
| 875 | .pvr_mask = 0xffff0000, |
| 876 | .pvr_value = 0x51510000, |
| 877 | .cpu_name = "STBx25xx", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 878 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 879 | .cpu_user_features = PPC_FEATURE_32 | |
| 880 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, |
| 881 | .icache_bsize = 32, |
| 882 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 883 | .platform = "ppc405", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 884 | }, |
| 885 | { /* 405LP */ |
| 886 | .pvr_mask = 0xffff0000, |
| 887 | .pvr_value = 0x41F10000, |
| 888 | .cpu_name = "405LP", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 889 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 890 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
| 891 | .icache_bsize = 32, |
| 892 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 893 | .platform = "ppc405", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 894 | }, |
| 895 | { /* Xilinx Virtex-II Pro */ |
Grant C. Likely | 72646c7 | 2006-01-19 01:13:20 -0700 | [diff] [blame] | 896 | .pvr_mask = 0xfffff000, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 897 | .pvr_value = 0x20010000, |
| 898 | .cpu_name = "Virtex-II Pro", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 899 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 900 | .cpu_user_features = PPC_FEATURE_32 | |
| 901 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, |
| 902 | .icache_bsize = 32, |
| 903 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 904 | .platform = "ppc405", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 905 | }, |
Grant C. Likely | 72646c7 | 2006-01-19 01:13:20 -0700 | [diff] [blame] | 906 | { /* Xilinx Virtex-4 FX */ |
| 907 | .pvr_mask = 0xfffff000, |
| 908 | .pvr_value = 0x20011000, |
| 909 | .cpu_name = "Virtex-4 FX", |
| 910 | .cpu_features = CPU_FTRS_40X, |
| 911 | .cpu_user_features = PPC_FEATURE_32 | |
| 912 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, |
| 913 | .icache_bsize = 32, |
| 914 | .dcache_bsize = 32, |
| 915 | }, |
Eugene Surovegin | ad95d60 | 2005-06-07 13:22:09 -0700 | [diff] [blame] | 916 | { /* 405EP */ |
| 917 | .pvr_mask = 0xffff0000, |
| 918 | .pvr_value = 0x51210000, |
| 919 | .cpu_name = "405EP", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 920 | .cpu_features = CPU_FTRS_40X, |
Eugene Surovegin | ad95d60 | 2005-06-07 13:22:09 -0700 | [diff] [blame] | 921 | .cpu_user_features = PPC_FEATURE_32 | |
| 922 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, |
| 923 | .icache_bsize = 32, |
| 924 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 925 | .platform = "ppc405", |
Eugene Surovegin | ad95d60 | 2005-06-07 13:22:09 -0700 | [diff] [blame] | 926 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 927 | |
| 928 | #endif /* CONFIG_40x */ |
| 929 | #ifdef CONFIG_44x |
Matt Porter | c9cf73a | 2005-07-31 22:34:52 -0700 | [diff] [blame] | 930 | { |
| 931 | .pvr_mask = 0xf0000fff, |
| 932 | .pvr_value = 0x40000850, |
| 933 | .cpu_name = "440EP Rev. A", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 934 | .cpu_features = CPU_FTRS_44X, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 935 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, |
Matt Porter | c9cf73a | 2005-07-31 22:34:52 -0700 | [diff] [blame] | 936 | .icache_bsize = 32, |
| 937 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 938 | .platform = "ppc440", |
Matt Porter | c9cf73a | 2005-07-31 22:34:52 -0700 | [diff] [blame] | 939 | }, |
| 940 | { |
| 941 | .pvr_mask = 0xf0000fff, |
| 942 | .pvr_value = 0x400008d3, |
| 943 | .cpu_name = "440EP Rev. B", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 944 | .cpu_features = CPU_FTRS_44X, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 945 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, |
Matt Porter | c9cf73a | 2005-07-31 22:34:52 -0700 | [diff] [blame] | 946 | .icache_bsize = 32, |
| 947 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 948 | .platform = "ppc440", |
Matt Porter | c9cf73a | 2005-07-31 22:34:52 -0700 | [diff] [blame] | 949 | }, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 950 | { /* 440GP Rev. B */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 951 | .pvr_mask = 0xf0000fff, |
| 952 | .pvr_value = 0x40000440, |
| 953 | .cpu_name = "440GP Rev. B", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 954 | .cpu_features = CPU_FTRS_44X, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 955 | .cpu_user_features = COMMON_USER_BOOKE, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 956 | .icache_bsize = 32, |
| 957 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 958 | .platform = "ppc440gp", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 959 | }, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 960 | { /* 440GP Rev. C */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 961 | .pvr_mask = 0xf0000fff, |
| 962 | .pvr_value = 0x40000481, |
| 963 | .cpu_name = "440GP Rev. C", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 964 | .cpu_features = CPU_FTRS_44X, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 965 | .cpu_user_features = COMMON_USER_BOOKE, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 966 | .icache_bsize = 32, |
| 967 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 968 | .platform = "ppc440gp", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 969 | }, |
| 970 | { /* 440GX Rev. A */ |
| 971 | .pvr_mask = 0xf0000fff, |
| 972 | .pvr_value = 0x50000850, |
| 973 | .cpu_name = "440GX Rev. A", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 974 | .cpu_features = CPU_FTRS_44X, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 975 | .cpu_user_features = COMMON_USER_BOOKE, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 976 | .icache_bsize = 32, |
| 977 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 978 | .platform = "ppc440", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 979 | }, |
| 980 | { /* 440GX Rev. B */ |
| 981 | .pvr_mask = 0xf0000fff, |
| 982 | .pvr_value = 0x50000851, |
| 983 | .cpu_name = "440GX Rev. B", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 984 | .cpu_features = CPU_FTRS_44X, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 985 | .cpu_user_features = COMMON_USER_BOOKE, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 986 | .icache_bsize = 32, |
| 987 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 988 | .platform = "ppc440", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 989 | }, |
| 990 | { /* 440GX Rev. C */ |
| 991 | .pvr_mask = 0xf0000fff, |
| 992 | .pvr_value = 0x50000892, |
| 993 | .cpu_name = "440GX Rev. C", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 994 | .cpu_features = CPU_FTRS_44X, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 995 | .cpu_user_features = COMMON_USER_BOOKE, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 996 | .icache_bsize = 32, |
| 997 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 998 | .platform = "ppc440", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 999 | }, |
Eugene Surovegin | 9149fb3 | 2005-09-03 15:55:40 -0700 | [diff] [blame] | 1000 | { /* 440GX Rev. F */ |
| 1001 | .pvr_mask = 0xf0000fff, |
| 1002 | .pvr_value = 0x50000894, |
| 1003 | .cpu_name = "440GX Rev. F", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1004 | .cpu_features = CPU_FTRS_44X, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1005 | .cpu_user_features = COMMON_USER_BOOKE, |
Eugene Surovegin | 9149fb3 | 2005-09-03 15:55:40 -0700 | [diff] [blame] | 1006 | .icache_bsize = 32, |
| 1007 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1008 | .platform = "ppc440", |
Eugene Surovegin | 9149fb3 | 2005-09-03 15:55:40 -0700 | [diff] [blame] | 1009 | }, |
Matt Porter | 656de7e | 2005-09-03 15:55:42 -0700 | [diff] [blame] | 1010 | { /* 440SP Rev. A */ |
| 1011 | .pvr_mask = 0xff000fff, |
| 1012 | .pvr_value = 0x53000891, |
| 1013 | .cpu_name = "440SP Rev. A", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1014 | .cpu_features = CPU_FTRS_44X, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1015 | .cpu_user_features = COMMON_USER_BOOKE, |
Matt Porter | 656de7e | 2005-09-03 15:55:42 -0700 | [diff] [blame] | 1016 | .icache_bsize = 32, |
| 1017 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1018 | .platform = "ppc440", |
Matt Porter | 656de7e | 2005-09-03 15:55:42 -0700 | [diff] [blame] | 1019 | }, |
Roland Dreier | b0f7b8b | 2005-11-07 00:58:13 -0800 | [diff] [blame] | 1020 | { /* 440SPe Rev. A */ |
| 1021 | .pvr_mask = 0xff000fff, |
| 1022 | .pvr_value = 0x53000890, |
| 1023 | .cpu_name = "440SPe Rev. A", |
| 1024 | .cpu_features = CPU_FTR_SPLIT_ID_CACHE | |
| 1025 | CPU_FTR_USE_TB, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1026 | .cpu_user_features = COMMON_USER_BOOKE, |
Roland Dreier | b0f7b8b | 2005-11-07 00:58:13 -0800 | [diff] [blame] | 1027 | .icache_bsize = 32, |
| 1028 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1029 | .platform = "ppc440", |
Roland Dreier | b0f7b8b | 2005-11-07 00:58:13 -0800 | [diff] [blame] | 1030 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1031 | #endif /* CONFIG_44x */ |
Kumar Gala | 33d9e9b | 2005-06-25 14:54:37 -0700 | [diff] [blame] | 1032 | #ifdef CONFIG_FSL_BOOKE |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 1033 | { /* e200z5 */ |
Kumar Gala | 33d9e9b | 2005-06-25 14:54:37 -0700 | [diff] [blame] | 1034 | .pvr_mask = 0xfff00000, |
| 1035 | .pvr_value = 0x81000000, |
| 1036 | .cpu_name = "e200z5", |
| 1037 | /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */ |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1038 | .cpu_features = CPU_FTRS_E200, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1039 | .cpu_user_features = COMMON_USER_BOOKE | |
| 1040 | PPC_FEATURE_HAS_EFP_SINGLE | |
Kumar Gala | 33d9e9b | 2005-06-25 14:54:37 -0700 | [diff] [blame] | 1041 | PPC_FEATURE_UNIFIED_CACHE, |
| 1042 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1043 | .platform = "ppc5554", |
Kumar Gala | 33d9e9b | 2005-06-25 14:54:37 -0700 | [diff] [blame] | 1044 | }, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 1045 | { /* e200z6 */ |
Kumar Gala | 33d9e9b | 2005-06-25 14:54:37 -0700 | [diff] [blame] | 1046 | .pvr_mask = 0xfff00000, |
| 1047 | .pvr_value = 0x81100000, |
| 1048 | .cpu_name = "e200z6", |
| 1049 | /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */ |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1050 | .cpu_features = CPU_FTRS_E200, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1051 | .cpu_user_features = COMMON_USER_BOOKE | |
| 1052 | PPC_FEATURE_SPE_COMP | |
Kumar Gala | 33d9e9b | 2005-06-25 14:54:37 -0700 | [diff] [blame] | 1053 | PPC_FEATURE_HAS_EFP_SINGLE | |
| 1054 | PPC_FEATURE_UNIFIED_CACHE, |
| 1055 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1056 | .platform = "ppc5554", |
Kumar Gala | 33d9e9b | 2005-06-25 14:54:37 -0700 | [diff] [blame] | 1057 | }, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 1058 | { /* e500 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1059 | .pvr_mask = 0xffff0000, |
| 1060 | .pvr_value = 0x80200000, |
| 1061 | .cpu_name = "e500", |
| 1062 | /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */ |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1063 | .cpu_features = CPU_FTRS_E500, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1064 | .cpu_user_features = COMMON_USER_BOOKE | |
| 1065 | PPC_FEATURE_SPE_COMP | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1066 | PPC_FEATURE_HAS_EFP_SINGLE, |
| 1067 | .icache_bsize = 32, |
| 1068 | .dcache_bsize = 32, |
| 1069 | .num_pmcs = 4, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 1070 | .oprofile_cpu_type = "ppc/e500", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 1071 | .oprofile_type = PPC_OPROFILE_BOOKE, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1072 | .platform = "ppc8540", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1073 | }, |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 1074 | { /* e500v2 */ |
Kumar Gala | 5b37b70 | 2005-06-21 17:15:18 -0700 | [diff] [blame] | 1075 | .pvr_mask = 0xffff0000, |
| 1076 | .pvr_value = 0x80210000, |
| 1077 | .cpu_name = "e500v2", |
| 1078 | /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */ |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1079 | .cpu_features = CPU_FTRS_E500_2, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1080 | .cpu_user_features = COMMON_USER_BOOKE | |
| 1081 | PPC_FEATURE_SPE_COMP | |
| 1082 | PPC_FEATURE_HAS_EFP_SINGLE | |
| 1083 | PPC_FEATURE_HAS_EFP_DOUBLE, |
Kumar Gala | 5b37b70 | 2005-06-21 17:15:18 -0700 | [diff] [blame] | 1084 | .icache_bsize = 32, |
| 1085 | .dcache_bsize = 32, |
| 1086 | .num_pmcs = 4, |
Andy Fleming | 555d97a | 2005-12-15 20:02:04 -0600 | [diff] [blame] | 1087 | .oprofile_cpu_type = "ppc/e500", |
Andy Whitcroft | 7a45fb1 | 2006-01-13 12:35:49 +0000 | [diff] [blame] | 1088 | .oprofile_type = PPC_OPROFILE_BOOKE, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1089 | .platform = "ppc8548", |
Kumar Gala | 5b37b70 | 2005-06-21 17:15:18 -0700 | [diff] [blame] | 1090 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1091 | #endif |
| 1092 | #if !CLASSIC_PPC |
| 1093 | { /* default match */ |
| 1094 | .pvr_mask = 0x00000000, |
| 1095 | .pvr_value = 0x00000000, |
| 1096 | .cpu_name = "(generic PPC)", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 1097 | .cpu_features = CPU_FTRS_GENERIC_32, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1098 | .cpu_user_features = PPC_FEATURE_32, |
| 1099 | .icache_bsize = 32, |
| 1100 | .dcache_bsize = 32, |
Paul Mackerras | 80f15dc | 2006-01-14 10:11:39 +1100 | [diff] [blame] | 1101 | .platform = "powerpc", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1102 | } |
| 1103 | #endif /* !CLASSIC_PPC */ |
Stephen Rothwell | 4920960 | 2005-10-12 15:55:09 +1000 | [diff] [blame] | 1104 | #endif /* CONFIG_PPC32 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1105 | }; |