Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * arch/ppc/kernel/cputable.c |
| 3 | * |
| 4 | * Copyright (C) 2001 Ben. Herrenschmidt (benh@kernel.crashing.org) |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License |
| 8 | * as published by the Free Software Foundation; either version |
| 9 | * 2 of the License, or (at your option) any later version. |
| 10 | */ |
| 11 | |
| 12 | #include <linux/config.h> |
| 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> |
| 21 | |
Kumar Gala | 400d221 | 2005-09-27 15:13:12 -0500 | [diff] [blame^] | 22 | struct cpu_spec* cur_cpu_spec = NULL; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | |
Kumar Gala | 400d221 | 2005-09-27 15:13:12 -0500 | [diff] [blame^] | 24 | extern void __setup_cpu_603(unsigned long offset, struct cpu_spec* spec); |
| 25 | extern void __setup_cpu_604(unsigned long offset, struct cpu_spec* spec); |
| 26 | extern void __setup_cpu_750(unsigned long offset, struct cpu_spec* spec); |
| 27 | extern void __setup_cpu_750cx(unsigned long offset, struct cpu_spec* spec); |
| 28 | extern void __setup_cpu_750fx(unsigned long offset, struct cpu_spec* spec); |
| 29 | extern void __setup_cpu_7400(unsigned long offset, struct cpu_spec* spec); |
| 30 | extern void __setup_cpu_7410(unsigned long offset, struct cpu_spec* spec); |
| 31 | extern void __setup_cpu_745x(unsigned long offset, struct cpu_spec* spec); |
| 32 | extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | |
| 34 | #define CLASSIC_PPC (!defined(CONFIG_8xx) && !defined(CONFIG_4xx) && \ |
| 35 | !defined(CONFIG_POWER3) && !defined(CONFIG_POWER4) && \ |
| 36 | !defined(CONFIG_BOOKE)) |
| 37 | |
| 38 | /* This table only contains "desktop" CPUs, it need to be filled with embedded |
| 39 | * ones as well... |
| 40 | */ |
| 41 | #define COMMON_PPC (PPC_FEATURE_32 | PPC_FEATURE_HAS_FPU | \ |
| 42 | PPC_FEATURE_HAS_MMU) |
| 43 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 44 | /* We only set the spe features if the kernel was compiled with |
| 45 | * spe support |
| 46 | */ |
| 47 | #ifdef CONFIG_SPE |
| 48 | #define PPC_FEATURE_SPE_COMP PPC_FEATURE_HAS_SPE |
| 49 | #else |
| 50 | #define PPC_FEATURE_SPE_COMP 0 |
| 51 | #endif |
| 52 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 53 | struct cpu_spec cpu_specs[] = { |
| 54 | #if CLASSIC_PPC |
| 55 | { /* 601 */ |
| 56 | .pvr_mask = 0xffff0000, |
| 57 | .pvr_value = 0x00010000, |
| 58 | .cpu_name = "601", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 59 | .cpu_features = CPU_FTRS_PPC601, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 60 | .cpu_user_features = COMMON_PPC | PPC_FEATURE_601_INSTR | |
| 61 | PPC_FEATURE_UNIFIED_CACHE, |
| 62 | .icache_bsize = 32, |
| 63 | .dcache_bsize = 32, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 64 | }, |
| 65 | { /* 603 */ |
| 66 | .pvr_mask = 0xffff0000, |
| 67 | .pvr_value = 0x00030000, |
| 68 | .cpu_name = "603", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 69 | .cpu_features = CPU_FTRS_603, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 70 | .cpu_user_features = COMMON_PPC, |
| 71 | .icache_bsize = 32, |
| 72 | .dcache_bsize = 32, |
| 73 | .cpu_setup = __setup_cpu_603 |
| 74 | }, |
| 75 | { /* 603e */ |
| 76 | .pvr_mask = 0xffff0000, |
| 77 | .pvr_value = 0x00060000, |
| 78 | .cpu_name = "603e", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 79 | .cpu_features = CPU_FTRS_603, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 80 | .cpu_user_features = COMMON_PPC, |
| 81 | .icache_bsize = 32, |
| 82 | .dcache_bsize = 32, |
| 83 | .cpu_setup = __setup_cpu_603 |
| 84 | }, |
| 85 | { /* 603ev */ |
| 86 | .pvr_mask = 0xffff0000, |
| 87 | .pvr_value = 0x00070000, |
| 88 | .cpu_name = "603ev", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 89 | .cpu_features = CPU_FTRS_603, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 90 | .cpu_user_features = COMMON_PPC, |
| 91 | .icache_bsize = 32, |
| 92 | .dcache_bsize = 32, |
| 93 | .cpu_setup = __setup_cpu_603 |
| 94 | }, |
| 95 | { /* 604 */ |
| 96 | .pvr_mask = 0xffff0000, |
| 97 | .pvr_value = 0x00040000, |
| 98 | .cpu_name = "604", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 99 | .cpu_features = CPU_FTRS_604, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 100 | .cpu_user_features = COMMON_PPC, |
| 101 | .icache_bsize = 32, |
| 102 | .dcache_bsize = 32, |
| 103 | .num_pmcs = 2, |
| 104 | .cpu_setup = __setup_cpu_604 |
| 105 | }, |
| 106 | { /* 604e */ |
| 107 | .pvr_mask = 0xfffff000, |
| 108 | .pvr_value = 0x00090000, |
| 109 | .cpu_name = "604e", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 110 | .cpu_features = CPU_FTRS_604, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 111 | .cpu_user_features = COMMON_PPC, |
| 112 | .icache_bsize = 32, |
| 113 | .dcache_bsize = 32, |
| 114 | .num_pmcs = 4, |
| 115 | .cpu_setup = __setup_cpu_604 |
| 116 | }, |
| 117 | { /* 604r */ |
| 118 | .pvr_mask = 0xffff0000, |
| 119 | .pvr_value = 0x00090000, |
| 120 | .cpu_name = "604r", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 121 | .cpu_features = CPU_FTRS_604, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 122 | .cpu_user_features = COMMON_PPC, |
| 123 | .icache_bsize = 32, |
| 124 | .dcache_bsize = 32, |
| 125 | .num_pmcs = 4, |
| 126 | .cpu_setup = __setup_cpu_604 |
| 127 | }, |
| 128 | { /* 604ev */ |
| 129 | .pvr_mask = 0xffff0000, |
| 130 | .pvr_value = 0x000a0000, |
| 131 | .cpu_name = "604ev", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 132 | .cpu_features = CPU_FTRS_604, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 133 | .cpu_user_features = COMMON_PPC, |
| 134 | .icache_bsize = 32, |
| 135 | .dcache_bsize = 32, |
| 136 | .num_pmcs = 4, |
| 137 | .cpu_setup = __setup_cpu_604 |
| 138 | }, |
| 139 | { /* 740/750 (0x4202, don't support TAU ?) */ |
| 140 | .pvr_mask = 0xffffffff, |
| 141 | .pvr_value = 0x00084202, |
| 142 | .cpu_name = "740/750", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 143 | .cpu_features = CPU_FTRS_740_NOTAU, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 144 | .cpu_user_features = COMMON_PPC, |
| 145 | .icache_bsize = 32, |
| 146 | .dcache_bsize = 32, |
| 147 | .num_pmcs = 4, |
| 148 | .cpu_setup = __setup_cpu_750 |
| 149 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 150 | { /* 750CX (80100 and 8010x?) */ |
| 151 | .pvr_mask = 0xfffffff0, |
| 152 | .pvr_value = 0x00080100, |
| 153 | .cpu_name = "750CX", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 154 | .cpu_features = CPU_FTRS_750, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 155 | .cpu_user_features = COMMON_PPC, |
| 156 | .icache_bsize = 32, |
| 157 | .dcache_bsize = 32, |
| 158 | .num_pmcs = 4, |
| 159 | .cpu_setup = __setup_cpu_750cx |
| 160 | }, |
| 161 | { /* 750CX (82201 and 82202) */ |
| 162 | .pvr_mask = 0xfffffff0, |
| 163 | .pvr_value = 0x00082200, |
| 164 | .cpu_name = "750CX", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 165 | .cpu_features = CPU_FTRS_750, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 166 | .cpu_user_features = COMMON_PPC, |
| 167 | .icache_bsize = 32, |
| 168 | .dcache_bsize = 32, |
| 169 | .num_pmcs = 4, |
| 170 | .cpu_setup = __setup_cpu_750cx |
| 171 | }, |
| 172 | { /* 750CXe (82214) */ |
| 173 | .pvr_mask = 0xfffffff0, |
| 174 | .pvr_value = 0x00082210, |
| 175 | .cpu_name = "750CXe", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 176 | .cpu_features = CPU_FTRS_750, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 177 | .cpu_user_features = COMMON_PPC, |
| 178 | .icache_bsize = 32, |
| 179 | .dcache_bsize = 32, |
| 180 | .num_pmcs = 4, |
| 181 | .cpu_setup = __setup_cpu_750cx |
| 182 | }, |
Arthur Othieno | 7c31625 | 2005-09-03 15:55:52 -0700 | [diff] [blame] | 183 | { /* 750CXe "Gekko" (83214) */ |
| 184 | .pvr_mask = 0xffffffff, |
| 185 | .pvr_value = 0x00083214, |
| 186 | .cpu_name = "750CXe", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 187 | .cpu_features = CPU_FTRS_750, |
Arthur Othieno | 7c31625 | 2005-09-03 15:55:52 -0700 | [diff] [blame] | 188 | .cpu_user_features = COMMON_PPC, |
| 189 | .icache_bsize = 32, |
| 190 | .dcache_bsize = 32, |
| 191 | .num_pmcs = 4, |
| 192 | .cpu_setup = __setup_cpu_750cx |
| 193 | }, |
Arthur Othieno | ac1ff04 | 2005-09-03 15:55:51 -0700 | [diff] [blame] | 194 | { /* 745/755 */ |
| 195 | .pvr_mask = 0xfffff000, |
| 196 | .pvr_value = 0x00083000, |
| 197 | .cpu_name = "745/755", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 198 | .cpu_features = CPU_FTRS_750, |
Arthur Othieno | ac1ff04 | 2005-09-03 15:55:51 -0700 | [diff] [blame] | 199 | .cpu_user_features = COMMON_PPC, |
| 200 | .icache_bsize = 32, |
| 201 | .dcache_bsize = 32, |
| 202 | .num_pmcs = 4, |
| 203 | .cpu_setup = __setup_cpu_750 |
| 204 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 205 | { /* 750FX rev 1.x */ |
| 206 | .pvr_mask = 0xffffff00, |
| 207 | .pvr_value = 0x70000100, |
| 208 | .cpu_name = "750FX", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 209 | .cpu_features = CPU_FTRS_750FX1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 210 | .cpu_user_features = COMMON_PPC, |
| 211 | .icache_bsize = 32, |
| 212 | .dcache_bsize = 32, |
| 213 | .num_pmcs = 4, |
| 214 | .cpu_setup = __setup_cpu_750 |
| 215 | }, |
| 216 | { /* 750FX rev 2.0 must disable HID0[DPM] */ |
| 217 | .pvr_mask = 0xffffffff, |
| 218 | .pvr_value = 0x70000200, |
| 219 | .cpu_name = "750FX", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 220 | .cpu_features = CPU_FTRS_750FX2, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 221 | .cpu_user_features = COMMON_PPC, |
| 222 | .icache_bsize = 32, |
| 223 | .dcache_bsize = 32, |
| 224 | .num_pmcs = 4, |
| 225 | .cpu_setup = __setup_cpu_750 |
| 226 | }, |
| 227 | { /* 750FX (All revs except 2.0) */ |
| 228 | .pvr_mask = 0xffff0000, |
| 229 | .pvr_value = 0x70000000, |
| 230 | .cpu_name = "750FX", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 231 | .cpu_features = CPU_FTRS_750FX, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 232 | .cpu_user_features = COMMON_PPC, |
| 233 | .icache_bsize = 32, |
| 234 | .dcache_bsize = 32, |
| 235 | .num_pmcs = 4, |
| 236 | .cpu_setup = __setup_cpu_750fx |
| 237 | }, |
| 238 | { /* 750GX */ |
| 239 | .pvr_mask = 0xffff0000, |
| 240 | .pvr_value = 0x70020000, |
| 241 | .cpu_name = "750GX", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 242 | .cpu_features = CPU_FTRS_750GX, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 243 | .cpu_user_features = COMMON_PPC, |
| 244 | .icache_bsize = 32, |
| 245 | .dcache_bsize = 32, |
| 246 | .num_pmcs = 4, |
| 247 | .cpu_setup = __setup_cpu_750fx |
| 248 | }, |
| 249 | { /* 740/750 (L2CR bit need fixup for 740) */ |
| 250 | .pvr_mask = 0xffff0000, |
| 251 | .pvr_value = 0x00080000, |
| 252 | .cpu_name = "740/750", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 253 | .cpu_features = CPU_FTRS_740, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 254 | .cpu_user_features = COMMON_PPC, |
| 255 | .icache_bsize = 32, |
| 256 | .dcache_bsize = 32, |
| 257 | .num_pmcs = 4, |
| 258 | .cpu_setup = __setup_cpu_750 |
| 259 | }, |
| 260 | { /* 7400 rev 1.1 ? (no TAU) */ |
| 261 | .pvr_mask = 0xffffffff, |
| 262 | .pvr_value = 0x000c1101, |
| 263 | .cpu_name = "7400 (1.1)", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 264 | .cpu_features = CPU_FTRS_7400_NOTAU, |
| 265 | .cpu_user_features = COMMON_PPC | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 266 | .icache_bsize = 32, |
| 267 | .dcache_bsize = 32, |
| 268 | .num_pmcs = 4, |
| 269 | .cpu_setup = __setup_cpu_7400 |
| 270 | }, |
| 271 | { /* 7400 */ |
| 272 | .pvr_mask = 0xffff0000, |
| 273 | .pvr_value = 0x000c0000, |
| 274 | .cpu_name = "7400", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 275 | .cpu_features = CPU_FTRS_7400, |
| 276 | .cpu_user_features = COMMON_PPC | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 277 | .icache_bsize = 32, |
| 278 | .dcache_bsize = 32, |
| 279 | .num_pmcs = 4, |
| 280 | .cpu_setup = __setup_cpu_7400 |
| 281 | }, |
| 282 | { /* 7410 */ |
| 283 | .pvr_mask = 0xffff0000, |
| 284 | .pvr_value = 0x800c0000, |
| 285 | .cpu_name = "7410", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 286 | .cpu_features = CPU_FTRS_7400, |
| 287 | .cpu_user_features = COMMON_PPC | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 288 | .icache_bsize = 32, |
| 289 | .dcache_bsize = 32, |
| 290 | .num_pmcs = 4, |
| 291 | .cpu_setup = __setup_cpu_7410 |
| 292 | }, |
| 293 | { /* 7450 2.0 - no doze/nap */ |
| 294 | .pvr_mask = 0xffffffff, |
| 295 | .pvr_value = 0x80000200, |
| 296 | .cpu_name = "7450", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 297 | .cpu_features = CPU_FTRS_7450_20, |
| 298 | .cpu_user_features = COMMON_PPC | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 299 | .icache_bsize = 32, |
| 300 | .dcache_bsize = 32, |
| 301 | .num_pmcs = 6, |
| 302 | .cpu_setup = __setup_cpu_745x |
| 303 | }, |
| 304 | { /* 7450 2.1 */ |
| 305 | .pvr_mask = 0xffffffff, |
| 306 | .pvr_value = 0x80000201, |
| 307 | .cpu_name = "7450", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 308 | .cpu_features = CPU_FTRS_7450_21, |
| 309 | .cpu_user_features = COMMON_PPC | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 310 | .icache_bsize = 32, |
| 311 | .dcache_bsize = 32, |
| 312 | .num_pmcs = 6, |
| 313 | .cpu_setup = __setup_cpu_745x |
| 314 | }, |
| 315 | { /* 7450 2.3 and newer */ |
| 316 | .pvr_mask = 0xffff0000, |
| 317 | .pvr_value = 0x80000000, |
| 318 | .cpu_name = "7450", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 319 | .cpu_features = CPU_FTRS_7450_23, |
| 320 | .cpu_user_features = COMMON_PPC | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 321 | .icache_bsize = 32, |
| 322 | .dcache_bsize = 32, |
| 323 | .num_pmcs = 6, |
| 324 | .cpu_setup = __setup_cpu_745x |
| 325 | }, |
| 326 | { /* 7455 rev 1.x */ |
| 327 | .pvr_mask = 0xffffff00, |
| 328 | .pvr_value = 0x80010100, |
| 329 | .cpu_name = "7455", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 330 | .cpu_features = CPU_FTRS_7455_1, |
| 331 | .cpu_user_features = COMMON_PPC | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 332 | .icache_bsize = 32, |
| 333 | .dcache_bsize = 32, |
| 334 | .num_pmcs = 6, |
| 335 | .cpu_setup = __setup_cpu_745x |
| 336 | }, |
| 337 | { /* 7455 rev 2.0 */ |
| 338 | .pvr_mask = 0xffffffff, |
| 339 | .pvr_value = 0x80010200, |
| 340 | .cpu_name = "7455", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 341 | .cpu_features = CPU_FTRS_7455_20, |
| 342 | .cpu_user_features = COMMON_PPC | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 343 | .icache_bsize = 32, |
| 344 | .dcache_bsize = 32, |
| 345 | .num_pmcs = 6, |
| 346 | .cpu_setup = __setup_cpu_745x |
| 347 | }, |
| 348 | { /* 7455 others */ |
| 349 | .pvr_mask = 0xffff0000, |
| 350 | .pvr_value = 0x80010000, |
| 351 | .cpu_name = "7455", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 352 | .cpu_features = CPU_FTRS_7455, |
| 353 | .cpu_user_features = COMMON_PPC | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 354 | .icache_bsize = 32, |
| 355 | .dcache_bsize = 32, |
| 356 | .num_pmcs = 6, |
| 357 | .cpu_setup = __setup_cpu_745x |
| 358 | }, |
| 359 | { /* 7447/7457 Rev 1.0 */ |
| 360 | .pvr_mask = 0xffffffff, |
| 361 | .pvr_value = 0x80020100, |
| 362 | .cpu_name = "7447/7457", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 363 | .cpu_features = CPU_FTRS_7447_10, |
| 364 | .cpu_user_features = COMMON_PPC | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 365 | .icache_bsize = 32, |
| 366 | .dcache_bsize = 32, |
| 367 | .num_pmcs = 6, |
| 368 | .cpu_setup = __setup_cpu_745x |
| 369 | }, |
| 370 | { /* 7447/7457 Rev 1.1 */ |
| 371 | .pvr_mask = 0xffffffff, |
| 372 | .pvr_value = 0x80020101, |
| 373 | .cpu_name = "7447/7457", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 374 | .cpu_features = CPU_FTRS_7447_10, |
| 375 | .cpu_user_features = COMMON_PPC | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 376 | .icache_bsize = 32, |
| 377 | .dcache_bsize = 32, |
| 378 | .num_pmcs = 6, |
| 379 | .cpu_setup = __setup_cpu_745x |
| 380 | }, |
| 381 | { /* 7447/7457 Rev 1.2 and later */ |
| 382 | .pvr_mask = 0xffff0000, |
| 383 | .pvr_value = 0x80020000, |
| 384 | .cpu_name = "7447/7457", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 385 | .cpu_features = CPU_FTRS_7447, |
| 386 | .cpu_user_features = COMMON_PPC | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 387 | .icache_bsize = 32, |
| 388 | .dcache_bsize = 32, |
| 389 | .num_pmcs = 6, |
| 390 | .cpu_setup = __setup_cpu_745x |
| 391 | }, |
| 392 | { /* 7447A */ |
| 393 | .pvr_mask = 0xffff0000, |
| 394 | .pvr_value = 0x80030000, |
| 395 | .cpu_name = "7447A", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 396 | .cpu_features = CPU_FTRS_7447A, |
| 397 | .cpu_user_features = COMMON_PPC | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 398 | .icache_bsize = 32, |
| 399 | .dcache_bsize = 32, |
| 400 | .num_pmcs = 6, |
| 401 | .cpu_setup = __setup_cpu_745x |
| 402 | }, |
Kumar Gala | bbde630 | 2005-09-03 15:55:55 -0700 | [diff] [blame] | 403 | { /* 7448 */ |
| 404 | .pvr_mask = 0xffff0000, |
| 405 | .pvr_value = 0x80040000, |
| 406 | .cpu_name = "7448", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 407 | .cpu_features = CPU_FTRS_7447A, |
| 408 | .cpu_user_features = COMMON_PPC | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Kumar Gala | bbde630 | 2005-09-03 15:55:55 -0700 | [diff] [blame] | 409 | .icache_bsize = 32, |
| 410 | .dcache_bsize = 32, |
| 411 | .num_pmcs = 6, |
| 412 | .cpu_setup = __setup_cpu_745x |
| 413 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 414 | { /* 82xx (8240, 8245, 8260 are all 603e cores) */ |
| 415 | .pvr_mask = 0x7fff0000, |
| 416 | .pvr_value = 0x00810000, |
| 417 | .cpu_name = "82xx", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 418 | .cpu_features = CPU_FTRS_82XX, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 419 | .cpu_user_features = COMMON_PPC, |
| 420 | .icache_bsize = 32, |
| 421 | .dcache_bsize = 32, |
| 422 | .cpu_setup = __setup_cpu_603 |
| 423 | }, |
| 424 | { /* All G2_LE (603e core, plus some) have the same pvr */ |
| 425 | .pvr_mask = 0x7fff0000, |
| 426 | .pvr_value = 0x00820000, |
| 427 | .cpu_name = "G2_LE", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 428 | .cpu_features = CPU_FTRS_G2_LE, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 429 | .cpu_user_features = COMMON_PPC, |
| 430 | .icache_bsize = 32, |
| 431 | .dcache_bsize = 32, |
| 432 | .cpu_setup = __setup_cpu_603 |
| 433 | }, |
| 434 | { /* e300 (a 603e core, plus some) on 83xx */ |
| 435 | .pvr_mask = 0x7fff0000, |
| 436 | .pvr_value = 0x00830000, |
| 437 | .cpu_name = "e300", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 438 | .cpu_features = CPU_FTRS_E300, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 439 | .cpu_user_features = COMMON_PPC, |
| 440 | .icache_bsize = 32, |
| 441 | .dcache_bsize = 32, |
| 442 | .cpu_setup = __setup_cpu_603 |
| 443 | }, |
| 444 | { /* default match, we assume split I/D cache & TB (non-601)... */ |
| 445 | .pvr_mask = 0x00000000, |
| 446 | .pvr_value = 0x00000000, |
| 447 | .cpu_name = "(generic PPC)", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 448 | .cpu_features = CPU_FTRS_CLASSIC32, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 449 | .cpu_user_features = COMMON_PPC, |
| 450 | .icache_bsize = 32, |
| 451 | .dcache_bsize = 32, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 452 | }, |
| 453 | #endif /* CLASSIC_PPC */ |
| 454 | #ifdef CONFIG_PPC64BRIDGE |
| 455 | { /* Power3 */ |
| 456 | .pvr_mask = 0xffff0000, |
| 457 | .pvr_value = 0x00400000, |
| 458 | .cpu_name = "Power3 (630)", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 459 | .cpu_features = CPU_FTRS_POWER3_32, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 460 | .cpu_user_features = COMMON_PPC | PPC_FEATURE_64, |
| 461 | .icache_bsize = 128, |
| 462 | .dcache_bsize = 128, |
| 463 | .num_pmcs = 8, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 464 | }, |
| 465 | { /* Power3+ */ |
| 466 | .pvr_mask = 0xffff0000, |
| 467 | .pvr_value = 0x00410000, |
| 468 | .cpu_name = "Power3 (630+)", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 469 | .cpu_features = CPU_FTRS_POWER3_32, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 470 | .cpu_user_features = COMMON_PPC | PPC_FEATURE_64, |
| 471 | .icache_bsize = 128, |
| 472 | .dcache_bsize = 128, |
| 473 | .num_pmcs = 8, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 474 | }, |
| 475 | { /* I-star */ |
| 476 | .pvr_mask = 0xffff0000, |
| 477 | .pvr_value = 0x00360000, |
| 478 | .cpu_name = "I-star", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 479 | .cpu_features = CPU_FTRS_POWER3_32, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 480 | .cpu_user_features = COMMON_PPC | PPC_FEATURE_64, |
| 481 | .icache_bsize = 128, |
| 482 | .dcache_bsize = 128, |
| 483 | .num_pmcs = 8, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 484 | }, |
| 485 | { /* S-star */ |
| 486 | .pvr_mask = 0xffff0000, |
| 487 | .pvr_value = 0x00370000, |
| 488 | .cpu_name = "S-star", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 489 | .cpu_features = CPU_FTRS_POWER3_32, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 490 | .cpu_user_features = COMMON_PPC | PPC_FEATURE_64, |
| 491 | .icache_bsize = 128, |
| 492 | .dcache_bsize = 128, |
| 493 | .num_pmcs = 8, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 494 | }, |
| 495 | #endif /* CONFIG_PPC64BRIDGE */ |
| 496 | #ifdef CONFIG_POWER4 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 497 | { /* PPC970FX */ |
| 498 | .pvr_mask = 0xffff0000, |
| 499 | .pvr_value = 0x003c0000, |
| 500 | .cpu_name = "PPC970FX", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 501 | .cpu_features = CPU_FTRS_970_32, |
| 502 | .cpu_user_features = COMMON_PPC | PPC_FEATURE_64 | PPC_FEATURE_HAS_ALTIVEC_COMP, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 503 | .icache_bsize = 128, |
| 504 | .dcache_bsize = 128, |
| 505 | .num_pmcs = 8, |
| 506 | .cpu_setup = __setup_cpu_ppc970 |
| 507 | }, |
| 508 | #endif /* CONFIG_POWER4 */ |
| 509 | #ifdef CONFIG_8xx |
| 510 | { /* 8xx */ |
| 511 | .pvr_mask = 0xffff0000, |
| 512 | .pvr_value = 0x00500000, |
| 513 | .cpu_name = "8xx", |
| 514 | /* CPU_FTR_MAYBE_CAN_DOZE is possible, |
| 515 | * if the 8xx code is there.... */ |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 516 | .cpu_features = CPU_FTRS_8XX, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 517 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
| 518 | .icache_bsize = 16, |
| 519 | .dcache_bsize = 16, |
| 520 | }, |
| 521 | #endif /* CONFIG_8xx */ |
| 522 | #ifdef CONFIG_40x |
| 523 | { /* 403GC */ |
| 524 | .pvr_mask = 0xffffff00, |
| 525 | .pvr_value = 0x00200200, |
| 526 | .cpu_name = "403GC", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 527 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 528 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
| 529 | .icache_bsize = 16, |
| 530 | .dcache_bsize = 16, |
| 531 | }, |
| 532 | { /* 403GCX */ |
| 533 | .pvr_mask = 0xffffff00, |
| 534 | .pvr_value = 0x00201400, |
| 535 | .cpu_name = "403GCX", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 536 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 537 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
| 538 | .icache_bsize = 16, |
| 539 | .dcache_bsize = 16, |
| 540 | }, |
| 541 | { /* 403G ?? */ |
| 542 | .pvr_mask = 0xffff0000, |
| 543 | .pvr_value = 0x00200000, |
| 544 | .cpu_name = "403G ??", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 545 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 546 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
| 547 | .icache_bsize = 16, |
| 548 | .dcache_bsize = 16, |
| 549 | }, |
| 550 | { /* 405GP */ |
| 551 | .pvr_mask = 0xffff0000, |
| 552 | .pvr_value = 0x40110000, |
| 553 | .cpu_name = "405GP", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 554 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 555 | .cpu_user_features = PPC_FEATURE_32 | |
| 556 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, |
| 557 | .icache_bsize = 32, |
| 558 | .dcache_bsize = 32, |
| 559 | }, |
| 560 | { /* STB 03xxx */ |
| 561 | .pvr_mask = 0xffff0000, |
| 562 | .pvr_value = 0x40130000, |
| 563 | .cpu_name = "STB03xxx", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 564 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 565 | .cpu_user_features = PPC_FEATURE_32 | |
| 566 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, |
| 567 | .icache_bsize = 32, |
| 568 | .dcache_bsize = 32, |
| 569 | }, |
| 570 | { /* STB 04xxx */ |
| 571 | .pvr_mask = 0xffff0000, |
| 572 | .pvr_value = 0x41810000, |
| 573 | .cpu_name = "STB04xxx", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 574 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 575 | .cpu_user_features = PPC_FEATURE_32 | |
| 576 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, |
| 577 | .icache_bsize = 32, |
| 578 | .dcache_bsize = 32, |
| 579 | }, |
| 580 | { /* NP405L */ |
| 581 | .pvr_mask = 0xffff0000, |
| 582 | .pvr_value = 0x41610000, |
| 583 | .cpu_name = "NP405L", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 584 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 585 | .cpu_user_features = PPC_FEATURE_32 | |
| 586 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, |
| 587 | .icache_bsize = 32, |
| 588 | .dcache_bsize = 32, |
| 589 | }, |
| 590 | { /* NP4GS3 */ |
| 591 | .pvr_mask = 0xffff0000, |
| 592 | .pvr_value = 0x40B10000, |
| 593 | .cpu_name = "NP4GS3", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 594 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 595 | .cpu_user_features = PPC_FEATURE_32 | |
| 596 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, |
| 597 | .icache_bsize = 32, |
| 598 | .dcache_bsize = 32, |
| 599 | }, |
| 600 | { /* NP405H */ |
| 601 | .pvr_mask = 0xffff0000, |
| 602 | .pvr_value = 0x41410000, |
| 603 | .cpu_name = "NP405H", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 604 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 605 | .cpu_user_features = PPC_FEATURE_32 | |
| 606 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, |
| 607 | .icache_bsize = 32, |
| 608 | .dcache_bsize = 32, |
| 609 | }, |
| 610 | { /* 405GPr */ |
| 611 | .pvr_mask = 0xffff0000, |
| 612 | .pvr_value = 0x50910000, |
| 613 | .cpu_name = "405GPr", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 614 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 615 | .cpu_user_features = PPC_FEATURE_32 | |
| 616 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, |
| 617 | .icache_bsize = 32, |
| 618 | .dcache_bsize = 32, |
| 619 | }, |
| 620 | { /* STBx25xx */ |
| 621 | .pvr_mask = 0xffff0000, |
| 622 | .pvr_value = 0x51510000, |
| 623 | .cpu_name = "STBx25xx", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 624 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 625 | .cpu_user_features = PPC_FEATURE_32 | |
| 626 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, |
| 627 | .icache_bsize = 32, |
| 628 | .dcache_bsize = 32, |
| 629 | }, |
| 630 | { /* 405LP */ |
| 631 | .pvr_mask = 0xffff0000, |
| 632 | .pvr_value = 0x41F10000, |
| 633 | .cpu_name = "405LP", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 634 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 635 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
| 636 | .icache_bsize = 32, |
| 637 | .dcache_bsize = 32, |
| 638 | }, |
| 639 | { /* Xilinx Virtex-II Pro */ |
| 640 | .pvr_mask = 0xffff0000, |
| 641 | .pvr_value = 0x20010000, |
| 642 | .cpu_name = "Virtex-II Pro", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 643 | .cpu_features = CPU_FTRS_40X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 644 | .cpu_user_features = PPC_FEATURE_32 | |
| 645 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, |
| 646 | .icache_bsize = 32, |
| 647 | .dcache_bsize = 32, |
| 648 | }, |
Eugene Surovegin | ad95d60 | 2005-06-07 13:22:09 -0700 | [diff] [blame] | 649 | { /* 405EP */ |
| 650 | .pvr_mask = 0xffff0000, |
| 651 | .pvr_value = 0x51210000, |
| 652 | .cpu_name = "405EP", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 653 | .cpu_features = CPU_FTRS_40X, |
Eugene Surovegin | ad95d60 | 2005-06-07 13:22:09 -0700 | [diff] [blame] | 654 | .cpu_user_features = PPC_FEATURE_32 | |
| 655 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, |
| 656 | .icache_bsize = 32, |
| 657 | .dcache_bsize = 32, |
| 658 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 659 | |
| 660 | #endif /* CONFIG_40x */ |
| 661 | #ifdef CONFIG_44x |
Matt Porter | c9cf73a | 2005-07-31 22:34:52 -0700 | [diff] [blame] | 662 | { |
| 663 | .pvr_mask = 0xf0000fff, |
| 664 | .pvr_value = 0x40000850, |
| 665 | .cpu_name = "440EP Rev. A", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 666 | .cpu_features = CPU_FTRS_44X, |
Matt Porter | c9cf73a | 2005-07-31 22:34:52 -0700 | [diff] [blame] | 667 | .cpu_user_features = COMMON_PPC, /* 440EP has an FPU */ |
| 668 | .icache_bsize = 32, |
| 669 | .dcache_bsize = 32, |
| 670 | }, |
| 671 | { |
| 672 | .pvr_mask = 0xf0000fff, |
| 673 | .pvr_value = 0x400008d3, |
| 674 | .cpu_name = "440EP Rev. B", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 675 | .cpu_features = CPU_FTRS_44X, |
Matt Porter | c9cf73a | 2005-07-31 22:34:52 -0700 | [diff] [blame] | 676 | .cpu_user_features = COMMON_PPC, /* 440EP has an FPU */ |
| 677 | .icache_bsize = 32, |
| 678 | .dcache_bsize = 32, |
| 679 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 680 | { /* 440GP Rev. B */ |
| 681 | .pvr_mask = 0xf0000fff, |
| 682 | .pvr_value = 0x40000440, |
| 683 | .cpu_name = "440GP Rev. B", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 684 | .cpu_features = CPU_FTRS_44X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 685 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
| 686 | .icache_bsize = 32, |
| 687 | .dcache_bsize = 32, |
| 688 | }, |
| 689 | { /* 440GP Rev. C */ |
| 690 | .pvr_mask = 0xf0000fff, |
| 691 | .pvr_value = 0x40000481, |
| 692 | .cpu_name = "440GP Rev. C", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 693 | .cpu_features = CPU_FTRS_44X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 694 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
| 695 | .icache_bsize = 32, |
| 696 | .dcache_bsize = 32, |
| 697 | }, |
| 698 | { /* 440GX Rev. A */ |
| 699 | .pvr_mask = 0xf0000fff, |
| 700 | .pvr_value = 0x50000850, |
| 701 | .cpu_name = "440GX Rev. A", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 702 | .cpu_features = CPU_FTRS_44X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 703 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
| 704 | .icache_bsize = 32, |
| 705 | .dcache_bsize = 32, |
| 706 | }, |
| 707 | { /* 440GX Rev. B */ |
| 708 | .pvr_mask = 0xf0000fff, |
| 709 | .pvr_value = 0x50000851, |
| 710 | .cpu_name = "440GX Rev. B", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 711 | .cpu_features = CPU_FTRS_44X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 712 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
| 713 | .icache_bsize = 32, |
| 714 | .dcache_bsize = 32, |
| 715 | }, |
| 716 | { /* 440GX Rev. C */ |
| 717 | .pvr_mask = 0xf0000fff, |
| 718 | .pvr_value = 0x50000892, |
| 719 | .cpu_name = "440GX Rev. C", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 720 | .cpu_features = CPU_FTRS_44X, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 721 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
| 722 | .icache_bsize = 32, |
| 723 | .dcache_bsize = 32, |
| 724 | }, |
Eugene Surovegin | 9149fb3 | 2005-09-03 15:55:40 -0700 | [diff] [blame] | 725 | { /* 440GX Rev. F */ |
| 726 | .pvr_mask = 0xf0000fff, |
| 727 | .pvr_value = 0x50000894, |
| 728 | .cpu_name = "440GX Rev. F", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 729 | .cpu_features = CPU_FTRS_44X, |
Eugene Surovegin | 9149fb3 | 2005-09-03 15:55:40 -0700 | [diff] [blame] | 730 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
| 731 | .icache_bsize = 32, |
| 732 | .dcache_bsize = 32, |
| 733 | }, |
Matt Porter | 656de7e | 2005-09-03 15:55:42 -0700 | [diff] [blame] | 734 | { /* 440SP Rev. A */ |
| 735 | .pvr_mask = 0xff000fff, |
| 736 | .pvr_value = 0x53000891, |
| 737 | .cpu_name = "440SP Rev. A", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 738 | .cpu_features = CPU_FTRS_44X, |
Matt Porter | 656de7e | 2005-09-03 15:55:42 -0700 | [diff] [blame] | 739 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
| 740 | .icache_bsize = 32, |
| 741 | .dcache_bsize = 32, |
| 742 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 743 | #endif /* CONFIG_44x */ |
Kumar Gala | 33d9e9b | 2005-06-25 14:54:37 -0700 | [diff] [blame] | 744 | #ifdef CONFIG_FSL_BOOKE |
| 745 | { /* e200z5 */ |
| 746 | .pvr_mask = 0xfff00000, |
| 747 | .pvr_value = 0x81000000, |
| 748 | .cpu_name = "e200z5", |
| 749 | /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */ |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 750 | .cpu_features = CPU_FTRS_E200, |
Kumar Gala | 33d9e9b | 2005-06-25 14:54:37 -0700 | [diff] [blame] | 751 | .cpu_user_features = PPC_FEATURE_32 | |
| 752 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_EFP_SINGLE | |
| 753 | PPC_FEATURE_UNIFIED_CACHE, |
| 754 | .dcache_bsize = 32, |
| 755 | }, |
| 756 | { /* e200z6 */ |
| 757 | .pvr_mask = 0xfff00000, |
| 758 | .pvr_value = 0x81100000, |
| 759 | .cpu_name = "e200z6", |
| 760 | /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */ |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 761 | .cpu_features = CPU_FTRS_E200, |
Kumar Gala | 33d9e9b | 2005-06-25 14:54:37 -0700 | [diff] [blame] | 762 | .cpu_user_features = PPC_FEATURE_32 | |
| 763 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_SPE_COMP | |
| 764 | PPC_FEATURE_HAS_EFP_SINGLE | |
| 765 | PPC_FEATURE_UNIFIED_CACHE, |
| 766 | .dcache_bsize = 32, |
| 767 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 768 | { /* e500 */ |
| 769 | .pvr_mask = 0xffff0000, |
| 770 | .pvr_value = 0x80200000, |
| 771 | .cpu_name = "e500", |
| 772 | /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */ |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 773 | .cpu_features = CPU_FTRS_E500, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 774 | .cpu_user_features = PPC_FEATURE_32 | |
| 775 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_SPE_COMP | |
| 776 | PPC_FEATURE_HAS_EFP_SINGLE, |
| 777 | .icache_bsize = 32, |
| 778 | .dcache_bsize = 32, |
| 779 | .num_pmcs = 4, |
| 780 | }, |
Kumar Gala | 5b37b70 | 2005-06-21 17:15:18 -0700 | [diff] [blame] | 781 | { /* e500v2 */ |
| 782 | .pvr_mask = 0xffff0000, |
| 783 | .pvr_value = 0x80210000, |
| 784 | .cpu_name = "e500v2", |
| 785 | /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */ |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 786 | .cpu_features = CPU_FTRS_E500_2, |
Kumar Gala | 5b37b70 | 2005-06-21 17:15:18 -0700 | [diff] [blame] | 787 | .cpu_user_features = PPC_FEATURE_32 | |
| 788 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_SPE_COMP | |
| 789 | PPC_FEATURE_HAS_EFP_SINGLE | PPC_FEATURE_HAS_EFP_DOUBLE, |
| 790 | .icache_bsize = 32, |
| 791 | .dcache_bsize = 32, |
| 792 | .num_pmcs = 4, |
| 793 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 794 | #endif |
| 795 | #if !CLASSIC_PPC |
| 796 | { /* default match */ |
| 797 | .pvr_mask = 0x00000000, |
| 798 | .pvr_value = 0x00000000, |
| 799 | .cpu_name = "(generic PPC)", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 800 | .cpu_features = CPU_FTRS_GENERIC_32, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 801 | .cpu_user_features = PPC_FEATURE_32, |
| 802 | .icache_bsize = 32, |
| 803 | .dcache_bsize = 32, |
| 804 | } |
| 805 | #endif /* !CLASSIC_PPC */ |
| 806 | }; |