From f9aac92880829c5da2a594740142a4c98406d7f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Sat, 30 May 2020 16:16:28 +0300 Subject: acpi,soc/intel: Make soc/motherboard_fill_fadt() global MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iad7e7af802212d5445aed8bb08a55fd6c044d5bf Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/41916 Reviewed-by: Angel Pons Reviewed-by: Nico Huber Reviewed-by: Patrick Rudolph Tested-by: build bot (Jenkins) --- src/acpi/acpi.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/acpi/acpi.c') diff --git a/src/acpi/acpi.c b/src/acpi/acpi.c index 8bf4b49b66..2f4a2bb675 100644 --- a/src/acpi/acpi.c +++ b/src/acpi/acpi.c @@ -1220,6 +1220,10 @@ void acpi_write_bert(acpi_bert_t *bert, uintptr_t region, size_t length) } #if CONFIG(COMMON_FADT) + +__weak void soc_fill_fadt(acpi_fadt_t *fadt) { } +__weak void motherboard_fill_fadt(acpi_fadt_t *fadt) { } + void acpi_create_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt) { acpi_header_t *header = &(fadt->header); @@ -1256,6 +1260,9 @@ void acpi_create_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt) acpi_fill_fadt(fadt); + soc_fill_fadt(fadt); + motherboard_fill_fadt(fadt); + header->checksum = acpi_checksum((void *) fadt, header->length); } -- cgit v1.2.3