acpi: Add an acpi command
authorSimon Glass <sjg@chromium.org>
Sun, 26 Apr 2020 15:19:53 +0000 (09:19 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 30 Apr 2020 09:16:12 +0000 (17:16 +0800)
commit0b885bcfd9b06943bf3dc3102f95961826b04f18
treef34b9a624f440ffb287998260d56f370c0a224aa
parentb38309b7375e2fa6d99c14f4abd84985dc932ff1
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>
arch/sandbox/include/asm/global_data.h
arch/x86/include/asm/global_data.h
cmd/Kconfig
cmd/Makefile
cmd/acpi.c [new file with mode: 0644]
lib/acpi/acpi_table.c
test/dm/acpi.c