diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2024-01-26 14:22:31 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-01-27 16:38:54 +0000 |
commit | d9e826322031f5936231be44e3b2c406be40a304 (patch) | |
tree | 5721ca69716d2c0d7ecdf28dcce0e42a4e1e3386 /src/soc/amd/mendocino | |
parent | 3aaf8efdfad7081fa39a679f2f6d28a176c3a005 (diff) | |
download | coreboot-d9e826322031f5936231be44e3b2c406be40a304.tar.gz coreboot-d9e826322031f5936231be44e3b2c406be40a304.tar.bz2 coreboot-d9e826322031f5936231be44e3b2c406be40a304.zip |
soc/amd/*/acpi: use common soc_acpi_write_tables prototype
Since the definition is the same for all SoCs, move it to the common
amdblock/acpi.h header. Since the Stoneyridge northbridge.c file also
includes this prototype, remove the static attribute of the function
there.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: Ib9aa215f2b4ba58f43fed2c751d989f1719e0a17
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80221
Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/mendocino')
-rw-r--r-- | src/soc/amd/mendocino/chip.c | 2 | ||||
-rw-r--r-- | src/soc/amd/mendocino/include/soc/acpi.h | 8 |
2 files changed, 1 insertions, 9 deletions
diff --git a/src/soc/amd/mendocino/chip.c b/src/soc/amd/mendocino/chip.c index 50a1edf37ca4..f724e2040927 100644 --- a/src/soc/amd/mendocino/chip.c +++ b/src/soc/amd/mendocino/chip.c @@ -1,11 +1,11 @@ /* SPDX-License-Identifier: GPL-2.0-only */ +#include <amdblocks/acpi.h> #include <amdblocks/data_fabric.h> #include <amdblocks/fsp.h> #include <console/console.h> #include <device/device.h> #include <device/pci.h> -#include <soc/acpi.h> #include <soc/cpu.h> #include <soc/pci_devs.h> #include <soc/southbridge.h> diff --git a/src/soc/amd/mendocino/include/soc/acpi.h b/src/soc/amd/mendocino/include/soc/acpi.h index 5b724920790a..25f9234938b2 100644 --- a/src/soc/amd/mendocino/include/soc/acpi.h +++ b/src/soc/amd/mendocino/include/soc/acpi.h @@ -3,14 +3,6 @@ #ifndef AMD_MENDOCINO_ACPI_H #define AMD_MENDOCINO_ACPI_H -#include <acpi/acpi.h> -#include <amdblocks/acpi.h> -#include <device/device.h> -#include <stdint.h> - #define ACPI_SCI_IRQ 9 -unsigned long soc_acpi_write_tables(const struct device *device, unsigned long current, - acpi_rsdp_t *rsdp); - #endif /* AMD_MENDOCINO_ACPI_H */ |