diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2019-02-18 15:34:10 +0100 |
---|---|---|
committer | Krzysztof Kozlowski <krzk@kernel.org> | 2019-03-19 21:07:47 +0100 |
commit | 47efaf6ba6971e669f198e8e60fe6e674b5020ac (patch) | |
tree | 917fa547ffff570fb095d3a5e034480e5b9ec84f | |
parent | e74673120b6b9497f1e044b3cf75d2fb5ed61fc3 (diff) | |
download | linux-47efaf6ba6971e669f198e8e60fe6e674b5020ac.tar.bz2 |
ARM: exynos: Add Exynos SMC values for secure memory write
Add defines for the (secure)-memory write for Exynos Secure Monitor
Call. The values comes from the vendor kernel.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
-rw-r--r-- | arch/arm/mach-exynos/smc.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/smc.h b/arch/arm/mach-exynos/smc.h index f355185d4239..98832e50852d 100644 --- a/arch/arm/mach-exynos/smc.h +++ b/arch/arm/mach-exynos/smc.h @@ -25,6 +25,13 @@ #define SMC_CMD_L2X0INVALL (-24) #define SMC_CMD_L2X0DEBUG (-25) +/* For Accessing CP15/SFR (General) */ +#define SMC_CMD_REG (-101) + +/* defines for SMC_CMD_REG */ +#define SMC_REG_CLASS_SFR_W (0x1 << 30) +#define SMC_REG_ID_SFR_W(addr) (SMC_REG_CLASS_SFR_W | ((addr) >> 2)) + #ifndef __ASSEMBLY__ extern void exynos_smc(u32 cmd, u32 arg1, u32 arg2, u32 arg3); |