xref: /OK3568_Linux_fs/kernel/arch/powerpc/include/asm/secure_boot.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Secure boot definitions
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * Copyright (C) 2019 IBM Corporation
6*4882a593Smuzhiyun  * Author: Nayna Jain
7*4882a593Smuzhiyun  */
8*4882a593Smuzhiyun #ifndef _ASM_POWER_SECURE_BOOT_H
9*4882a593Smuzhiyun #define _ASM_POWER_SECURE_BOOT_H
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun #ifdef CONFIG_PPC_SECURE_BOOT
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun bool is_ppc_secureboot_enabled(void);
14*4882a593Smuzhiyun bool is_ppc_trustedboot_enabled(void);
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun #else
17*4882a593Smuzhiyun 
is_ppc_secureboot_enabled(void)18*4882a593Smuzhiyun static inline bool is_ppc_secureboot_enabled(void)
19*4882a593Smuzhiyun {
20*4882a593Smuzhiyun 	return false;
21*4882a593Smuzhiyun }
22*4882a593Smuzhiyun 
is_ppc_trustedboot_enabled(void)23*4882a593Smuzhiyun static inline bool is_ppc_trustedboot_enabled(void)
24*4882a593Smuzhiyun {
25*4882a593Smuzhiyun 	return false;
26*4882a593Smuzhiyun }
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun #endif
29*4882a593Smuzhiyun #endif
30