From 8ca1ad4cffaa7516857e85883cb5731edd2a179f Mon Sep 17 00:00:00 2001 From: Dave Gerlach Date: Thu, 24 Sep 2020 22:37:03 +0000 Subject: sec-cfg: Add secure_handover_config section Update the common.h headers to add new defines from SYSFW 2020.08. Starting from SYSFW v2020.08, a secure_handover_config section is mandatory in the security config. Otherwise the boot fails on all SoCs. Signed-off-by: Dave Gerlach --- include/common.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/common.h b/include/common.h index 382b6c422..2a012211a 100644 --- a/include/common.h +++ b/include/common.h @@ -83,6 +83,7 @@ typedef u8 ftbool; #define BOARDCFG_DKEK_CFG_MAGIC_NUM 0x5170 #define BOARDCFG_SA2UL_CFG_MAGIC_NUM_RSVD 0x23BE #define BOARDCFG_SEC_DBG_CTRL_MAGIC_NUM 0x42AF +#define BOARDCFG_SEC_HANDOVER_CFG_MAGIC_NUM 0x608F struct boardcfg_substructure_header { u16 magic; @@ -260,6 +261,13 @@ struct boardcfg_secure_debug_config { u8 jtag_unlock_hosts[BOARDCFG_SEC_MAX_NUM_JTAG_UNLOCK_HOSTS]; } __attribute__((__packed__)); +struct boardcfg_sec_handover { + struct boardcfg_substructure_header subhdr; + u8 handover_msg_sender; + u8 handover_to_host_id; + u8 rsvd[4]; +}; + struct boardcfg_security { struct boardcfg_abi_rev rev; struct boardcfg_proc_acl processor_acl_list; @@ -268,6 +276,7 @@ struct boardcfg_security { struct boardcfg_dkek dkek_config; struct boardcfg_sa2ul_cfg sa2ul_cfg; struct boardcfg_secure_debug_config sec_dbg_config; + struct boardcfg_sec_handover sec_handover_cfg; } __attribute__((__packed__)); /** -- cgit v1.2.3-54-g00ecf