x86: coreboot: Collect the address of the ACPI tables
authorSimon Glass <sjg@chromium.org>
Thu, 4 May 2023 22:54:59 +0000 (16:54 -0600)
committerBin Meng <bmeng@tinylab.org>
Thu, 11 May 2023 02:25:29 +0000 (10:25 +0800)
commit368fd5646604e6759c3beefdfed61c7a1bb0ab33
treefceb79970a7ac20eaae90197a18b14a89dc8998f
parent37bf44073bf2a51f25d82856d51ae16bc8fd8f76
x86: coreboot: Collect the address of the ACPI tables

At present any ACPI tables created by prior-stage firmware are ignored.
It is useful to be able to view these in U-Boot.

Pick this up from the sysinfo tables and display it with the cbsysinfo
command. This allows the 'acpi list' command to work when booting from
coreboot.

Adjust the global_data condition so that acpi_start is available even if
table-generation is disabled.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/include/asm/cb_sysinfo.h
arch/x86/include/asm/coreboot_tables.h
arch/x86/lib/coreboot/cb_sysinfo.c
cmd/x86/cbsysinfo.c
include/asm-generic/global_data.h