diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2020-05-30 16:16:28 +0300 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-06-07 21:45:00 +0000 |
commit | f9aac92880829c5da2a594740142a4c98406d7f9 (patch) | |
tree | 8f3e4f3b6fe23439516414ace5eb6321fe122bb6 /src/acpi | |
parent | bf06c0fc46e795d18d2701ea497c26659f1d1eab (diff) | |
download | coreboot-f9aac92880829c5da2a594740142a4c98406d7f9.tar.xz |
acpi,soc/intel: Make soc/motherboard_fill_fadt() global
Change-Id: Iad7e7af802212d5445aed8bb08a55fd6c044d5bf
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41916
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/acpi')
-rw-r--r-- | src/acpi/acpi.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); } |