]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: spear: Return to BootROM if failing to boot from the main device
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 7 May 2019 12:18:54 +0000 (14:18 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 11 Jul 2019 14:05:15 +0000 (10:05 -0400)
commit2e8a7202467acc3b40db864468c862327716b0ae
tree366b37bb4418e45eed5e1492c5725cd5e8fd667f
parent6d09581f780644df62f594118156abc638152c15
arm: spear: Return to BootROM if failing to boot from the main device

Overload the weak function board_boot_order() so that besides choosing
the main boot device, we can fallback on USB boot by returning in the
BootROM, eg. if the NOR flash is empty while it was the primary boot
medium.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/cpu/arm926ejs/spear/spl.c