diff mbox series

[2/5] imx8mq: fix FRAC_PLL_REFCLK_SEL_MASK

Message ID 20200916071722.28772-2-peng.fan@nxp.com
State New
Headers show
Series [1/5] imx7: ccm: correct target interface num | expand

Commit Message

Peng Fan Sept. 16, 2020, 7:17 a.m. UTC
From: Peng Fan <peng.fan@nxp.com>


Coverity reported dead code, however it is FRAC_PLL_REFCLK_SEL_MASK
was wrongly set.

Reported-by: Coverity 10045172
Signed-off-by: Peng Fan <peng.fan@nxp.com>

Reviewed-by: Ye Li <ye.li@nxp.com>

---
 arch/arm/include/asm/arch-imx8m/clock_imx8mq.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.28.0
diff mbox series

Patch

diff --git a/arch/arm/include/asm/arch-imx8m/clock_imx8mq.h b/arch/arm/include/asm/arch-imx8m/clock_imx8mq.h
index 742cbf3bf8..7109d334fa 100644
--- a/arch/arm/include/asm/arch-imx8m/clock_imx8mq.h
+++ b/arch/arm/include/asm/arch-imx8m/clock_imx8mq.h
@@ -316,7 +316,7 @@  enum clk_src_index {
 #define FRAC_PLL_LOCK_MASK		BIT(31)
 #define FRAC_PLL_CLKE_MASK		BIT(21)
 #define FRAC_PLL_PD_MASK		BIT(19)
-#define FRAC_PLL_REFCLK_SEL_MASK	BIT(16)
+#define FRAC_PLL_REFCLK_SEL_MASK	(0x3 << 16)
 #define FRAC_PLL_LOCK_SEL_MASK		BIT(15)
 #define FRAC_PLL_BYPASS_MASK		BIT(14)
 #define FRAC_PLL_COUNTCLK_SEL_MASK	BIT(13)