soc/intel/common: Use ACPI_COMMON_MADT_IOAPIC

For the first IOAPIC, use the common MADT generator with
default IRQ overrides.

Change-Id: Ie6e3eae1728a9a94205ec59557d4af1655191166
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74358
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Kyösti Mälkki 2023-04-12 14:04:44 +03:00
parent 304f8387fe
commit 8eac12fa7d
2 changed files with 7 additions and 5 deletions

View File

@ -1,7 +1,9 @@
config SOC_INTEL_COMMON_BLOCK_ACPI
depends on SOC_INTEL_COMMON_BLOCK_CPU
depends on SOC_INTEL_COMMON_BLOCK_PMC
select ACPI_COMMON_MADT_IOAPIC
select ACPI_COMMON_MADT_LAPIC if !SOC_INTEL_COMMON_BLOCK_ACPI_CPU_HYBRID
select ACPI_CUSTOM_MADT
bool
help
Intel Processor common code for ACPI

View File

@ -80,12 +80,12 @@ unsigned long acpi_fill_madt(unsigned long current)
/* IOAPIC */
ioapic_entries = soc_get_ioapic_info(&ioapic_table);
for (int i = 0; i < ioapic_entries; i++)
current += acpi_create_madt_ioapic_from_hw((void *)current, ioapic_table[i]);
/* INT_SRC_OVR */
current += acpi_create_madt_irqoverride((void *)current, 0, 0, 2, 0);
current += acpi_create_madt_sci_override((void *)current);
/* Default SOC IOAPIC entry */
ASSERT(ioapic_table[0] == IO_APIC_ADDR);
for (int i = 1; i < ioapic_entries; i++)
current += acpi_create_madt_ioapic_from_hw((void *)current, ioapic_table[i]);
return current;
}