]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: eMMC/SD: Provide one __weak spl_boot_mode() function
authorLukasz Majewski <lukma@denx.de>
Sat, 3 Feb 2018 07:29:52 +0000 (08:29 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 8 Feb 2018 03:06:18 +0000 (22:06 -0500)
commitd695d6627803dbb78a226e04b0436a01633a9936
treecc469594d3654709f309c935c0292a12be0e32fa
parent492322992be31f535dd825b3f0475f05df21256b
spl: eMMC/SD: Provide one __weak spl_boot_mode() function

The goal of this patch is to clean up the code related to choosing SPL
MMC boot mode.

The spl_boot_mode() now is called only in spl_mmc_load_image() function,
which is only compiled in if CONFIG_SPL_MMC_SUPPORT is enabled.

To achieve the goal, all per mach/arch implementations eligible for
unification has been replaced with one __weak implementation.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Stefano Babic <sbabic@denx.de>
Acked-by: Michal Simek <michal.simek@xilinx.com> (For ZynqMP)
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
16 files changed:
arch/arm/cpu/arm1136/mx35/generic.c
arch/arm/cpu/armv7/ls102xa/spl.c
arch/arm/cpu/armv8/fsl-layerscape/spl.c
arch/arm/cpu/armv8/zynqmp/spl.c
arch/arm/mach-at91/spl.c
arch/arm/mach-davinci/spl.c
arch/arm/mach-imx/spl.c
arch/arm/mach-mvebu/spl.c
arch/arm/mach-rockchip/rk3188-board-spl.c
arch/arm/mach-rockchip/rk3288-board-spl.c
arch/arm/mach-rockchip/rk3368-board-spl.c
arch/arm/mach-rockchip/rk3399-board-spl.c
arch/arm/mach-socfpga/spl.c
arch/arm/mach-sunxi/board.c
arch/arm/mach-zynq/spl.c
common/spl/spl_mmc.c