From: chenxing Date: Sat, 18 May 2013 05:17:24 +0000 (+0800) Subject: rk3066b/rk3168: fix CORE_CLK_DIV define error X-Git-Tag: firefly_0821_release~7082 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b9f0bbed2ebde2baaaedb5cbc588297f1e3a37bb;p=firefly-linux-kernel-4.4.55.git rk3066b/rk3168: fix CORE_CLK_DIV define error --- diff --git a/arch/arm/mach-rk30/include/mach/cru-rk3066b.h b/arch/arm/mach-rk30/include/mach/cru-rk3066b.h index f9da1ab20434..a0451ba78295 100755 --- a/arch/arm/mach-rk30/include/mach/cru-rk3066b.h +++ b/arch/arm/mach-rk30/include/mach/cru-rk3066b.h @@ -110,7 +110,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)