vbe: Support loading SPL images
authorSimon Glass <sjg@chromium.org>
Thu, 16 Jan 2025 01:27:22 +0000 (18:27 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 22 Jan 2025 15:47:50 +0000 (09:47 -0600)
commit9ecc1cabe1dd9c013ace4f9d5144bfd69fa2eedf
tree59eab4c1cc4f413a249442afe1c8e53ad0c597b3
parent65250625c518c56b931116f23d62e0cc52f7879b
vbe: Support loading SPL images

VBE needs to load different images from a FIT depending on the xPL phase
in use. The IH_PHASE value is used to select the image to load.

Add the required logic to handle this. For compatibility with the
SPL-loader driver, fill out a struct spl_image_info with the details
needed to boot the next phase.

This is good enough for VBE-simple but ABrec will need the full set of
bootstd features. So add a USE_BOOTMETH define to control this.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/vbe_common.c
boot/vbe_common.h
boot/vbe_simple_fw.c