mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-02 09:36:15 +00:00
spl: use different BOARD_INIT MACRO for spl and tpl
SPL and TPL may not always need spl_board_init() at the same time. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
This commit is contained in:
parent
2021f083ed
commit
af2f44267f
2 changed files with 8 additions and 1 deletions
|
@ -757,6 +757,13 @@ config TPL
|
||||||
|
|
||||||
if TPL
|
if TPL
|
||||||
|
|
||||||
|
config TPL_BOARD_INIT
|
||||||
|
bool "Call board-specific initialization in TPL"
|
||||||
|
help
|
||||||
|
If this option is enabled, U-Boot will call the function
|
||||||
|
spl_board_init() from board_init_r(). This function should be
|
||||||
|
provided by the board.
|
||||||
|
|
||||||
config TPL_LDSCRIPT
|
config TPL_LDSCRIPT
|
||||||
string "Linker script for the TPL stage"
|
string "Linker script for the TPL stage"
|
||||||
depends on TPL
|
depends on TPL
|
||||||
|
|
|
@ -407,7 +407,7 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
|
||||||
timer_init();
|
timer_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SPL_BOARD_INIT
|
#if CONFIG_IS_ENABLED(BOARD_INIT)
|
||||||
spl_board_init();
|
spl_board_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue