Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: cputype: Add CPU implementor & types for the Apple M1 cores

The implementor will be used to condition the FIQ support quirk.

The specific CPU types are not used at the moment, but let's add them
for documentation purposes.

Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Hector Martin <marcan@marcan.st>

+6
+6
arch/arm64/include/asm/cputype.h
··· 59 59 #define ARM_CPU_IMP_NVIDIA 0x4E 60 60 #define ARM_CPU_IMP_FUJITSU 0x46 61 61 #define ARM_CPU_IMP_HISI 0x48 62 + #define ARM_CPU_IMP_APPLE 0x61 62 63 63 64 #define ARM_CPU_PART_AEM_V8 0xD0F 64 65 #define ARM_CPU_PART_FOUNDATION 0xD00 ··· 100 99 101 100 #define HISI_CPU_PART_TSV110 0xD01 102 101 102 + #define APPLE_CPU_PART_M1_ICESTORM 0x022 103 + #define APPLE_CPU_PART_M1_FIRESTORM 0x023 104 + 103 105 #define MIDR_CORTEX_A53 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A53) 104 106 #define MIDR_CORTEX_A57 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A57) 105 107 #define MIDR_CORTEX_A72 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A72) ··· 131 127 #define MIDR_NVIDIA_CARMEL MIDR_CPU_MODEL(ARM_CPU_IMP_NVIDIA, NVIDIA_CPU_PART_CARMEL) 132 128 #define MIDR_FUJITSU_A64FX MIDR_CPU_MODEL(ARM_CPU_IMP_FUJITSU, FUJITSU_CPU_PART_A64FX) 133 129 #define MIDR_HISI_TSV110 MIDR_CPU_MODEL(ARM_CPU_IMP_HISI, HISI_CPU_PART_TSV110) 130 + #define MIDR_APPLE_M1_ICESTORM MIDR_CPU_MODEL(ARM_CPU_IMP_APPLE, APPLE_CPU_PART_M1_ICESTORM) 131 + #define MIDR_APPLE_M1_FIRESTORM MIDR_CPU_MODEL(ARM_CPU_IMP_APPLE, APPLE_CPU_PART_M1_FIRESTORM) 134 132 135 133 /* Fujitsu Erratum 010001 affects A64FX 1.0 and 1.1, (v0r0 and v1r0) */ 136 134 #define MIDR_FUJITSU_ERRATUM_010001 MIDR_FUJITSU_A64FX