aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2020-09-16 15:17:19 +0800
committerStefano Babic <sbabic@denx.de>2020-09-17 14:40:04 +0200
commitd81e8cf6eaebbb0a67857224781f6f7470785422 (patch)
tree213dfd4314e0680245c86a63583e8a97a1fe1ef0
parent95bae9ff920b6120bd2c21437517ed99a2d54b61 (diff)
downloadu-boot-d81e8cf6eaebbb0a67857224781f6f7470785422.zip
u-boot-d81e8cf6eaebbb0a67857224781f6f7470785422.tar.gz
u-boot-d81e8cf6eaebbb0a67857224781f6f7470785422.tar.bz2
imx8mq: fix FRAC_PLL_REFCLK_SEL_MASK
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>
-rw-r--r--arch/arm/include/asm/arch-imx8m/clock_imx8mq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/arch-imx8m/clock_imx8mq.h b/arch/arm/include/asm/arch-imx8m/clock_imx8mq.h
index 742cbf3..7109d33 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)