]> git.baikalelectronics.ru Git - uboot.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)
commit8c22ac9cbbc2d2cc57dee3df353fb3a14b95e539
tree366b37bb4418e45eed5e1492c5725cd5e8fd667f
parent14b1720dd3d00c354a98dc732542374e4112e058
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