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