Skip to content
Snippets Groups Projects
Commit 3ea0953d authored by Simon Glass's avatar Simon Glass
Browse files

dm: Move pre-reloc init earlier to cope with board_early_init_f()


In order to support GPIO access in board_early_init_f() we must set up
driver model before this function is called. In any case, earlier is
better since driver model is (or will become) a key function for most
init.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent b7a80995
Branches
Tags
No related merge requests found
...@@ -831,6 +831,8 @@ static init_fnc_t init_sequence_f[] = { ...@@ -831,6 +831,8 @@ static init_fnc_t init_sequence_f[] = {
#ifdef CONFIG_OF_CONTROL #ifdef CONFIG_OF_CONTROL
fdtdec_check_fdt, fdtdec_check_fdt,
#endif #endif
initf_malloc,
initf_dm,
#if defined(CONFIG_BOARD_EARLY_INIT_F) #if defined(CONFIG_BOARD_EARLY_INIT_F)
board_early_init_f, board_early_init_f,
#endif #endif
...@@ -866,8 +868,6 @@ static init_fnc_t init_sequence_f[] = { ...@@ -866,8 +868,6 @@ static init_fnc_t init_sequence_f[] = {
sdram_adjust_866, sdram_adjust_866,
init_timebase, init_timebase,
#endif #endif
initf_malloc,
initf_dm,
init_baud_rate, /* initialze baudrate settings */ init_baud_rate, /* initialze baudrate settings */
serial_init, /* serial communications setup */ serial_init, /* serial communications setup */
console_init_f, /* stage 1 init of console */ console_init_f, /* stage 1 init of console */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment