soc/intel/xeon_sp: Lock PAM and SMRAM registers
The CedarIsland FSP Integration recommends locking down some things. Change-Id: I72e04b55d69a8da79485e084b39c3bd38504897f Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47168 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
7a36ca5a3a
commit
1918553190
|
@ -68,6 +68,18 @@ static void chip_final(void *data)
|
|||
{
|
||||
/* Lock SBI */
|
||||
pci_or_config32(PCH_DEV_P2SB, P2SBC, SBILOCK);
|
||||
|
||||
/* LOCK PAM */
|
||||
pci_or_config32(pcidev_path_on_root(PCI_DEVFN(0, 0)), 0x80, 1 << 0);
|
||||
|
||||
/*
|
||||
* LOCK SMRAM
|
||||
* According to the CedarIsland FSP Integration Guide this needs to
|
||||
* be done with legacy 0xCF8/0xCFC IO ops.
|
||||
*/
|
||||
uint8_t reg8 = pci_io_read_config8(PCI_DEV(0, 0, 0), 0x88);
|
||||
pci_io_write_config8(PCI_DEV(0, 0, 0), 0x88, reg8 | (1 << 4));
|
||||
|
||||
p2sb_hide();
|
||||
|
||||
set_bios_init_completion();
|
||||
|
|
Loading…
Reference in New Issue