secure_boot.h 476 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Secure boot definitions
  4. *
  5. * Copyright (C) 2019 IBM Corporation
  6. * Author: Nayna Jain
  7. */
  8. #ifndef _ASM_POWER_SECURE_BOOT_H
  9. #define _ASM_POWER_SECURE_BOOT_H
  10. #ifdef CONFIG_PPC_SECURE_BOOT
  11. bool is_ppc_secureboot_enabled(void);
  12. bool is_ppc_trustedboot_enabled(void);
  13. #else
  14. static inline bool is_ppc_secureboot_enabled(void)
  15. {
  16. return false;
  17. }
  18. static inline bool is_ppc_trustedboot_enabled(void)
  19. {
  20. return false;
  21. }
  22. #endif
  23. #endif