]> git.baikalelectronics.ru Git - uboot.git/commit
sunxi: Support SPL in both eGON and TOC0 images
authorSamuel Holland <samuel@sholland.org>
Fri, 18 Mar 2022 05:00:44 +0000 (00:00 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 4 Apr 2022 22:24:17 +0000 (23:24 +0100)
commitb2b1260dfcc39693b7bb824417be0bd5e2eb486c
treee6dc6acfaa3e0c576600127313a3962df5328cce
parentb50a87b59c19b3f8cf9ebe46d8944efaf827948d
sunxi: Support SPL in both eGON and TOC0 images

SPL uses the image header to detect the boot device and to find the
offset of the next U-Boot stage. Since this information is stored
differently in the eGON and TOC0 image headers, add code to find the
correct value based on the image type currently in use.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/include/asm/arch-sunxi/spl.h
arch/arm/mach-sunxi/board.c
arch/arm/mach-sunxi/spl_spi_sunxi.c