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)
commit44de13d9459afedd85334d7ba83c13451af0977d
treee6dc6acfaa3e0c576600127313a3962df5328cce
parente9e87ec47c756b1ee2b0a6680488d60adb2079a9
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