sam_secure.h 448 B

12345678910111213141516171819
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2022, Microchip
  4. */
  5. #ifndef SAM_SECURE_H
  6. #define SAM_SECURE_H
  7. #include <linux/arm-smccc.h>
  8. /* Secure Monitor mode APIs */
  9. #define SAMA5_SMC_SIP_SET_SUSPEND_MODE 0x400
  10. #define SAMA5_SMC_SIP_GET_SUSPEND_MODE 0x401
  11. void __init sam_secure_init(void);
  12. struct arm_smccc_res sam_smccc_call(u32 fn, u32 arg0, u32 arg1);
  13. bool sam_linux_is_optee_available(void);
  14. #endif /* SAM_SECURE_H */