1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 00:32:04 +02:00

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:
Ovidiu Panait
2020-03-29 20:57:41 +03:00
committed by Tom Rini
parent 6184858b85
commit 79926e4f2f
3 changed files with 19 additions and 5 deletions

View File

@@ -385,6 +385,11 @@ static int reserve_round_4k(void)
return 0;
}
__weak int arch_reserve_mmu(void)
{
return 0;
}
static int reserve_video(void)
{
#ifdef CONFIG_DM_VIDEO
@@ -951,9 +956,7 @@ static const init_fnc_t init_sequence_f[] = {
reserve_pram,
#endif
reserve_round_4k,
#ifdef CONFIG_ARM
reserve_mmu,
#endif
arch_reserve_mmu,
reserve_video,
reserve_trace,
reserve_uboot,