common/board_f: Make reserve_mmu generic
Introduce arch_reserve_mmu to allow for architecture-specific reserve_mmu routines. Also, define a weak nop stub for it. Signed-off-by: Ovidiu Panait <ovpanait@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
6184858b85
commit
79926e4f2f
@ -121,7 +121,7 @@ void invalidate_l2_cache(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__weak int reserve_mmu(void)
|
int arch_reserve_mmu(void)
|
||||||
{
|
{
|
||||||
return arm_reserve_mmu();
|
return arm_reserve_mmu();
|
||||||
}
|
}
|
||||||
|
@ -385,6 +385,11 @@ static int reserve_round_4k(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__weak int arch_reserve_mmu(void)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static int reserve_video(void)
|
static int reserve_video(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_DM_VIDEO
|
#ifdef CONFIG_DM_VIDEO
|
||||||
@ -951,9 +956,7 @@ static const init_fnc_t init_sequence_f[] = {
|
|||||||
reserve_pram,
|
reserve_pram,
|
||||||
#endif
|
#endif
|
||||||
reserve_round_4k,
|
reserve_round_4k,
|
||||||
#ifdef CONFIG_ARM
|
arch_reserve_mmu,
|
||||||
reserve_mmu,
|
|
||||||
#endif
|
|
||||||
reserve_video,
|
reserve_video,
|
||||||
reserve_trace,
|
reserve_trace,
|
||||||
reserve_uboot,
|
reserve_uboot,
|
||||||
|
@ -129,6 +129,18 @@ int testdram(void);
|
|||||||
*/
|
*/
|
||||||
int arch_reserve_stacks(void);
|
int arch_reserve_stacks(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* arch_reserve_mmu() - Reserve memory for MMU TLB table
|
||||||
|
*
|
||||||
|
* Architecture-specific routine for reserving memory for the MMU TLB table.
|
||||||
|
* This is used in generic board init sequence in common/board_f.c.
|
||||||
|
*
|
||||||
|
* If an implementation is not provided, it will just be a nop stub.
|
||||||
|
*
|
||||||
|
* Return: 0 if OK
|
||||||
|
*/
|
||||||
|
int arch_reserve_mmu(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
|
||||||
*
|
*
|
||||||
@ -145,7 +157,6 @@ int init_cache_f_r(void);
|
|||||||
int print_cpuinfo(void);
|
int print_cpuinfo(void);
|
||||||
#endif
|
#endif
|
||||||
int timer_init(void);
|
int timer_init(void);
|
||||||
int reserve_mmu(void);
|
|
||||||
int misc_init_f(void);
|
int misc_init_f(void);
|
||||||
|
|
||||||
#if defined(CONFIG_DTB_RESELECT)
|
#if defined(CONFIG_DTB_RESELECT)
|
||||||
|
Loading…
Reference in New Issue
Block a user