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/google/cyan | |
parent | d37cfb766942748782dd866ec986dc36538836a2 (diff) | |
download | coreboot-18edd0008c1cfd7d0c61dcceb02cbfea03d464bf.tar.xz |
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/google/cyan')
-rw-r--r-- | src/mainboard/google/cyan/acpi_tables.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/mainboard/google/cyan/acpi_tables.c b/src/mainboard/google/cyan/acpi_tables.c index 08f21ba1cf..42380d51b3 100644 --- a/src/mainboard/google/cyan/acpi_tables.c +++ b/src/mainboard/google/cyan/acpi_tables.c @@ -1,10 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include <acpi/acpi.h> #include <acpi/acpi_gnvs.h> -#include <arch/ioapic.h> #include <boardid.h> -#include <soc/acpi.h> #include <soc/nvs.h> #include <soc/device_nvs.h> @@ -28,17 +25,3 @@ void mainboard_fill_gnvs(struct global_nvs *gnvs) gnvs->bdid = board_id(); } - -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; -} |