diff options
author | Peng Fan <Peng.Fan@freescale.com> | 2015-09-15 14:05:06 +0800 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2015-09-24 11:31:58 +0200 |
commit | 4406da0f49dd6aa96c297884911094ff903a8f77 (patch) | |
tree | aab65a12307605d2b19af3728baf34ecbea60772 /arch/arm/imx-common/init.c | |
parent | d449701b83fa8e541c90dfd20898a602dc7d1fc2 (diff) | |
download | u-boot-imx-4406da0f49dd6aa96c297884911094ff903a8f77.zip u-boot-imx-4406da0f49dd6aa96c297884911094ff903a8f77.tar.gz u-boot-imx-4406da0f49dd6aa96c297884911094ff903a8f77.tar.bz2 |
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>
Diffstat (limited to 'arch/arm/imx-common/init.c')
-rw-r--r-- | arch/arm/imx-common/init.c | 2 |
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 |