diff options
author | Ovidiu Panait <ovpanait@gmail.com> | 2020-03-29 20:57:41 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-04-24 15:17:14 -0400 |
commit | 79926e4f2f3cf84c65188c59ea1e93d6b221d36b (patch) | |
tree | c9898d4ebcdc81c67b1ff92553cfb12fdc7317a6 /common/board_f.c | |
parent | 6184858b859f6fcea4b23f76cfb7988882a3c8a7 (diff) | |
download | u-boot-79926e4f2f3cf84c65188c59ea1e93d6b221d36b.tar.gz |
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>
Diffstat (limited to 'common/board_f.c')
-rw-r--r-- | common/board_f.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/common/board_f.c b/common/board_f.c index 26309c44d23..5c650f046cf 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -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, |