Skip to content

Commit

Permalink
arm64: zynqmp: Add third backup bootmode
Browse files Browse the repository at this point in the history
I found this issue when was running py/test.py on zcu102 which is for me by
default setup to SD boot mode without any way to change boot mode.
Alternative software bootmode selection to JTAG is not working because JTAG
mode is 0 which also reset value for it. That's why saying SPL to take
u-boot.itb from RAM instead of SD in SD boot mode is not possible via
alternative bootmode selection.
That's why setup third boot mode to JTAG(BOOT_DEVICE_RAM) as final
fallback.

Signed-off-by: Michal Simek <[email protected]>
  • Loading branch information
Michal Simek committed Apr 6, 2020
1 parent f7e296d commit f1433d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/mach-zynqmp/spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ void board_boot_order(u32 *spl_boot_list)
spl_boot_list[1] = BOOT_DEVICE_MMC2;
if (spl_boot_list[0] == BOOT_DEVICE_MMC2)
spl_boot_list[1] = BOOT_DEVICE_MMC1;

spl_boot_list[2] = BOOT_DEVICE_RAM;
}

u32 spl_boot_device(void)
Expand Down

0 comments on commit f1433d0

Please sign in to comment.