aboutsummaryrefslogtreecommitdiff
path: root/board
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 /board
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 'board')
-rw-r--r--board/freescale/common/fsl_chain_of_trust.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/board/freescale/common/fsl_chain_of_trust.c b/board/freescale/common/fsl_chain_of_trust.c
index cafb249..7ffb315 100644
--- a/board/freescale/common/fsl_chain_of_trust.c
+++ b/board/freescale/common/fsl_chain_of_trust.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <dm.h>
#include <env.h>
+#include <init.h>
#include <fsl_validate.h>
#include <fsl_secboot_err.h>
#include <fsl_sfp.h>
@@ -16,10 +17,6 @@
#include <spl.h>
#endif
-#ifdef CONFIG_ADDR_MAP
-#include <asm/mmu.h>
-#endif
-
#ifdef CONFIG_FSL_CORENET
#include <asm/fsl_pamu.h>
#endif