diff options
author | Simon Glass <sjg@chromium.org> | 2020-04-26 09:19:53 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2020-04-30 17:16:12 +0800 |
commit | 0b885bcfd9b06943bf3dc3102f95961826b04f18 (patch) | |
tree | f34b9a624f440ffb287998260d56f370c0a224aa /lib | |
parent | b38309b7375e2fa6d99c14f4abd84985dc932ff1 (diff) | |
download | u-boot-0b885bcfd9b06943bf3dc3102f95961826b04f18.tar.gz u-boot-0b885bcfd9b06943bf3dc3102f95961826b04f18.tar.bz2 u-boot-0b885bcfd9b06943bf3dc3102f95961826b04f18.zip |
acpi: Add an acpi command
It is useful to dump ACPI tables in U-Boot to see what has been generated.
Add a command to handle this.
To allow the command to find the tables, add a position into the global
data.
Support subcommands to list and dump the tables.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/acpi/acpi_table.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/acpi/acpi_table.c b/lib/acpi/acpi_table.c index e86df76e2d..1c253af3bf 100644 --- a/lib/acpi/acpi_table.c +++ b/lib/acpi/acpi_table.c @@ -240,6 +240,7 @@ void acpi_setup_base_tables(struct acpi_ctx *ctx, void *start) /* Align ACPI tables to 16 byte */ acpi_align(ctx); + gd->arch.acpi_start = map_to_sysmem(ctx->current); /* We need at least an RSDP and an RSDT Table */ ctx->rsdp = ctx->current; |