diff options
author | Angel Pons <th3fanbus@gmail.com> | 2021-01-28 12:22:52 +0100 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2021-03-12 15:41:35 +0000 |
commit | 18edd0008c1cfd7d0c61dcceb02cbfea03d464bf (patch) | |
tree | d8cf8145d36a486340148e408e31971e5bc25167 /src/mainboard/facebook | |
parent | d37cfb766942748782dd866ec986dc36538836a2 (diff) |
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 <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50028
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/facebook')
-rw-r--r-- | src/mainboard/facebook/fbg1701/acpi_tables.c | 16 |
1 files changed, 0 insertions, 16 deletions
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 <acpi/acpi.h> #include <acpi/acpi_gnvs.h> -#include <arch/ioapic.h> -#include <soc/acpi.h> #include <soc/nvs.h> #include <soc/device_nvs.h> @@ -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; |