mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-03 10:00:42 +09:00
arm64: zynqmp: spl: use given boot_device instead of fetching it again
The boot_device argument to spl_boot_mode was massively added without actually modifying the existing functions. This commit actually makes use of the handed value, which is the same. Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
e3fdf5d056
commit
8bf62ae7da
@ -112,7 +112,7 @@ u32 spl_boot_device(void)
|
|||||||
|
|
||||||
u32 spl_boot_mode(const u32 boot_device)
|
u32 spl_boot_mode(const u32 boot_device)
|
||||||
{
|
{
|
||||||
switch (spl_boot_device()) {
|
switch (boot_device) {
|
||||||
case BOOT_DEVICE_RAM:
|
case BOOT_DEVICE_RAM:
|
||||||
return 0;
|
return 0;
|
||||||
case BOOT_DEVICE_MMC1:
|
case BOOT_DEVICE_MMC1:
|
||||||
|
Loading…
Reference in New Issue
Block a user