]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit8363b5c40592dd84979361bcaeaec5e3bdad1e63
tree091d8abd1a7e66e5e0103022467d51889088da06
parent04d9749cc8bbc4c11d228eb45e36a2b633ae6eb2
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