ARM: exynos: Add Exynos SMC values for secure memory write
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 18 Feb 2019 14:34:10 +0000 (15:34 +0100)
committerKrzysztof Kozlowski <krzk@kernel.org>
Tue, 19 Mar 2019 20:07:47 +0000 (21:07 +0100)
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>
arch/arm/mach-exynos/smc.h

index f355185..98832e5 100644 (file)
 #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);