aboutsummaryrefslogtreecommitdiff
path: root/include/init.h
diff options
context:
space:
mode:
authorOvidiu Panait <ovidiu.panait@windriver.com>2022-01-01 19:13:29 +0200
committerTom Rini <trini@konsulko.com>2022-01-18 08:31:02 -0500
commit2fd81be11c9042fa072d1a616c928c406746f68c (patch)
tree39205ba09c571c615d7a0aaed6bd491ec2f31e10 /include/init.h
parent1b212bb9f4bf55f58ed230a444e51204f1fa8b02 (diff)
downloadu-boot-2fd81be11c9042fa072d1a616c928c406746f68c.zip
u-boot-2fd81be11c9042fa072d1a616c928c406746f68c.tar.gz
u-boot-2fd81be11c9042fa072d1a616c928c406746f68c.tar.bz2
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 <sjg@chromium.org> Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Diffstat (limited to 'include/init.h')
-rw-r--r--include/init.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/init.h b/include/init.h
index dcd682c..20c3976 100644
--- a/include/init.h
+++ b/include/init.h
@@ -311,6 +311,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
*
* This normally runs the command line.