diff mbox

[33/40] Initialize Secure/Trusted Boot (STB) during init

Message ID 1476089061-15197-34-git-send-email-stewart@linux.vnet.ibm.com
State Accepted
Headers show

Commit Message

Stewart Smith Oct. 10, 2016, 8:44 a.m. UTC
From: Claudio Carvalho <cclaudio@linux.vnet.ibm.com>

While currently, the only platform with any support for trusted boot
is a reworked habanero with a new hostboot, we act on the device
tree entry of /ibm,secureboot which will be added by earlier system
firmware (hostboot, or a simulator) in the event that we should
be doing secure/trusted boot.

Based-on-habanero-only-patch-by: Claudio Carvalho <cclaudio@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
---
 core/init.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/core/init.c b/core/init.c
index 13b6acb..f604d61 100644
--- a/core/init.c
+++ b/core/init.c
@@ -795,6 +795,9 @@  void __noreturn __nomcount main_cpu_entry(const void *fdt)
 	 */
 	probe_platform();
 
+	/* Secure/Trusted Boot init. We look for /ibm,secureboot in DT */
+	stb_init();
+
 	/* Initialize the rest of the cpu thread structs */
 	init_all_cpus();