Skip to content

Commit

Permalink
ARM: exynos: Add Exynos SMC values for secure memory write
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mszyprow authored and krzk committed Mar 19, 2019
1 parent e746731 commit 47efaf6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/arm/mach-exynos/smc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 47efaf6

Please sign in to comment.