summaryrefslogtreecommitdiffstats
path: root/src/soc/amd/cezanne/acpi.c
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2021-05-04 21:51:43 +0200
committerFelix Held <felix-coreboot@felixheld.de>2021-05-09 18:11:21 +0000
commit1ed5a63c8c8b2680ee4371427aa6482a59777326 (patch)
tree256439f0377389ea21dcb71002d7c289db8bcdc9 /src/soc/amd/cezanne/acpi.c
parent6d9a0eab702213514cc7fba8d0a71c39b2a14585 (diff)
downloadcoreboot-1ed5a63c8c8b2680ee4371427aa6482a59777326.tar.gz
coreboot-1ed5a63c8c8b2680ee4371427aa6482a59777326.tar.bz2
coreboot-1ed5a63c8c8b2680ee4371427aa6482a59777326.zip
soc/amd/cezanne: add GNB IOAPIC support
To configure and enable the IOAPIC in the graphics and northbridge (GNB) container, FSP needs to write an undocumented register, so pass the GNB IOAPIC MMIO base address to make it show up at that address. BUG=b:187083211 TEST=Boot guybrush and see IO-APIC initialized IOAPIC[0]: apic_id 16, version 33, address 0xfec00000, GSI 0-23 IOAPIC[1]: apic_id 17, version 33, address 0xfec01000, GSI 24-55 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: I1e127ce500d052783f0a6e13fb2ad16a8e408b0e Reviewed-on: https://review.coreboot.org/c/coreboot/+/52905 Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/cezanne/acpi.c')
-rw-r--r--src/soc/amd/cezanne/acpi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/amd/cezanne/acpi.c b/src/soc/amd/cezanne/acpi.c
index fd11589c66e9..180a1e5062dc 100644
--- a/src/soc/amd/cezanne/acpi.c
+++ b/src/soc/amd/cezanne/acpi.c
@@ -28,7 +28,8 @@ unsigned long acpi_fill_madt(unsigned long current)
current += acpi_create_madt_ioapic((acpi_madt_ioapic_t *)current,
FCH_IOAPIC_ID, IO_APIC_ADDR, 0);
- /* TODO: Add GNB-IOAPIC */
+ current += acpi_create_madt_ioapic((acpi_madt_ioapic_t *)current,
+ GNB_IOAPIC_ID, GNB_IO_APIC_ADDR, IO_APIC_INTERRUPTS);
current += acpi_create_madt_irqoverride(
(acpi_madt_irqoverride_t *)current,