]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: mmc: extend spl_mmc_boot_mode() to take mmc argument
authorAndre Przywara <andre.przywara@arm.com>
Mon, 12 Jul 2021 10:06:49 +0000 (11:06 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 4 Apr 2022 22:24:17 +0000 (23:24 +0100)
commit59073573227ce7aeae3957744146cdf23849c8b9
tree5a71abc6fdbc4f861344877b75e850ec93cad61d
parent35b786c1ba97ea2548ea1418352e02f7b9dfbc8b
spl: mmc: extend spl_mmc_boot_mode() to take mmc argument

Platforms can overwrite the weak definition of spl_mmc_boot_mode() to
determine where to load U-Boot proper from.
For most of them this is a trivial decision based on Kconfig variables,
but it might be desirable the probe the actual device to answer this
question.

Pass the pointer to the mmc struct to that function, so implementations
can make use of that.

Compile-tested for all users changed.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Stefano Babic <sbabic@denx.de>
Reviewed-by: Ley Foon Tan <ley.foon.tan@inte.com> (for SoCFPGA)
Acked-by: Lokesh Vutla <lokeshvutla@ti.com> (for OMAP and K3)
Reviewed-by: Simon Glass <sjg@chromium.org>
14 files changed:
arch/arm/mach-imx/spl.c
arch/arm/mach-k3/am642_init.c
arch/arm/mach-k3/am6_init.c
arch/arm/mach-k3/j721e_init.c
arch/arm/mach-k3/j721s2_init.c
arch/arm/mach-mvebu/spl.c
arch/arm/mach-omap2/boot-common.c
arch/arm/mach-rockchip/spl.c
arch/arm/mach-socfpga/spl_a10.c
arch/arm/mach-socfpga/spl_gen5.c
arch/arm/mach-stm32mp/spl.c
arch/arm/mach-uniphier/mmc-boot-mode.c
common/spl/spl_mmc.c
include/spl.h