
10 Jul
2020
10 Jul
'20
2:35 a.m.
On Thu, 9 Jul 2020 at 02:07, Ovidiu Panait ovidiu.panait@windriver.com wrote:
Certain architectures (ppc, mips, sh, m68k) use setup board_part1 and setup_board_part2 calls during pre-relocation init to populate gd->bd boardinfo fields. This makes the generic init sequence cluttered with arch-specific ifdefs.
In order to clean these arch-specific sequences from generic init, introduce arch_setup_bdinfo weak initcall so that everyone can define their own bdinfo setup routines.
Signed-off-by: Ovidiu Panait ovidiu.panait@windriver.com
common/board_f.c | 6 ++++++ include/init.h | 12 ++++++++++++ 2 files changed, 18 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org