diff options
author | Maximilian Brune <maximilian.brune@9elements.com> | 2024-10-23 15:19:44 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-10-27 17:12:44 -0600 |
commit | 1c03efc01485e2f0ba0a8c7eaa94b1bbbf393251 (patch) | |
tree | 8a618c00aa7a3b9d3edd7180faa1c3b578309729 /include/acpi/acpi_table.h | |
parent | 0d28900dd171d3444ea16d9cc18af35a90c03e27 (diff) |
acpi: x86: Move SPCR and DBG2 into common code
This moves the SPCR and DBG2 table generation into common code, so that
they can be used by architectures other than x86.
Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com>
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>
Diffstat (limited to 'include/acpi/acpi_table.h')
-rw-r--r-- | include/acpi/acpi_table.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/acpi/acpi_table.h b/include/acpi/acpi_table.h index 15fd61a51d7..a3724354920 100644 --- a/include/acpi/acpi_table.h +++ b/include/acpi/acpi_table.h @@ -914,6 +914,17 @@ static inline int acpi_add_fadt(struct acpi_ctx *ctx, struct acpi_fadt *fadt) } /** + * acpi_write_dbg2_pci_uart() - Write out a DBG2 table + * + * @ctx: Current ACPI context + * @dev: Debug UART device to describe + * @access_size: Access size for UART (e.g. ACPI_ACCESS_SIZE_DWORD_ACCESS) + * Return: 0 if OK, -ve on error + */ +int acpi_write_dbg2_pci_uart(struct acpi_ctx *ctx, struct udevice *dev, + uint access_size); + +/** * acpi_write_rsdp() - Write out an RSDP indicating where the ACPI tables are * * @rsdp: Address to write RSDP |