summaryrefslogtreecommitdiff
path: root/src/soc/intel/xeon_sp/gnr
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2024-10-17 15:08:51 +0200
committerLean Sheng Tan <sheng.tan@9elements.com>2024-10-28 22:06:29 +0000
commit3625b0e0eee8a6fff230199c370e5d74579898b2 (patch)
tree480ccc78ce2a375f8a9e48deb9d93298da9d8ce7 /src/soc/intel/xeon_sp/gnr
parent125194f5fa872c9894197371cc6c693ff278e759 (diff)
soc/intel/xeon_sp: Add SAD PCI driver
Get rid of some helper functions by properly using a pci_driver. Configure SAD if necessary and lock SAD if necessary in the newly added SAD PCI driver. This allows to drop lock_pam0123(), unlock_pam_regions() and socket0_get_ubox_busno(). - Fixes SAD instance on secondary sockets not decoding the C-F segments as DRAM, which would prevent those sockets to access the ACPI/SMBIOS table anchor - Adds PCI multi segment support (SKX and CPX only, other were working properly already) - Moves locking of PAM0123_CSR and PAM456_CSR from SoC to driver code Change-Id: I167b6ce48631fe3f97359ee33704f52ca854dbd1 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84794 Reviewed-by: Shuo Liu <shuo.liu@intel.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/xeon_sp/gnr')
-rw-r--r--src/soc/intel/xeon_sp/gnr/include/soc/pci_devs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/soc/intel/xeon_sp/gnr/include/soc/pci_devs.h b/src/soc/intel/xeon_sp/gnr/include/soc/pci_devs.h
index e2c63dbd21..fab090a3a7 100644
--- a/src/soc/intel/xeon_sp/gnr/include/soc/pci_devs.h
+++ b/src/soc/intel/xeon_sp/gnr/include/soc/pci_devs.h
@@ -37,6 +37,7 @@
#define SAD_ALL_DEV CHA_DEV
#define SAD_ALL_FUNC 0
#define SAD_ALL_PAM0123_CSR 0x80
+#define PAM_LOCK BIT(0)
#define SAD_ALL_PAM456_CSR 0x84
#define SAD_ALL_DEVID 0x344f