Lines Matching +full:boot +full:- +full:enabled
1 // SPDX-License-Identifier: GPL-2.0
14 { .compatible = "ibm,secureboot-v1", }, in get_ppc_fw_sb_node()
15 { .compatible = "ibm,secureboot-v2", }, in get_ppc_fw_sb_node()
25 bool enabled = false; in is_ppc_secureboot_enabled() local
29 enabled = of_property_read_bool(node, "os-secureboot-enforcing"); in is_ppc_secureboot_enabled()
32 if (enabled) in is_ppc_secureboot_enabled()
36 if (!of_property_read_u32(node, "ibm,secure-boot", &secureboot)) in is_ppc_secureboot_enabled()
37 enabled = (secureboot > 1); in is_ppc_secureboot_enabled()
41 pr_info("Secure boot mode %s\n", enabled ? "enabled" : "disabled"); in is_ppc_secureboot_enabled()
43 return enabled; in is_ppc_secureboot_enabled()
49 bool enabled = false; in is_ppc_trustedboot_enabled() local
53 enabled = of_property_read_bool(node, "trusted-enabled"); in is_ppc_trustedboot_enabled()
56 if (enabled) in is_ppc_trustedboot_enabled()
60 if (!of_property_read_u32(node, "ibm,trusted-boot", &trustedboot)) in is_ppc_trustedboot_enabled()
61 enabled = (trustedboot > 0); in is_ppc_trustedboot_enabled()
65 pr_info("Trusted boot mode %s\n", enabled ? "enabled" : "disabled"); in is_ppc_trustedboot_enabled()
67 return enabled; in is_ppc_trustedboot_enabled()