summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan <Peng.Fan@freescale.com>2015-09-15 06:05:06 (GMT)
committerStefano Babic <sbabic@denx.de>2015-09-24 09:31:58 (GMT)
commit4406da0f49dd6aa96c297884911094ff903a8f77 (patch)
treeaab65a12307605d2b19af3728baf34ecbea60772
parentd449701b83fa8e541c90dfd20898a602dc7d1fc2 (diff)
downloadu-boot-fsl-qoriq-4406da0f49dd6aa96c297884911094ff903a8f77.tar.xz
imx-common: wrap boot_mode_apply with CONFIG_CMD_BMODE
boot_mode_apply should be applied only with CONFIG_CMD_BMODE enabled. Signed-off-by: Peng Fan <Peng.Fan@freescale.com> Cc: Stefano Babic <sbabic@denx.de>
-rw-r--r--arch/arm/imx-common/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/imx-common/init.c b/arch/arm/imx-common/init.c
index 56d5010..058cf79 100644
--- a/arch/arm/imx-common/init.c
+++ b/arch/arm/imx-common/init.c
@@ -103,6 +103,7 @@ void init_src(void)
writel(val, &src_regs->scr);
}
+#ifdef CONFIG_CMD_BMODE
void boot_mode_apply(unsigned cfg_val)
{
unsigned reg;
@@ -115,3 +116,4 @@ void boot_mode_apply(unsigned cfg_val)
reg &= ~(1 << 28);
writel(reg, &psrc->gpr10);
}
+#endif