diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2024-04-19 17:07:36 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-04-22 18:36:56 +0000 |
commit | d7427c6dc84a808611886f582d8aded467b50abc (patch) | |
tree | 8ae7f0447f71340805583905e9fa987574fbfb0e | |
parent | 62535b66e64ff72229645931a7f5a08147095fc7 (diff) |
vc/amd/opensil/stub/ramstage: add acpi_add_opensil_tables stub
In the non-stub openSIL coreboot glue code, this can be used to add the
ALIB SSDT.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I3ccd2e81211417ad4ac94f208572e0fa4e1cf97c
Reviewed-on: https://review.coreboot.org/c/coreboot/+/82012
Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r-- | src/soc/amd/common/block/include/amdblocks/acpi.h | 1 | ||||
-rw-r--r-- | src/vendorcode/amd/opensil/stub/ramstage.c | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/soc/amd/common/block/include/amdblocks/acpi.h b/src/soc/amd/common/block/include/amdblocks/acpi.h index e2d1c32159..f791c25749 100644 --- a/src/soc/amd/common/block/include/amdblocks/acpi.h +++ b/src/soc/amd/common/block/include/amdblocks/acpi.h @@ -56,6 +56,7 @@ unsigned long soc_acpi_write_tables(const struct device *device, unsigned long c acpi_rsdp_t *rsdp); unsigned long acpi_add_fsp_tables(unsigned long current, acpi_rsdp_t *rsdp); +unsigned long acpi_add_opensil_tables(unsigned long current, acpi_rsdp_t *rsdp); unsigned long southbridge_write_acpi_tables(const struct device *device, unsigned long current, struct acpi_rsdp *rsdp); diff --git a/src/vendorcode/amd/opensil/stub/ramstage.c b/src/vendorcode/amd/opensil/stub/ramstage.c index 33ca447e46..76cbaf8441 100644 --- a/src/vendorcode/amd/opensil/stub/ramstage.c +++ b/src/vendorcode/amd/opensil/stub/ramstage.c @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include <acpi/acpi.h> +#include <amdblocks/acpi.h> #include <device/device.h> #include "opensil.h" @@ -14,6 +15,12 @@ void opensil_fill_fadt_io_ports(acpi_fadt_t *fadt) printk(BIOS_NOTICE, "openSIL stub: %s\n", __func__); } +unsigned long acpi_add_opensil_tables(unsigned long current, acpi_rsdp_t *rsdp) +{ + printk(BIOS_NOTICE, "openSIL stub: %s\n", __func__); + return current; +} + void setup_opensil(void) { printk(BIOS_NOTICE, "openSIL stub: %s\n", __func__); |