From e0e28908d27451e85339d24f1fcf96091a1cd168 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Mon, 3 Aug 2020 13:26:21 +0200 Subject: soc/intel/baytrail: Factor out `acpi_fill_madt()` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is the same for the two Bay Trail boards in the tree. Change-Id: I5110cfa8807406232e4f7f1fe79dfe9c3ae4dac4 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/44115 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans Reviewed-by: Máté Kukri --- src/soc/intel/baytrail/acpi.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/soc/intel') diff --git a/src/soc/intel/baytrail/acpi.c b/src/soc/intel/baytrail/acpi.c index 458e2d5121..1144749ab1 100644 --- a/src/soc/intel/baytrail/acpi.c +++ b/src/soc/intel/baytrail/acpi.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include @@ -125,6 +126,20 @@ unsigned long acpi_fill_mcfg(unsigned long current) return current; } +unsigned long acpi_fill_madt(unsigned long current) +{ + /* Local APICs */ + current = acpi_create_madt_lapics(current); + + /* IOAPIC */ + current += acpi_create_madt_ioapic((acpi_madt_ioapic_t *) current, + 2, IO_APIC_ADDR, 0); + + current = acpi_madt_irq_overrides(current); + + return current; +} + static acpi_tstate_t soc_tss_table[] = { { 100, 1000, 0, 0x00, 0 }, { 88, 875, 0, 0x1e, 0 }, -- cgit v1.2.3