Commit fb3db635757f68e68ab3e943396c34886529b88e
1 parent
ed02c532be
Exists in
v2017.01-smarct4x
and in
30 other branches
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: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Showing 1 changed file with 6 additions and 2 deletions Side-by-side Diff
common/board_f.c
... | ... | @@ -551,7 +551,7 @@ |
551 | 551 | return 0; |
552 | 552 | } |
553 | 553 | |
554 | -#if defined(CONFIG_PPC) || defined(CONFIG_M68K) | |
554 | +#if defined(CONFIG_PPC) || defined(CONFIG_M68K) || defined(CONFIG_MIPS) | |
555 | 555 | static int setup_board_part1(void) |
556 | 556 | { |
557 | 557 | bd_t *bd = gd->bd; |
558 | 558 | |
... | ... | @@ -580,7 +580,9 @@ |
580 | 580 | |
581 | 581 | return 0; |
582 | 582 | } |
583 | +#endif | |
583 | 584 | |
585 | +#if defined(CONFIG_PPC) || defined(CONFIG_M68K) | |
584 | 586 | static int setup_board_part2(void) |
585 | 587 | { |
586 | 588 | bd_t *bd = gd->bd; |
587 | 589 | |
... | ... | @@ -933,8 +935,10 @@ |
933 | 935 | reserve_stacks, |
934 | 936 | setup_dram_config, |
935 | 937 | show_dram_config, |
936 | -#if defined(CONFIG_PPC) || defined(CONFIG_M68K) | |
938 | +#if defined(CONFIG_PPC) || defined(CONFIG_M68K) || defined(CONFIG_MIPS) | |
937 | 939 | setup_board_part1, |
940 | +#endif | |
941 | +#if defined(CONFIG_PPC) || defined(CONFIG_M68K) | |
938 | 942 | INIT_FUNC_WATCHDOG_RESET |
939 | 943 | setup_board_part2, |
940 | 944 | #endif |