summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier/boot-mode/boot-mode.c
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2016-05-14 21:42:07 (GMT)
committerAndreas Bießmann <andreas@biessmann.org>2016-06-26 18:17:22 (GMT)
commit2b1cdafa9fdd0c88eb1bc96e9330e252c9795689 (patch)
tree5d81e6fe31f534d1d970eb1d62d1ad10e2837933 /arch/arm/mach-uniphier/boot-mode/boot-mode.c
parent4141e85bcd79c0b9b16def710e527f165107b7af (diff)
downloadu-boot-fsl-qoriq-2b1cdafa9fdd0c88eb1bc96e9330e252c9795689.tar.xz
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>
Diffstat (limited to 'arch/arm/mach-uniphier/boot-mode/boot-mode.c')
-rw-r--r--arch/arm/mach-uniphier/boot-mode/boot-mode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-uniphier/boot-mode/boot-mode.c b/arch/arm/mach-uniphier/boot-mode/boot-mode.c
index d34b9af..1d53140 100644
--- a/arch/arm/mach-uniphier/boot-mode/boot-mode.c
+++ b/arch/arm/mach-uniphier/boot-mode/boot-mode.c
@@ -77,7 +77,7 @@ u32 spl_boot_device(void)
return mode;
}
-u32 spl_boot_mode(void)
+u32 spl_boot_mode(const u32 boot_device)
{
struct mmc *mmc;