ARM: imx: Use IMX6_SRC_GPR10_BMODE instead of magic number

Signed-off-by: Claudius Heine <ch@denx.de>
This commit is contained in:
Claudius Heine 2019-10-29 13:08:44 +01:00 committed by Stefano Babic
parent e01c8cfe57
commit dde31a14ec

View file

@ -108,9 +108,9 @@ void boot_mode_apply(unsigned cfg_val)
writel(cfg_val, &psrc->gpr9);
reg = readl(&psrc->gpr10);
if (cfg_val)
reg |= 1 << 28;
reg |= IMX6_SRC_GPR10_BMODE;
else
reg &= ~(1 << 28);
reg &= ~IMX6_SRC_GPR10_BMODE;
writel(reg, &psrc->gpr10);
}
#endif