x86: acpi: Support external GNVS tables
authorSimon Glass <sjg@chromium.org>
Tue, 22 Sep 2020 18:44:53 +0000 (12:44 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 25 Sep 2020 03:27:13 +0000 (11:27 +0800)
commit55109f1d4ed5ffde978bf71c240deff27f6e9b8a
tree5eaf24eeaf32872af1d0e18114045ae0d4425c50
parent167c3f6e93abc1675669e2defe28e9d2708f87bb
x86: acpi: Support external GNVS tables

At present U-Boot puts a magic number in the ASL for the GNVS table and
searches for it later.

Add a Kconfig option to use a different approach, where the ASL files
declare the table as an external symbol. U-Boot can then put it wherever
it likes, without any magic numbers or searching.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/Kconfig
arch/x86/cpu/apollolake/Kconfig
arch/x86/include/asm/acpi/global_nvs.h
arch/x86/lib/acpi_table.c