]> git.baikalelectronics.ru Git - uboot.git/commit
SPL: Add support for specifying offset between header and image
authorPali Rohár <pali@kernel.org>
Fri, 23 Jul 2021 09:14:27 +0000 (11:14 +0200)
committerStefan Roese <sr@denx.de>
Sat, 31 Jul 2021 07:49:32 +0000 (09:49 +0200)
commit6a6c3d00cb934e40f759b94f145e8e394215216f
tree1586a3eabedebae1d5af6d03a474f9a9cef49037
parent6a682c2107f3656261b7fae8c4eef7907ec27747
SPL: Add support for specifying offset between header and image

Some image types (e.g. kwbimage v1) store the offset to SPL binary and
offset to U-Boot proper binary in their headers. To avoid reading SPL
binary when loading U-Boot proper, add support for specifying offset in
struct spl_image_info, which defines the offset from the beginning of
the header and the beginning of the executable data.

Initial support is added only for SPI, MMC and SATA code. We can extend
it later if needed.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
common/spl/spl_mmc.c
common/spl/spl_sata.c
common/spl/spl_spi.c
include/spl.h