acpi: x86: Write FADT in common code

Write the FADT in common code since it's used on all architectures.
Since the FADT is mandatory all SoCs or mainboards must implement the
introduced function acpi_fill_fadt() and properly update the FADT.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
Maximilian Brune
2024-10-23 15:19:45 +02:00
committed by Tom Rini
parent 1c03efc014
commit f5f7962091
9 changed files with 62 additions and 109 deletions

View File

@@ -954,6 +954,15 @@ void acpi_fill_header(struct acpi_table_header *header, char *signature);
*/
int acpi_fill_csrt(struct acpi_ctx *ctx);
/**
* acpi_fill_fadt() - Fill out the body of the FADT
*
* Must be implemented in SoC specific code or in mainboard code.
*
* @fadt: Pointer to FADT to update
*/
void acpi_fill_fadt(struct acpi_fadt *fadt);
/**
* acpi_get_rsdp_addr() - get ACPI RSDP table address
*