summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/xeon_sp/cpx/chip.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2020-10-16 13:15:50 +0200
committerAngel Pons <th3fanbus@gmail.com>2020-11-20 00:46:29 +0000
commit0f91e9ce5f53db70bf738f66988603156021d7c7 (patch)
treed27cc2be5c28571e382f1d639497c840d373fe41 /src/soc/intel/xeon_sp/cpx/chip.c
parenta56e4672873b4ad52c5e0459febbc7075433cec5 (diff)
downloadcoreboot-0f91e9ce5f53db70bf738f66988603156021d7c7.tar.gz
coreboot-0f91e9ce5f53db70bf738f66988603156021d7c7.tar.bz2
coreboot-0f91e9ce5f53db70bf738f66988603156021d7c7.zip
soc/intel/xeon_sp/cpx: Lock down P2SB SBI
This is required for CBnT. Change-Id: Idfd5c01003e0d307631e5c6895ac02e89a9aff08 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46499 Reviewed-by: Christian Walter <christian.walter@9elements.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/xeon_sp/cpx/chip.c')
-rw-r--r--src/soc/intel/xeon_sp/cpx/chip.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/soc/intel/xeon_sp/cpx/chip.c b/src/soc/intel/xeon_sp/cpx/chip.c
index 3daff1372baa..b7752b25cd07 100644
--- a/src/soc/intel/xeon_sp/cpx/chip.c
+++ b/src/soc/intel/xeon_sp/cpx/chip.c
@@ -11,8 +11,10 @@
#include <soc/chip_common.h>
#include <soc/cpu.h>
#include <soc/ramstage.h>
+#include <soc/p2sb.h>
#include <soc/soc_util.h>
#include <soc/util.h>
+#include <soc/pci_devs.h>
/* UPD parameters to be initialized before SiliconInit */
void platform_fsp_silicon_init_params_cb(FSPS_UPD *silupd)
@@ -63,6 +65,8 @@ static void chip_enable_dev(struct device *dev)
static void chip_final(void *data)
{
+ /* Lock SBI */
+ pci_or_config32(PCH_DEV_P2SB, P2SBC, SBILOCK);
p2sb_hide();
set_bios_init_completion();