From: chenxing Date: Sat, 18 May 2013 05:17:38 +0000 (+0800) Subject: rk3188: fix CORE_CLK_DIV define error X-Git-Tag: firefly_0821_release~7081 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=29a9d54bfa4a5e5f882590eebd1f194b73bf0cf8;p=firefly-linux-kernel-4.4.55.git rk3188: fix CORE_CLK_DIV define error --- diff --git a/arch/arm/mach-rk3188/include/mach/cru-rk3188.h b/arch/arm/mach-rk3188/include/mach/cru-rk3188.h index 7f0fd8aee14b..b7077e5572a6 100755 --- a/arch/arm/mach-rk3188/include/mach/cru-rk3188.h +++ b/arch/arm/mach-rk3188/include/mach/cru-rk3188.h @@ -121,7 +121,7 @@ enum rk_plls_id { #define CORE_CLK_DIV_W_MSK (0x1F << 25) #define CORE_CLK_DIV_MSK (0x1F << 9) -#define CORE_CLK_DIV(i) (((i) - 1) & 0x1F) +#define CORE_CLK_DIV(i) ((((i) - 1) & 0x1F) << 9) #define CPU_SEL_PLL_MSK (1 << 5) #define CPU_SEL_PLL_W_MSK (1 << 21)