From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= Date: Sun, 26 Jun 2016 20:20:28 +0200 Subject: [U-Boot] common: Pass the boot device into spl_boot_mode() In-Reply-To: <1463262127-8796-1-git-send-email-marex@denx.de> (from Marek Vasut on Sat, 14 May 2016 23:42:07 +0200) References: <1463262127-8796-1-git-send-email-marex@denx.de> Message-ID: <1466965228-28161-1-git-send-email-andreas@biessmann.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Marek Vasut, Marek Vasut writes: >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 >Cc: Andreas Bie?mann >Cc: Albert Aribaud >Cc: Tom Rini >Reviewed-by: Andreas Bie?mann >[add newly introduced zynq variant] >Signed-aff-by: Andreas Bie?mann >--- > arch/arm/cpu/arm1136/mx35/generic.c | 2 +- > arch/arm/cpu/armv7/ls102xa/spl.c | 2 +- > arch/arm/cpu/armv7/omap-common/boot-common.c | 2 +- > arch/arm/cpu/armv8/fsl-layerscape/spl.c | 2 +- > arch/arm/imx-common/spl.c | 2 +- > arch/arm/mach-at91/spl.c | 2 +- > arch/arm/mach-davinci/spl.c | 2 +- > arch/arm/mach-mvebu/spl.c | 2 +- > arch/arm/mach-rockchip/rk3288-board-spl.c | 2 +- > arch/arm/mach-socfpga/spl.c | 2 +- > arch/arm/mach-sunxi/board.c | 2 +- > arch/arm/mach-uniphier/boot-mode/boot-mode.c | 2 +- > arch/arm/mach-zynq/spl.c | 2 +- > common/spl/spl_mmc.c | 2 +- > include/spl.h | 2 +- > 15 files changed, 15 insertions(+), 15 deletions(-) applied to u-boot-atmel/master, thanks! Also adopted newly introduced zynq variant of spl_boot_mode(). Best regards, Andreas Bie?mann