From d7427c6dc84a808611886f582d8aded467b50abc Mon Sep 17 00:00:00 2001 From: Felix Held Date: Fri, 19 Apr 2024 17:07:36 +0200 Subject: 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 Change-Id: I3ccd2e81211417ad4ac94f208572e0fa4e1cf97c Reviewed-on: https://review.coreboot.org/c/coreboot/+/82012 Reviewed-by: Matt DeVillier Tested-by: build bot (Jenkins) --- src/soc/amd/common/block/include/amdblocks/acpi.h | 1 + src/vendorcode/amd/opensil/stub/ramstage.c | 7 +++++++ 2 files changed, 8 insertions(+) (limited to 'src') 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 +#include #include #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__); -- cgit v1.2.3