Skip to content
Snippets Groups Projects
Commit 2b1cdafa authored by Marek Vasut's avatar Marek Vasut Committed by Andreas Bießmann
Browse files

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: default avatarMarek 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: default avatarAndreas Bießmann <andreas@biessmann.org>
[add newly introduced zynq variant]
Signed-aff-by: default avatarAndreas Bießmann <andreas@biessmann.org>
parent 4141e85b
No related branches found
No related tags found
No related merge requests found
Showing with 16 additions and 16 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment