From: Philipp Tomsich Date: Fri, 13 Jul 2018 12:25:03 +0200 Subject: [U-Boot] [U-Boot, v1, 1/4] spl: record boot_device into spl_image and call spl_perform_fixups In-Reply-To: <1527174954-21127-2-git-send-email-philipp.tomsich@theobroma-systems.com> References: <1527174954-21127-2-git-send-email-philipp.tomsich@theobroma-systems.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > 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 > Tested-by: Klaus Goger > --- > > common/spl/spl.c | 12 +++++++++++- > include/spl.h | 7 +++++++ > 2 files changed, 18 insertions(+), 1 deletion(-) > Applied to u-boot-rockchip, thanks!