diff options
author | Heiko Stübner <heiko@sntech.de> | 2017-02-18 18:46:26 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-03-16 22:03:44 (GMT) |
commit | aade077e431b584980a0418c0e464f6ef31c5c20 (patch) | |
tree | b5693f1f7110f937a66e91cfaa9e632e013dce18 /arch/arm/include/asm/arch-rockchip/bootrom.h | |
parent | 1d845947a3f834654f4164bda6faf7fff7e61476 (diff) | |
download | u-boot-aade077e431b584980a0418c0e464f6ef31c5c20.tar.xz |
rockchip: Move bootrom-related declarations to a header
So far spl-boards have declared the back_to_brom() function as simple
extern in the files themself. That doesn't scale well if every boards
defines this on its own.
Therefore move the declarations to a bootrom header.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'arch/arm/include/asm/arch-rockchip/bootrom.h')
-rw-r--r-- | arch/arm/include/asm/arch-rockchip/bootrom.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-rockchip/bootrom.h b/arch/arm/include/asm/arch-rockchip/bootrom.h new file mode 100644 index 0000000..79fb1a0 --- /dev/null +++ b/arch/arm/include/asm/arch-rockchip/bootrom.h @@ -0,0 +1,22 @@ +/* + * (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. + */ +extern void back_to_bootrom(void); + +#endif |