mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
common: board_f: Move setup_machine code to setup_bdinfo
setup_bdinfo is used to populate various bdinfo fields, so move setup_machine code there, as all it does is setting gd->bd->bi_arch_number. Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
4b9a121fc6
commit
3671668676
1 changed files with 4 additions and 9 deletions
|
@ -503,14 +503,6 @@ static int reserve_board(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int setup_machine(void)
|
||||
{
|
||||
#ifdef CONFIG_MACH_TYPE
|
||||
gd->bd->bi_arch_number = CONFIG_MACH_TYPE; /* board id for Linux */
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int reserve_global_data(void)
|
||||
{
|
||||
gd->start_addr_sp = reserve_stack_aligned(sizeof(gd_t));
|
||||
|
@ -605,6 +597,10 @@ int setup_bdinfo(void)
|
|||
bd->bi_sramsize = CONFIG_SYS_SRAM_SIZE; /* size of SRAM */
|
||||
}
|
||||
|
||||
#ifdef CONFIG_MACH_TYPE
|
||||
bd->bi_arch_number = CONFIG_MACH_TYPE; /* board id for Linux */
|
||||
#endif
|
||||
|
||||
return arch_setup_bdinfo();
|
||||
}
|
||||
|
||||
|
@ -916,7 +912,6 @@ static const init_fnc_t init_sequence_f[] = {
|
|||
reserve_uboot,
|
||||
reserve_malloc,
|
||||
reserve_board,
|
||||
setup_machine,
|
||||
reserve_global_data,
|
||||
reserve_fdt,
|
||||
reserve_bootstage,
|
||||
|
|
Loading…
Reference in a new issue