summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/intel/common/pch/lockdown/lockdown.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/soc/intel/common/pch/lockdown/lockdown.c b/src/soc/intel/common/pch/lockdown/lockdown.c
index 739d13527b..8032b4ac3e 100644
--- a/src/soc/intel/common/pch/lockdown/lockdown.c
+++ b/src/soc/intel/common/pch/lockdown/lockdown.c
@@ -57,9 +57,18 @@ static void fast_spi_lockdown_cfg(int chipset_lockdown)
/* Discrete Lock Flash PR registers */
fast_spi_pr_dlock();
+ /* Check if SPI transaction is pending */
+ fast_spi_cycle_in_progress();
+
+ /* Clear any outstanding status bits like AEL, FCERR, FDONE, SAF etc. */
+ fast_spi_clear_outstanding_status();
+
/* Lock FAST_SPIBAR */
fast_spi_lock_bar();
+ /* Set Vendor Component Lock (VCL) */
+ fast_spi_vscc0_lock();
+
/* Set BIOS Interface Lock, BIOS Lock */
if (chipset_lockdown == CHIPSET_LOCKDOWN_COREBOOT) {
/* BIOS Interface Lock */