mirror of
https://github.com/torvalds/linux.git
synced 2024-12-13 22:53:20 +00:00
c71572aa54
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 <clement.leger@bootlin.com> [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 <claudiu.beznea@microchip.com> Link: https://lore.kernel.org/r/20220606145701.185552-2-clement.leger@bootlin.com
20 lines
448 B
C
20 lines
448 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2022, Microchip
|
|
*/
|
|
|
|
#ifndef SAM_SECURE_H
|
|
#define SAM_SECURE_H
|
|
|
|
#include <linux/arm-smccc.h>
|
|
|
|
/* Secure Monitor mode APIs */
|
|
#define SAMA5_SMC_SIP_SET_SUSPEND_MODE 0x400
|
|
#define SAMA5_SMC_SIP_GET_SUSPEND_MODE 0x401
|
|
|
|
void __init sam_secure_init(void);
|
|
struct arm_smccc_res sam_smccc_call(u32 fn, u32 arg0, u32 arg1);
|
|
bool sam_linux_is_optee_available(void);
|
|
|
|
#endif /* SAM_SECURE_H */
|