]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(intel): agilex bitstream pre-authenticate
authorJit Loon Lim <jit.loon.lim@intel.com>
Thu, 3 Nov 2022 12:03:37 +0000 (20:03 +0800)
committerSieu Mun Tang <sieu.mun.tang@intel.com>
Tue, 22 Nov 2022 15:57:43 +0000 (23:57 +0800)
HSD #15012010816: To add in bitstream pre-authentication checking.

Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.com>
Change-Id: Ia8f1471a674ba16972927084f5fdc27c4ba93103

plat/intel/soc/common/include/socfpga_mailbox.h
plat/intel/soc/common/soc/socfpga_mailbox.c

index 1f4b2a4a0e142bb8b18c8ca5ea29c9fc334f9b38..3ab6f522e2b74d001e34d0ee93910f25b65f9951 100644 (file)
 #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
index e19364690ee46cd42655bee8a07756156572da82..09ca8ae0ea71dd8711e2e3326faae8f83ff9fd35 100644 (file)
@@ -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;
        }