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