sunxi: support loading with SPL > 32KB
authorAndre Przywara <andre.przywara@arm.com>
Mon, 11 Jan 2021 20:11:39 +0000 (21:11 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 25 Jan 2021 21:52:00 +0000 (21:52 +0000)
commitc0b417b2f1a313a5fee5d08eda4a886a9950d1ed
tree066283ab65d1dd75445286298b6aed27c8aff225
parent57e7623776101ee7913997691e09436a393028d5
sunxi: support loading with SPL > 32KB

H616 supports and needs bigger SPL than 32 KiB, mostly due to big DRAM
driver and need for PMIC configuration, which pulls several drivers which
are not needed otherwise.

spl_mmc_get_uboot_raw_sector() will now compare pre-configured size with
that, reported in SPL header. If size in header is bigger, it will use
that value instead.

In the process of function rework, also add missing function argument.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Reviewed-by: Samuel Holland <samuel@sholland.org>
arch/arm/mach-sunxi/board.c
common/spl/Kconfig