summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMaximilian Brune <[email protected]>2024-10-23 15:19:45 +0200
committerTom Rini <[email protected]>2024-10-27 17:12:44 -0600
commitf5f7962091e453feb2e3f1bfe79dbace5e087c3e (patch)
tree644f954958cae0e4a45de266bf5250d4d3ad5fcb /include
parent1c03efc01485e2f0ba0a8c7eaa94b1bbbf393251 (diff)
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 <[email protected]> Reviewed-by: Simon Glass <[email protected]> Cc: Simon Glass <[email protected]> Cc: Bin Meng <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/acpi/acpi_table.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/acpi/acpi_table.h b/include/acpi/acpi_table.h
index a3724354920..19cf0fb43ca 100644
--- a/include/acpi/acpi_table.h
+++ b/include/acpi/acpi_table.h
@@ -955,6 +955,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
*
* This routine returns the ACPI RSDP table address in the system memory.