提交 af2f4426 编写于 作者: K Kever Yang 提交者: Tom Rini

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: NKever Yang <kever.yang@rock-chips.com>
Reviewed-by: NPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
上级 2021f083
......@@ -757,6 +757,13 @@ config 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
string "Linker script for the TPL stage"
depends on TPL
......
......@@ -407,7 +407,7 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
timer_init();
#endif
#ifdef CONFIG_SPL_BOARD_INIT
#if CONFIG_IS_ENABLED(BOARD_INIT)
spl_board_init();
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册