diff options
author | Clément Léger <[email protected]> | 2022-06-06 16:57:00 +0200 |
---|---|---|
committer | Claudiu Beznea <[email protected]> | 2022-07-20 11:03:45 +0300 |
commit | c71572aa544ca64cbd2ff2052c79bc7e3573baed (patch) | |
tree | 08a42a1ba6f90011f1db04b4622d7cdde2c1cab2 /arch/arm/mach-at91/sam_secure.c | |
parent | f2906aa863381afb0015a9eb7fefad885d4e5a56 (diff) |
ARM: at91: add sam_linux_is_optee_available() function
Add sam_linux_is_optee_available() which allows to know if OP-TEE is
available for Linux. This function is used by code which needs to
know if we running with OP-TEE available or not.
Signed-off-by: Clément Léger <[email protected]>
[claudiu.beznea: edit commit title and message, renamed
sam_linux_is_in_normal_world() into sam_linux_is_optee_available()]
Signed-off-by: Claudiu Beznea <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'arch/arm/mach-at91/sam_secure.c')
-rw-r--r-- | arch/arm/mach-at91/sam_secure.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/sam_secure.c b/arch/arm/mach-at91/sam_secure.c index 2a01f7a7d13f..f7789cbe289f 100644 --- a/arch/arm/mach-at91/sam_secure.c +++ b/arch/arm/mach-at91/sam_secure.c @@ -27,6 +27,12 @@ struct arm_smccc_res sam_smccc_call(u32 fn, u32 arg0, u32 arg1) return res; } +bool sam_linux_is_optee_available(void) +{ + /* If optee has been detected, then we are running in normal world */ + return optee_available; +} + void __init sam_secure_init(void) { struct device_node *np; |