[PATCH 01/10] board_f: Introduce arch_setup_bdinfo initcall

Simon Glass sjg at chromium.org
Fri Jul 10 02:35:12 CEST 2020


On Thu, 9 Jul 2020 at 02:07, Ovidiu Panait <ovidiu.panait at 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 at windriver.com>
> ---
>
>  common/board_f.c |  6 ++++++
>  include/init.h   | 12 ++++++++++++
>  2 files changed, 18 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list