From 18edd0008c1cfd7d0c61dcceb02cbfea03d464bf Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Thu, 28 Jan 2021 12:22:52 +0100 Subject: soc/intel/braswell: Factor out common `acpi_fill_madt` Function is identical for all mainboards, so factor it out. Change-Id: Ibe08fa7ae19bfc238d09158309f0a9fdb31ad21c Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/50028 Reviewed-by: Tim Wawrzynczak Reviewed-by: Nico Huber Tested-by: build bot (Jenkins) --- src/mainboard/facebook/fbg1701/acpi_tables.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/mainboard/facebook/fbg1701/acpi_tables.c') diff --git a/src/mainboard/facebook/fbg1701/acpi_tables.c b/src/mainboard/facebook/fbg1701/acpi_tables.c index 92db5b69db..226da413fc 100644 --- a/src/mainboard/facebook/fbg1701/acpi_tables.c +++ b/src/mainboard/facebook/fbg1701/acpi_tables.c @@ -2,8 +2,6 @@ #include #include -#include -#include #include #include @@ -25,20 +23,6 @@ void mainboard_fill_gnvs(struct global_nvs *gnvs) dev_nvs->lpss_en[LPSS_NVS_I2C2] = 0; } -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; -} - void mainboard_fill_fadt(acpi_fadt_t *fadt) { fadt->preferred_pm_profile = PM_MOBILE; -- cgit v1.2.3