soc/amd/cezanne: Add FCH IO-APIC to MADT

TEST=Boot majolica to linux and see IO-APIC logs
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC_NMI (acpi_id[0xff] high edge lint[0x1])
IOAPIC[0]: apic_id 16, version 33, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
ACPI: IRQ0 used by override.
ACPI: IRQ9 used by override.
Using ACPI (MADT) for SMP configuration information

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Change-Id: Ib8094c3edf401659d9d740e2cc6266ddd5f91da9
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50803
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
Raul E Rangel 2021-02-16 10:37:46 -07:00 committed by Felix Held
parent 0810538b63
commit 65819cd364
1 changed files with 6 additions and 1 deletions

View File

@ -5,6 +5,8 @@
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <amdblocks/acpi.h> #include <amdblocks/acpi.h>
#include <amdblocks/acpimmio.h> #include <amdblocks/acpimmio.h>
#include <amdblocks/ioapic.h>
#include <arch/ioapic.h>
#include <arch/smp/mpspec.h> #include <arch/smp/mpspec.h>
#include <console/console.h> #include <console/console.h>
#include <cpu/x86/smm.h> #include <cpu/x86/smm.h>
@ -18,7 +20,10 @@ unsigned long acpi_fill_madt(unsigned long current)
/* create all subtables for processors */ /* create all subtables for processors */
current = acpi_create_madt_lapics(current); current = acpi_create_madt_lapics(current);
/* TODO: Add IOAPIC and GNB-IOAPIC */ 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_irqoverride( current += acpi_create_madt_irqoverride(
(acpi_madt_irqoverride_t *)current, (acpi_madt_irqoverride_t *)current,