mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
spl: add a 'return to bootrom' boot method
Some devices (e.g. the RK3368) have only limited SRAM, but provide support for loading the next boot stage after our SPL performs basic setup (e.g. DRAM). For target systems like these, we add a boot device BOOTROM that will invoke a board-specific hook to return to the bootrom (if supported). Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
da0227f7d2
commit
225d30b708
5 changed files with 50 additions and 0 deletions
|
@ -268,4 +268,14 @@ int spl_mmc_load_image(struct spl_image_info *spl_image,
|
|||
struct spl_boot_device *bootdev);
|
||||
|
||||
void bl31_entry(void);
|
||||
|
||||
/**
|
||||
* board_return_to_bootrom - allow for boards to continue with the boot ROM
|
||||
*
|
||||
* If a board (e.g. the Rockchip RK3368 boards) provide some
|
||||
* supporting functionality for SPL in their boot ROM and the SPL
|
||||
* stage wants to return to the ROM code to continue booting, boards
|
||||
* can implement 'board_return_to_bootrom'.
|
||||
*/
|
||||
void board_return_to_bootrom(void);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue