]> git.baikalelectronics.ru Git - uboot.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)
commit14cdbe1088c94ab1c1958896a63d654072b7c798
tree5a71abc6fdbc4f861344877b75e850ec93cad61d
parent32f5d67b5d1e5b62a5bfcc4083d2ae7da660eb60
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