mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
x86: Move coreboot sysinfo parsing into generic x86 code
It is useful to be able to parse coreboot tables on any x86 build which is booted from coreboot. Add a new Kconfig option to enable this feature and move the code so it can be used on any board, if enabled. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
f9f06e628e
commit
68e03ca21a
5 changed files with 28 additions and 1 deletions
|
@ -1047,4 +1047,25 @@ config INTEL_GMA_SWSMISCI
|
|||
|
||||
endif # INTEL_SOC
|
||||
|
||||
config COREBOOT_SYSINFO
|
||||
bool "Support reading coreboot sysinfo"
|
||||
default y if SYS_COREBOOT
|
||||
help
|
||||
Select this option to read the coreboot sysinfo table on start-up,
|
||||
if present. This is written by coreboot before it exits and provides
|
||||
various pieces of information about the running system, including
|
||||
display, memory and build information. It is stored in
|
||||
struct sysinfo_t after parsing by get_coreboot_info().
|
||||
|
||||
config SPL_COREBOOT_SYSINFO
|
||||
bool "Support reading coreboot sysinfo"
|
||||
depends on SPL
|
||||
default y if COREBOOT_SYSINFO
|
||||
help
|
||||
Select this option to read the coreboot sysinfo table in SPL,
|
||||
if present. This is written by coreboot before it exits and provides
|
||||
various pieces of information about the running system, including
|
||||
display, memory and build information. It is stored in
|
||||
struct sysinfo_t after parsing by get_coreboot_info().
|
||||
|
||||
endmenu
|
||||
|
|
|
@ -20,5 +20,4 @@ else
|
|||
obj-y += sdram.o
|
||||
endif
|
||||
obj-y += coreboot.o
|
||||
obj-y += tables.o
|
||||
obj-y += timestamp.o
|
||||
|
|
|
@ -15,6 +15,7 @@ ifndef CONFIG_SPL_BUILD
|
|||
obj-$(CONFIG_CMD_BOOTM) += bootm.o
|
||||
endif
|
||||
obj-y += cmd_boot.o
|
||||
obj-$(CONFIG_$(SPL_)COREBOOT_SYSINFO) += coreboot/
|
||||
obj-$(CONFIG_SEABIOS) += coreboot_table.o
|
||||
obj-y += early_cmos.o
|
||||
obj-y += e820.o
|
||||
|
|
6
arch/x86/lib/coreboot/Makefile
Normal file
6
arch/x86/lib/coreboot/Makefile
Normal file
|
@ -0,0 +1,6 @@
|
|||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
# Copyright 2021 Google LLC
|
||||
#
|
||||
|
||||
obj-y += cb_sysinfo.o
|
Loading…
Reference in a new issue