]> git.baikalelectronics.ru Git - uboot.git/commit
spl: record boot_device into spl_image and call spl_perform_fixups
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Thu, 24 May 2018 15:15:50 +0000 (17:15 +0200)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 20 Jul 2018 23:55:26 +0000 (01:55 +0200)
commit0cadb0c993fe4f7f62c4b408c255a9dee2e10a50
treec18c3c1c9a10aa246dfae37c68335c9c371a67cf
parent617970000c5f4c487c8f4ba59f9717da4f5b4892
spl: record boot_device into spl_image and call spl_perform_fixups

On some boards, we want to give the board/architecture-specific code a
chance to look at where the next image has been loaded from and
perform fixups before starting the next image.  This is of particular
importance, when we probe multiple devices for bootable payloads and
boot the first one found.

This change adds the following:
 - we record the boot_device used into the spl_image structure
 - we provide an extension-point for boards/architectures that can
   perform late fixups depending on a fully populated spl_image
   structure (i.e. we'll know the final boot_device and have info
   on the image type and operating system to be booted).

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tested-by: Klaus Goger <klaus.goger@theobroma-systems.com>
common/spl/spl.c
include/spl.h