From c7c9e7629015ecbd663c73fb734045bcbd84ec93 Mon Sep 17 00:00:00 2001 From: Dave Gerlach Date: Fri, 1 May 2020 00:27:07 +0000 Subject: sec-cfg: Add sa2ul_config section Update the common.h headers to add new defines from SYSFW 2020.04. Starting from SYSFW v2020.04, an sa2ul_config section is mandatory in the security config. Otherwise the boot fails. Fix this by adding a section for sa2ul_config with all parameters configured to 0. Signed-off-by: Dave Gerlach --- include/common.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/common.h b/include/common.h index af01a4396..08b9b4bda 100644 --- a/include/common.h +++ b/include/common.h @@ -81,6 +81,7 @@ typedef u8 ftbool; #define BOARDCFG_PMIC_CFG_MAGIC_NUM 0x3172 #define BOARDCFG_OTP_CFG_MAGIC_NUM 0x4081 #define BOARDCFG_DKEK_CFG_MAGIC_NUM 0x5170 +#define BOARDCFG_SA2UL_CFG_MAGIC_NUM_RSVD 0x23BE struct boardcfg_substructure_header { u16 magic; @@ -241,12 +242,18 @@ struct boardcfg_dkek { u8 rsvd[3]; } __attribute__((__packed__)); +struct boardcfg_sa2ul_cfg { + struct boardcfg_substructure_header subhdr; + u8 rsvd[4]; +}; + struct boardcfg_security { struct boardcfg_abi_rev rev; struct boardcfg_proc_acl processor_acl_list; struct boardcfg_host_hierarchy host_hierarchy; struct boardcfg_extended_otp otp_config; struct boardcfg_dkek dkek_config; + struct boardcfg_sa2ul_cfg sa2ul_cfg; } __attribute__((__packed__)); /** -- cgit v1.2.3-54-g00ecf