Skip to content
Snippets Groups Projects
Commit fb3db635 authored by Daniel Schwierzeck's avatar Daniel Schwierzeck
Browse files

common/board_f: enable setup_board_part1() for MIPS


The variables bd_t:bi_memstart and bd_t:bi_memsize have to be
initialized also on MIPS. Otherwise LMB and cmd_bdinfo do not
correctly work. This currently breaks the booting of FIT images
on MIPS. Enable the board_init_f hook setup_board_part1()
for MIPS to fix this.

Signed-off-by: default avatarDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent ed02c532
No related branches found
No related tags found
No related merge requests found
...@@ -551,7 +551,7 @@ static int display_new_sp(void) ...@@ -551,7 +551,7 @@ static int display_new_sp(void)
return 0; return 0;
} }
#if defined(CONFIG_PPC) || defined(CONFIG_M68K) #if defined(CONFIG_PPC) || defined(CONFIG_M68K) || defined(CONFIG_MIPS)
static int setup_board_part1(void) static int setup_board_part1(void)
{ {
bd_t *bd = gd->bd; bd_t *bd = gd->bd;
...@@ -580,7 +580,9 @@ static int setup_board_part1(void) ...@@ -580,7 +580,9 @@ static int setup_board_part1(void)
return 0; return 0;
} }
#endif
#if defined(CONFIG_PPC) || defined(CONFIG_M68K)
static int setup_board_part2(void) static int setup_board_part2(void)
{ {
bd_t *bd = gd->bd; bd_t *bd = gd->bd;
...@@ -933,8 +935,10 @@ static init_fnc_t init_sequence_f[] = { ...@@ -933,8 +935,10 @@ static init_fnc_t init_sequence_f[] = {
reserve_stacks, reserve_stacks,
setup_dram_config, setup_dram_config,
show_dram_config, show_dram_config,
#if defined(CONFIG_PPC) || defined(CONFIG_M68K) #if defined(CONFIG_PPC) || defined(CONFIG_M68K) || defined(CONFIG_MIPS)
setup_board_part1, setup_board_part1,
#endif
#if defined(CONFIG_PPC) || defined(CONFIG_M68K)
INIT_FUNC_WATCHDOG_RESET INIT_FUNC_WATCHDOG_RESET
setup_board_part2, setup_board_part2,
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment