arm: mx5: clock: fix PLL_FREQ_MIN() calculation
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Apr 2014 08:18:39 +0000 (10:18 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Apr 2014 08:18:39 +0000 (10:18 +0200)
arch/arm/cpu/armv7/mx5/clock.c

index 5091f99..827f8a6 100644 (file)
@@ -64,7 +64,7 @@ struct pll_param {
 
 #define PLL_FREQ_MAX(ref_clk)  (4 * (ref_clk) * PLL_MFI_MAX)
 #define PLL_FREQ_MIN(ref_clk) \
 
 #define PLL_FREQ_MAX(ref_clk)  (4 * (ref_clk) * PLL_MFI_MAX)
 #define PLL_FREQ_MIN(ref_clk) \
-               ((2 * (ref_clk) * (PLL_MFI_MIN - 1)) / PLL_PD_MAX)
+       ((4 * (ref_clk) * PLL_MFI_MIN) / PLL_PD_MAX)
 #define MAX_DDR_CLK     420000000
 #define NFC_CLK_MAX     34000000
 
 #define MAX_DDR_CLK     420000000
 #define NFC_CLK_MAX     34000000