u-boot/arch/arm
Andre Przywara 0ec88323da sunxi: SPL SPI: Allow larger SPL
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.przywara@arm.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
2021-10-25 14:48:58 +01:00
..
cpu Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-tegra 2021-10-15 18:30:33 -04:00
dts u-boot-imx-20211020 2021-10-20 14:24:09 -04:00
include u-boot-imx-20211020 2021-10-20 14:24:09 -04:00
lib image: Drop IMAGE_ENABLE_OF_LIBFDT 2021-10-08 15:53:26 -04:00
mach-aspeed common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mach-at91 WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
mach-bcm283x Xilinx changes for v2022.01-rc1 2021-09-30 11:29:41 -04:00
mach-bcmstb
mach-cortina
mach-davinci WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
mach-exynos serial: Rename SERIAL_SUPPORT to SERIAL 2021-09-04 12:26:01 -04:00
mach-highbank
mach-imx u-boot-imx-20211020 2021-10-20 14:24:09 -04:00
mach-integrator
mach-ipq40xx
mach-k3 board: siemens: Add support for SIMATIC IOT2050 devices 2021-10-03 14:40:56 -04:00
mach-keystone WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
mach-kirkwood Convert CONFIG_USB_EHCI_IS_TDI to Kconfig 2021-10-15 09:42:22 -04:00
mach-lpc32xx arm: lpc32xx: add EA LPC3250 DevKitv2 board support 2021-07-06 14:12:14 -04:00
mach-mediatek arm: mediatek: merge board Kconfigs into mach-mediatek 2021-09-23 14:15:32 -04:00
mach-meson ARM: meson: Add S905Y2 SOC ID 2021-10-07 10:14:50 +02:00
mach-mvebu arm: mvebu: Add missing "if SPL" 2021-10-21 07:39:05 +02:00
mach-nexell global: Convert simple_strtoul() with decimal to dectoul() 2021-08-02 13:32:14 -04:00
mach-octeontx WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
mach-octeontx2 WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
mach-omap2 WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
mach-orion5x WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
mach-owl reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00
mach-qemu
mach-rmobile WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
mach-rockchip lib: optee: remove the duplicate CONFIG_OPTEE 2021-10-05 08:44:48 -04:00
mach-s5pc1xx WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
mach-snapdragon WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
mach-socfpga WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
mach-sti
mach-stm32 serial: Rename SERIAL_SUPPORT to SERIAL 2021-09-04 12:26:01 -04:00
mach-stm32mp tee: add a stub for tee_find_device 2021-10-05 08:44:48 -04:00
mach-sunxi sunxi: SPL SPI: Allow larger SPL 2021-10-25 14:48:58 +01:00
mach-tegra ARM: tegra: Copy memory-region-names property 2021-10-13 14:18:30 -07:00
mach-u8500 board: stemmy: Update documentation 2021-09-01 19:25:37 -04:00
mach-uniphier mmc: Rename MMC_SUPPORT to MMC 2021-09-04 11:42:41 -04:00
mach-versal arm: Migrate GICV2 / GICV3 to Kconfig 2021-08-30 14:13:26 -04:00
mach-versatile WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
mach-zynq spi: Rename SPI_SUPPORT to SPI 2021-09-04 12:26:02 -04:00
mach-zynqmp sata: Rename SATA_SUPPORT to SATA 2021-09-04 12:26:02 -04:00
mach-zynqmp-r5 reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00
thumb1/include/asm/proc-armv
config.mk ARM: Prevent the compiler from using NEON registers 2021-09-02 11:19:58 -04:00
Kconfig sunxi: Select SPL_SEPARATE_BSS 2021-10-25 14:48:58 +01:00
Kconfig.debug
Makefile arm: Remove flea3 board 2021-10-01 12:08:19 -04:00