common: board_r: init env before board_init()
We need to get and update env if we need to read kernel dtb in board_init(). Note that the env is NOWHERE now, or else we need to init emmc first if ENV_IS_IN_MMC. Change-Id: I22685fea77315811f3ff2bac7fb29d3b9206be34 Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
parent
7048c21cd4
commit
fac2f0408a
|
|
@ -704,6 +704,9 @@ static init_fnc_t init_sequence_r[] = {
|
|||
#ifdef CONFIG_DM
|
||||
initr_dm,
|
||||
#endif
|
||||
#ifdef CONFIG_USING_KERNEL_DTB
|
||||
initr_env,
|
||||
#endif
|
||||
#if defined(CONFIG_ARM) || defined(CONFIG_NDS32)
|
||||
board_init, /* Setup chipselects */
|
||||
#endif
|
||||
|
|
@ -771,7 +774,9 @@ static init_fnc_t init_sequence_r[] = {
|
|||
#ifdef CONFIG_MMC
|
||||
initr_mmc,
|
||||
#endif
|
||||
#ifndef CONFIG_USING_KERNEL_DTB
|
||||
initr_env,
|
||||
#endif
|
||||
#ifdef CONFIG_SYS_BOOTPARAMS_LEN
|
||||
initr_malloc_bootparams,
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue