On Tue, Jul 6, 2021 at 4:35 AM Andre Przywara <andre.przyw...@arm.com> wrote: > > The more recent Allwinner SoCs BootROMs can actually load SPL images > larger than 32KB. We use this on the H616 to fit the extra code needed > for the PMIC into the image, and have provisions in board.c to respect > that larger SPL size when booting from MMC. > > However the sunxi SPL SPI loader has a hardcoded load offset of 32KB, > which will fail on the H616. > > To fix this, use the same algorithm we use for MMC: if the SPL size is > smaller than 32KB, we use 32KB, otherwise we expect the U-Boot payload > directly after the SPL code. > > This prepares for SPI booting with larger SPLs like on the H616. > > Signed-off-by: Andre Przywara <andre.przyw...@arm.com> > ---
Reviewed-by: Jagan Teki <ja...@amarulasolutions.com>