diff options
author | Simon Glass <sjg@chromium.org> | 2017-04-15 22:11:31 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-04-18 17:29:26 +0300 |
commit | e1bc64eec279e103feedff02f3a4b3c2e9f15240 (patch) | |
tree | 49ed8130075054777b060cfbb0fa05806fb7fa51 /arch/arm/mach-rockchip/bootrom.c | |
parent | d1710561b0c4b68041d0f51e8fc5cfe3c2c15bb9 (diff) | |
download | u-boot-e1bc64eec279e103feedff02f3a4b3c2e9f15240.tar.xz |
rockchip: Print a message when returning to the bootrom
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>
Diffstat (limited to 'arch/arm/mach-rockchip/bootrom.c')
-rw-r--r-- | arch/arm/mach-rockchip/bootrom.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mach-rockchip/bootrom.c b/arch/arm/mach-rockchip/bootrom.c new file mode 100644 index 0000000000..da36f92697 --- /dev/null +++ b/arch/arm/mach-rockchip/bootrom.c @@ -0,0 +1,16 @@ +/** + * Copyright (c) 2017 Google, Inc + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include <common.h> +#include <asm/arch/bootrom.h> + +void back_to_bootrom(void) +{ +#if defined(CONFIG_SPL_LIBGENERIC_SUPPORT) && !defined(CONFIG_TPL_BUILD) + printf("Returning to boot ROM..."); +#endif + _back_to_bootrom_s(); +} |