]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/arm/include/asm/arch-sunxi/clock_sun8i_a83t.h
sunxi: clk: fix N formula for CPUX clocks
[people/ms/u-boot.git] / arch / arm / include / asm / arch-sunxi / clock_sun8i_a83t.h
index 5dfcbf3b017bec52a80f97eab0121302c27de46b..b4ea2f8cfbd509dece962d40044709f585fc5322 100644 (file)
@@ -158,7 +158,7 @@ struct sunxi_ccm_reg {
 #define CPU_CLK_SRC_OSC24M             0
 #define CPU_CLK_SRC_PLL1               1
 
-#define CCM_PLL1_CTRL_N(n)             ((((n) - 1) & 0xff) << 8)
+#define CCM_PLL1_CTRL_N(n)             (((n) & 0xff) << 8)
 #define CCM_PLL1_CTRL_P(n)             (((n) & 0x1) << 16)
 #define CCM_PLL1_CTRL_EN               (0x1 << 31)
 #define CMM_PLL1_CLOCK_TIME_2          (0x2 << 24)