From: Peng Fan Date: Tue, 15 Sep 2015 06:05:06 +0000 (+0800) Subject: imx-common: wrap boot_mode_apply with CONFIG_CMD_BMODE X-Git-Tag: v2015.10-rc4~20^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4406da0f49dd6aa96c297884911094ff903a8f77;p=u-boot 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 Cc: Stefano Babic --- diff --git a/arch/arm/imx-common/init.c b/arch/arm/imx-common/init.c index 56d5010449..058cf79744 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