diff options
author | Vladimir Murzin | 2017-10-16 13:57:48 +0200 |
---|---|---|
committer | Russell King | 2017-10-23 17:59:15 +0200 |
commit | 9fcb01a9f54c28062a73a545c29137a4cc104c72 (patch) | |
tree | 7cebf0b0de05a73132ef66ae9c1671206a58be77 /arch/arm/include/asm/cputype.h | |
parent | ARM: 8710/1: Kconfig: Kill CONFIG_VECTORS_BASE (diff) | |
download | kernel-qcow2-linux-9fcb01a9f54c28062a73a545c29137a4cc104c72.tar.gz kernel-qcow2-linux-9fcb01a9f54c28062a73a545c29137a4cc104c72.tar.xz kernel-qcow2-linux-9fcb01a9f54c28062a73a545c29137a4cc104c72.zip |
ARM: 8711/1: V7M: Add support for MPU to M-class
This patch makes it possible to use MPU with v7M cores.
Tested-by: Szemző András <sza@esh.hu>
Tested-by: Alexandre TORGUE <alexandre.torgue@st.com>
Tested-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/cputype.h')
-rw-r--r-- | arch/arm/include/asm/cputype.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/include/asm/cputype.h b/arch/arm/include/asm/cputype.h index b62eaeb147aa..abaac5e07b80 100644 --- a/arch/arm/include/asm/cputype.h +++ b/arch/arm/include/asm/cputype.h @@ -173,6 +173,11 @@ static inline unsigned int __attribute_const__ read_cpuid_cachetype(void) return read_cpuid(CPUID_CACHETYPE); } +static inline unsigned int __attribute_const__ read_cpuid_mputype(void) +{ + return read_cpuid(CPUID_MPUIR); +} + #elif defined(CONFIG_CPU_V7M) static inline unsigned int __attribute_const__ read_cpuid_id(void) @@ -185,6 +190,11 @@ static inline unsigned int __attribute_const__ read_cpuid_cachetype(void) return readl(BASEADDR_V7M_SCB + V7M_SCB_CTR); } +static inline unsigned int __attribute_const__ read_cpuid_mputype(void) +{ + return readl(BASEADDR_V7M_SCB + MPU_TYPE); +} + #else /* ifdef CONFIG_CPU_CP15 / elif defined(CONFIG_CPU_V7M) */ static inline unsigned int __attribute_const__ read_cpuid_id(void) |