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