Commit 4406da0f authored by Peng Fan's avatar Peng Fan Committed by Stefano Babic

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: default avatarPeng Fan <>
Cc: Stefano Babic <>
parent d449701b
......@@ -103,6 +103,7 @@ void init_src(void)
writel(val, &src_regs->scr);
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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment