summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2023-04-12 14:04:44 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2023-04-26 11:06:10 +0000
commit8eac12fa7d49de59f63739bcb466e188dbc1ed66 (patch)
tree47687a3c02b0723529d28e285c7a8001dd0886f6 /src
parent304f8387fe698b66c7c853098001fc83638dd874 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/common/block/acpi/Kconfig2
-rw-r--r--src/soc/intel/common/block/acpi/acpi.c10
2 files changed, 7 insertions, 5 deletions
diff --git a/src/soc/intel/common/block/acpi/Kconfig b/src/soc/intel/common/block/acpi/Kconfig
index 8f4e308879..c750e7ebd7 100644
--- a/src/soc/intel/common/block/acpi/Kconfig
+++ b/src/soc/intel/common/block/acpi/Kconfig
@@ -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
diff --git a/src/soc/intel/common/block/acpi/acpi.c b/src/soc/intel/common/block/acpi/acpi.c
index 1b5538ff4e..fda82d4e26 100644
--- a/src/soc/intel/common/block/acpi/acpi.c
+++ b/src/soc/intel/common/block/acpi/acpi.c
@@ -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;
}