commit | 2b5994b45233d4b0f0eb9d760f480d176c18c4ac | [log] [tgz] |
---|---|---|
author | Kever Yang <kever.yang@rock-chips.com> | Sat Jan 20 18:00:26 2018 +0800 |
committer | Tom Rini <trini@konsulko.com> | Sun Jan 28 12:27:29 2018 -0500 |
tree | b122c4e20376c6eae6bfd40d72fcf98dd845b1f6 | |
parent | d1f43334a5934e3eee470885eb96c9bfb0e1f4d5 [diff] [blame] |
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>
diff --git a/common/spl/spl.c b/common/spl/spl.c index 76c1963..1566acd 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c
@@ -407,7 +407,7 @@ timer_init(); #endif -#ifdef CONFIG_SPL_BOARD_INIT +#if CONFIG_IS_ENABLED(BOARD_INIT) spl_board_init(); #endif