mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-29 16:10:24 +09:00
common: Move initr_addr_map() to a bit earlier
At present initr_addr_map() is put at a late stage in the init_sequence_r[] calls. This won't work because lot of device driver initialization (e.g.: serial port) happens before it but is lack of the address translation support. This moves the call to a bit earlier, right after the DM initialization. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
This commit is contained in:
parent
3320656944
commit
a43b598cc1
@ -626,6 +626,9 @@ static init_fnc_t init_sequence_r[] = {
|
|||||||
#ifdef CONFIG_DM
|
#ifdef CONFIG_DM
|
||||||
initr_dm,
|
initr_dm,
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_ADDR_MAP
|
||||||
|
initr_addr_map,
|
||||||
|
#endif
|
||||||
#if defined(CONFIG_ARM) || defined(CONFIG_NDS32) || defined(CONFIG_RISCV) || \
|
#if defined(CONFIG_ARM) || defined(CONFIG_NDS32) || defined(CONFIG_RISCV) || \
|
||||||
defined(CONFIG_SANDBOX)
|
defined(CONFIG_SANDBOX)
|
||||||
board_init, /* Setup chipselects */
|
board_init, /* Setup chipselects */
|
||||||
@ -661,9 +664,6 @@ static init_fnc_t init_sequence_r[] = {
|
|||||||
initr_manual_reloc_cmdtable,
|
initr_manual_reloc_cmdtable,
|
||||||
#endif
|
#endif
|
||||||
arch_initr_trap,
|
arch_initr_trap,
|
||||||
#ifdef CONFIG_ADDR_MAP
|
|
||||||
initr_addr_map,
|
|
||||||
#endif
|
|
||||||
#if defined(CONFIG_BOARD_EARLY_INIT_R)
|
#if defined(CONFIG_BOARD_EARLY_INIT_R)
|
||||||
board_early_init_r,
|
board_early_init_r,
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user