diff options
author | Jit Loon Lim <jit.loon.lim@intel.com> | 2022-11-03 20:03:37 +0800 |
---|---|---|
committer | Sieu Mun Tang <sieu.mun.tang@intel.com> | 2022-11-22 23:57:43 +0800 |
commit | 4b3d323acdd21d8853e38e135bf990b3767ca354 (patch) | |
tree | 1c76ed30c74ac4d791f50cd508da7f0ad04f0469 | |
parent | 7f9e9e4b40152c0cb52bcc53ac3d32fd1c978416 (diff) | |
download | trusted-firmware-a-4b3d323acdd21d8853e38e135bf990b3767ca354.tar.gz |
fix(intel): agilex bitstream pre-authenticate
HSD #15012010816: To add in bitstream pre-authentication checking.
Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.com>
Change-Id: Ia8f1471a674ba16972927084f5fdc27c4ba93103
-rw-r--r-- | plat/intel/soc/common/include/socfpga_mailbox.h | 1 | ||||
-rw-r--r-- | plat/intel/soc/common/soc/socfpga_mailbox.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/plat/intel/soc/common/include/socfpga_mailbox.h b/plat/intel/soc/common/include/socfpga_mailbox.h index 1f4b2a4a0e..3ab6f522e2 100644 --- a/plat/intel/soc/common/include/socfpga_mailbox.h +++ b/plat/intel/soc/common/include/socfpga_mailbox.h @@ -139,6 +139,7 @@ #define SOFTFUNC_STATUS_CONF_DONE (1 << 0) #define MBOX_CFGSTAT_STATE_IDLE 0x00000000 #define MBOX_CFGSTAT_STATE_CONFIG 0x10000000 +#define MBOX_CFGSTAT_VAB_BS_PREAUTH 0x20000000 #define MBOX_CFGSTAT_STATE_FAILACK 0x08000000 #define MBOX_CFGSTAT_STATE_ERROR_INVALID 0xf0000001 #define MBOX_CFGSTAT_STATE_ERROR_CORRUPT 0xf0000002 diff --git a/plat/intel/soc/common/soc/socfpga_mailbox.c b/plat/intel/soc/common/soc/socfpga_mailbox.c index e19364690e..09ca8ae0ea 100644 --- a/plat/intel/soc/common/soc/socfpga_mailbox.c +++ b/plat/intel/soc/common/soc/socfpga_mailbox.c @@ -609,6 +609,11 @@ int intel_mailbox_get_config_status(uint32_t cmd, bool init_done) } res = response[RECONFIG_STATUS_STATE]; + + if (res == MBOX_CFGSTAT_VAB_BS_PREAUTH) { + return MBOX_CFGSTAT_STATE_CONFIG; + } + if ((res != 0U) && (res != MBOX_CFGSTAT_STATE_CONFIG)) { return res; } |