2022-05-02 23:22:18 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2022, Microchip
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SAM_SECURE_H
|
|
|
|
#define SAM_SECURE_H
|
|
|
|
|
|
|
|
#include <linux/arm-smccc.h>
|
|
|
|
|
2022-05-02 23:22:19 +08:00
|
|
|
/* Secure Monitor mode APIs */
|
|
|
|
#define SAMA5_SMC_SIP_SET_SUSPEND_MODE 0x400
|
|
|
|
#define SAMA5_SMC_SIP_GET_SUSPEND_MODE 0x401
|
|
|
|
|
2022-05-02 23:22:18 +08:00
|
|
|
void __init sam_secure_init(void);
|
|
|
|
struct arm_smccc_res sam_smccc_call(u32 fn, u32 arg0, u32 arg1);
|
2022-06-06 22:57:00 +08:00
|
|
|
bool sam_linux_is_optee_available(void);
|
2022-05-02 23:22:18 +08:00
|
|
|
|
|
|
|
#endif /* SAM_SECURE_H */
|