common: Pass the boot device into spl_boot_mode()
The SPL code already knows which boot device it calls the spl_boot_mode() on, so pass that information into the function. This allows the code of spl_boot_mode() avoid invoking spl_boot_device() again, but it also lets board_boot_order() correctly alter the behavior of the boot process. The later one is important, since in certain cases, it is desired that spl_boot_device() return value be overriden using board_boot_order(). Signed-off-by:Marek Vasut <marex@denx.de> Cc: Andreas Bießmann <andreas.devel@googlemail.com> Cc: Albert Aribaud <albert.u.boot@aribaud.net> Cc: Tom Rini <trini@konsulko.com> Reviewed-by:
Andreas Bießmann <andreas@biessmann.org> [add newly introduced zynq variant] Signed-aff-by:
Andreas Bießmann <andreas@biessmann.org>
Showing
- arch/arm/cpu/arm1136/mx35/generic.c 1 addition, 1 deletionarch/arm/cpu/arm1136/mx35/generic.c
- arch/arm/cpu/armv7/ls102xa/spl.c 1 addition, 1 deletionarch/arm/cpu/armv7/ls102xa/spl.c
- arch/arm/cpu/armv7/omap-common/boot-common.c 1 addition, 1 deletionarch/arm/cpu/armv7/omap-common/boot-common.c
- arch/arm/cpu/armv8/fsl-layerscape/spl.c 1 addition, 1 deletionarch/arm/cpu/armv8/fsl-layerscape/spl.c
- arch/arm/cpu/armv8/zynqmp/spl.c 1 addition, 1 deletionarch/arm/cpu/armv8/zynqmp/spl.c
- arch/arm/imx-common/spl.c 1 addition, 1 deletionarch/arm/imx-common/spl.c
- arch/arm/mach-at91/spl.c 1 addition, 1 deletionarch/arm/mach-at91/spl.c
- arch/arm/mach-davinci/spl.c 1 addition, 1 deletionarch/arm/mach-davinci/spl.c
- arch/arm/mach-mvebu/spl.c 1 addition, 1 deletionarch/arm/mach-mvebu/spl.c
- arch/arm/mach-rockchip/rk3288-board-spl.c 1 addition, 1 deletionarch/arm/mach-rockchip/rk3288-board-spl.c
- arch/arm/mach-socfpga/spl.c 1 addition, 1 deletionarch/arm/mach-socfpga/spl.c
- arch/arm/mach-sunxi/board.c 1 addition, 1 deletionarch/arm/mach-sunxi/board.c
- arch/arm/mach-uniphier/boot-mode/boot-mode.c 1 addition, 1 deletionarch/arm/mach-uniphier/boot-mode/boot-mode.c
- arch/arm/mach-zynq/spl.c 1 addition, 1 deletionarch/arm/mach-zynq/spl.c
- common/spl/spl_mmc.c 1 addition, 1 deletioncommon/spl/spl_mmc.c
- include/spl.h 1 addition, 1 deletioninclude/spl.h
Loading
Please register or sign in to comment