]> git.baikalelectronics.ru Git - kernel.git/commit
clk: socfpga: stratix10: fix rate calculation for pll clocks
authorDinh Nguyen <dinguyen@kernel.org>
Tue, 18 Dec 2018 00:06:14 +0000 (18:06 -0600)
committerStephen Boyd <sboyd@kernel.org>
Fri, 11 Jan 2019 23:41:02 +0000 (15:41 -0800)
commitaacbbf754d6cb87e44ab5024be985cf1d4886189
tree740172431d775ec750ac2691129d1506d1165a2e
parent29b0c56185d7814f687ae2afaeb3eb645830a610
clk: socfpga: stratix10: fix rate calculation for pll clocks

The main PLL calculation has a mistake. We should be using the
multiplying the VCO frequency, not the parent clock frequency.

Fixes: 20a550ff5684 ("clk: socfpga: stratix10: add clock driver for
Stratix10 platform")
Cc: linux-stable@vger.kernel.org
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/socfpga/clk-pll-s10.c