At present if the return to bootrom fails (e.g. because you are not using the Rockchip's bootrom's pointer table in MMC) then the board prints SPL message and hangs. Print a message first if we can, to help in understanding what happened when it hangs. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Heiko Stuebner <heiko@sntech.de> Acked-by: Heiko Stuebner <heiko@sntech.de>
27 lines
489 B
C
27 lines
489 B
C
/*
|
|
* (C) Copyright 2017 Heiko Stuebner <heiko@sntech.de>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0
|
|
*/
|
|
|
|
#ifndef _ASM_ARCH_BOOTROM_H
|
|
#define _ASM_ARCH_BOOTROM_H
|
|
|
|
/*
|
|
* Saved Stack pointer address.
|
|
* Access might be needed in some special cases.
|
|
*/
|
|
extern u32 SAVE_SP_ADDR;
|
|
|
|
/**
|
|
* Hand control back to the bootrom to load another
|
|
* boot stage.
|
|
*/
|
|
void back_to_bootrom(void);
|
|
|
|
/**
|
|
* Assembler component for the above (do not call this directly)
|
|
*/
|
|
void _back_to_bootrom_s(void);
|
|
|
|
#endif
|