From 2fd81be11c9042fa072d1a616c928c406746f68c Mon Sep 17 00:00:00 2001 From: Ovidiu Panait Date: Sat, 1 Jan 2022 19:13:29 +0200 Subject: common: board_r: move init_addr_map() to init.h asm/mmu.h include is currently guarded by CONFIG_ADDR_MAP ifdef because the header is only present on arm and powerpc. In order to remove the dependency on this header and the associated ifdef, move init_addr_map() declaration to init.h, since it is only called during the common init sequence. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- include/init.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/init.h b/include/init.h index dcd682c1bf6..20c3976af09 100644 --- a/include/init.h +++ b/include/init.h @@ -310,6 +310,16 @@ int board_early_init_r(void); */ int arch_initr_trap(void); +/** + * init_addr_map() + * + * Initialize non-identity virtual-physical memory mappings for 32bit CPUs. + * It is called during the generic board init sequence, after relocation. + * + * Return: 0 if OK + */ +int init_addr_map(void); + /** * main_loop() - Enter the main loop of U-Boot * -- cgit v1.3.1