From: Philipp Tomsich Date: Fri, 1 Dec 2017 23:14:55 +0000 (+0100) Subject: rockchip: clk: rk3128: fix NANDC_PLL_SEL_MASK X-Git-Tag: v2018.01-rc1~25^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cd401abcd532c59cdaaf6ffeed762386c1813e58;p=oweals%2Fu-boot.git rockchip: clk: rk3128: fix NANDC_PLL_SEL_MASK The PLL selector field for NANDC is only 2 bits wide. This fixes an 'int-overflow on shift' warning. Fixes: 9246d9e ("rockchip: rk3128: add clock driver") Signed-off-by: Philipp Tomsich --- diff --git a/arch/arm/include/asm/arch-rockchip/cru_rk3128.h b/arch/arm/include/asm/arch-rockchip/cru_rk3128.h index cc317dc405..3d8317ed91 100644 --- a/arch/arm/include/asm/arch-rockchip/cru_rk3128.h +++ b/arch/arm/include/asm/arch-rockchip/cru_rk3128.h @@ -136,7 +136,7 @@ enum { /* CRU_CLK_SEL2_CON */ NANDC_PLL_SEL_SHIFT = 14, - NANDC_PLL_SEL_MASK = 7 << NANDC_PLL_SEL_SHIFT, + NANDC_PLL_SEL_MASK = 3 << NANDC_PLL_SEL_SHIFT, NANDC_PLL_SEL_CPLL = 0, NANDC_PLL_SEL_GPLL, NANDC_CLK_DIV_SHIFT = 8,