]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx8mq: fix FRAC_PLL_REFCLK_SEL_MASK
authorPeng Fan <peng.fan@nxp.com>
Wed, 16 Sep 2020 07:17:19 +0000 (15:17 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 17 Sep 2020 12:40:04 +0000 (14:40 +0200)
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

index 742cbf3bf80d1ce9f4c1c227f2ef624f79c02b16..7109d334fa8b963a1c3b6c8b534c26c5d47651d9 100644 (file)
@@ -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)