mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-29 08:00:26 +09:00
board_f: Introduce setup_bdinfo initcall
Introduce setup_bdinfo initcall as a generic routine to populate bdinfo fields. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
This commit is contained in:
parent
6ecefcfb6d
commit
ba7431031f
@ -598,6 +598,11 @@ static int display_new_sp(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int setup_bdinfo(void)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
#if defined(CONFIG_M68K) || defined(CONFIG_MIPS) || defined(CONFIG_PPC) || \
|
#if defined(CONFIG_M68K) || defined(CONFIG_MIPS) || defined(CONFIG_PPC) || \
|
||||||
defined(CONFIG_SH)
|
defined(CONFIG_SH)
|
||||||
static int setup_board_part1(void)
|
static int setup_board_part1(void)
|
||||||
@ -975,6 +980,7 @@ static const init_fnc_t init_sequence_f[] = {
|
|||||||
reserve_stacks,
|
reserve_stacks,
|
||||||
dram_init_banksize,
|
dram_init_banksize,
|
||||||
show_dram_config,
|
show_dram_config,
|
||||||
|
setup_bdinfo,
|
||||||
#if defined(CONFIG_M68K) || defined(CONFIG_MIPS) || defined(CONFIG_PPC) || \
|
#if defined(CONFIG_M68K) || defined(CONFIG_MIPS) || defined(CONFIG_PPC) || \
|
||||||
defined(CONFIG_SH)
|
defined(CONFIG_SH)
|
||||||
setup_board_part1,
|
setup_board_part1,
|
||||||
|
@ -141,6 +141,16 @@ int arch_reserve_stacks(void);
|
|||||||
*/
|
*/
|
||||||
int arch_reserve_mmu(void);
|
int arch_reserve_mmu(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* setup_bdinfo() - Generic boardinfo setup
|
||||||
|
*
|
||||||
|
* Routine for populating various generic boardinfo fields of
|
||||||
|
* gd->bd. It is called during the generic board init sequence.
|
||||||
|
*
|
||||||
|
* Return: 0 if OK
|
||||||
|
*/
|
||||||
|
int setup_bdinfo(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* init_cache_f_r() - Turn on the cache in preparation for relocation
|
* init_cache_f_r() - Turn on the cache in preparation for relocation
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user