summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/src.c
diff options
context:
space:
mode:
authorRichard Zhu <Richard.Zhu@freescale.com>2015-06-15 18:26:37 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:20:42 +0300
commit7657404cd671c50b1a90254216320498fccc8618 (patch)
tree934a94f1dbbc614c06c9751d75d4a43910398e8a /arch/arm/mach-imx/src.c
parent1b45678bae8008db9a2d426de57ef551c0014a2a (diff)
MLK-11115 arm: imx: double check m4 is enabled
Make a double check that m4 is enabled and run on imx7d Signed-off-by: Richard Zhu <Richard.Zhu@freescale.com> (cherry picked from commit 276fe0947a13c74dad003b0fc3735d389928c1e3)
Diffstat (limited to 'arch/arm/mach-imx/src.c')
-rw-r--r--arch/arm/mach-imx/src.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/src.c b/arch/arm/mach-imx/src.c
index 744135410924..c53b6da411b9 100644
--- a/arch/arm/mach-imx/src.c
+++ b/arch/arm/mach-imx/src.c
@@ -170,7 +170,7 @@ void __init imx_src_init(void)
if (cpu_is_imx7d()) {
val = readl_relaxed(src_base + SRC_M4RCR);
- if ((val & BIT(3)) == BIT(3))
+ if (((val & BIT(3)) == BIT(3)) && !(val & BIT(0)))
m4_is_enabled = true;
else
m4_is_enabled = false;