soc/intel/xeon_sp: Use simple device function for setting PMAX_LOCK
Change to use simple device function for setting PMAX_LOCK because the Sapphire Rapids PCU device is not scanned during coreboot PCIe bus scan and would see "PCI: dev is NULL!" failure. Change-Id: I3156a6adf874b324b5f4ff5857c40002220e47ab Signed-off-by: Marc Jones <marcjones@sysproconsulting.com> Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/72400 Reviewed-by: Simon Chou <simonchou@supermicro.com.tw> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
This commit is contained in:
parent
60c6a5a6fe
commit
ffc5a1ce30
|
@ -320,7 +320,9 @@ static void set_bios_init_completion_for_package(uint32_t socket)
|
|||
die("BIOS RESET CPL3 timed out.\n");
|
||||
|
||||
/* Set PMAX_LOCK - must be set before RESET CPL4 */
|
||||
pci_or_config32(PCU_DEV_CR0(bus), PCU_CR0_PMAX, PMAX_LOCK);
|
||||
data = pci_s_read_config32(PCI_DEV(bus, PCU_DEV, PCU_CR0_FUN), PCU_CR0_PMAX);
|
||||
data |= PMAX_LOCK;
|
||||
pci_s_write_config32(PCI_DEV(bus, PCU_DEV, PCU_CR0_FUN), PCU_CR0_PMAX, data);
|
||||
|
||||
/* update RST_CPL4, PCODE_INIT_DONE4 */
|
||||
timedout = set_bios_reset_cpl_for_package(socket, RST_CPL4_MASK,
|
||||
|
|
Loading…
Reference in New Issue