u-boot-brain/arch/x86/lib/fsp
Simon Glass c793dbdb90 x86: fsp: Allow skipping init code when chain loading
It is useful to be able to boot the same x86 image on a device with or
without a first-stage bootloader. For example, with chromebook_coral, it
is helpful for testing to be able to boot the same U-Boot (complete with
FSP) on bare metal and from coreboot. It allows checking of things like
CPU speed, comparing registers, ACPI tables and the like.

When U-Boot is not the first-stage bootloader much of this code is not
needed and can break booting. Add checks for this to the FSP code.

Rather than checking for the amount of available SDRAM, just use 1GB in
this situation, which should be safe. Using 2GB may run into a memory
hole on some SoCs.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
2020-04-30 17:40:16 +08:00
..
fsp_common.c x86: Move acpi_s3.h to include/acpi/ 2020-04-16 14:36:28 +08:00
fsp_dram.c x86: fsp: Allow skipping init code when chain loading 2020-04-30 17:40:16 +08:00
fsp_graphics.c x86: fsp: Allow skipping init code when chain loading 2020-04-30 17:40:16 +08:00
fsp_support.c x86: fsp: Correct wrong header inlude in fsp_support.c 2019-12-15 11:44:16 +08:00
Makefile x86: fsp: Make graphics support common to FSP1/2 2019-12-15 11:44:16 +08:00