arm: spear: Support returning to BootROM
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 7 May 2019 12:18:52 +0000 (14:18 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 11 Jul 2019 14:05:15 +0000 (10:05 -0400)
commitf78fdee9fc157afe35118f01f349aff5aa791c81
tree091d8abd1a7e66e5e0103022467d51889088da06
parent6a9d0e275f0edb952541ae4efb0dc394242f9b5a
arm: spear: Support returning to BootROM

Implement the weak board_return_to_bootrom() function so that when
enabling the spl_bootrom.c driver, one can make use of usbboot on
spear platforms. All necessary information to return to the BootROM
are stored in the BootROM's stack. The SPL stack pointer is reset so
we save the BootROM's stack pointer into the SPL .data section.

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