diff options
author | Simon Glass <sjg@chromium.org> | 2021-12-01 09:03:02 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-01-25 11:44:36 -0700 |
commit | a7e53b93b1ca4de745ab5fbdd3db2bd7888adb0f (patch) | |
tree | 5f5fed00eeacbeb05105df73a3b0b7163a3d6c3a /lib/acpi | |
parent | 78031ad43168d13de5c9ecf72877e8d5d35f749a (diff) | |
download | u-boot-a7e53b93b1ca4de745ab5fbdd3db2bd7888adb0f.zip u-boot-a7e53b93b1ca4de745ab5fbdd3db2bd7888adb0f.tar.gz u-boot-a7e53b93b1ca4de745ab5fbdd3db2bd7888adb0f.tar.bz2 |
x86: Move device-specific ACPI tables to a writer function
Move this over to use a writer function, moving the code from the x86
implementation.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/acpi')
-rw-r--r-- | lib/acpi/acpi_writer.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/acpi/acpi_writer.c b/lib/acpi/acpi_writer.c index d2505e6..59f951c 100644 --- a/lib/acpi/acpi_writer.c +++ b/lib/acpi/acpi_writer.c @@ -90,6 +90,18 @@ ulong write_acpi_tables(ulong start_addr) return addr; } + +int write_dev_tables(struct acpi_ctx *ctx, const struct acpi_writer *entry) +{ + int ret; + + ret = acpi_write_dev_tables(ctx); + if (ret) + return log_msg_ret("write", ret); + + return 0; +} +ACPI_WRITER(8dev, NULL, write_dev_tables, 0); #endif /* QEMU */ void acpi_setup_ctx(struct acpi_ctx *ctx, ulong start) |