summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2020-11-12 21:12:05 +0100
committerArthur Heymans <arthur@aheymans.xyz>2020-11-20 10:18:34 +0000
commit6e425e1275a7638eb4b42b4fdec23f5674d086f5 (patch)
treef690971b021a91a713f6f6922e11ff395440b705 /src/soc
parent054026cdb8dc4f6a2cebf63ba5f64be738f324ad (diff)
downloadcoreboot-6e425e1275a7638eb4b42b4fdec23f5674d086f5.tar.xz
soc/intel/xeon_sp: Use common P2SB functions to generate HPET IOAPIC
Change-Id: I700df8fe5243db46fa8458757b4e5596c4b9f404 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47536 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/xeon_sp/nb_acpi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/soc/intel/xeon_sp/nb_acpi.c b/src/soc/intel/xeon_sp/nb_acpi.c
index 29f533fdc8..cb7ae40313 100644
--- a/src/soc/intel/xeon_sp/nb_acpi.c
+++ b/src/soc/intel/xeon_sp/nb_acpi.c
@@ -214,12 +214,12 @@ static unsigned long acpi_create_drhd(unsigned long current, int socket,
// Add PCH IOAPIC
if (socket == 0 && stack == CSTACK) {
+ union p2sb_bdf ioapic_bdf = p2sb_get_ioapic_bdf();
printk(BIOS_DEBUG, " [IOAPIC Device] Enumeration ID: 0x%x, PCI Bus Number: 0x%x, "
"PCI Path: 0x%x, 0x%x\n",
- PCH_IOAPIC_ID, PCH_IOAPIC_BUS_NUMBER,
- PCH_IOAPIC_DEV_NUM, PCH_IOAPIC_FUNC_NUM);
+ PCH_IOAPIC_ID, ioapic_bdf.bus, ioapic_bdf.dev, ioapic_bdf.fn);
current += acpi_create_dmar_ds_ioapic(current, PCH_IOAPIC_ID,
- PCH_IOAPIC_BUS_NUMBER, PCH_IOAPIC_DEV_NUM, PCH_IOAPIC_FUNC_NUM);
+ ioapic_bdf.bus, ioapic_bdf.dev, ioapic_bdf.fn);
}
// Add IOAPIC entry