ar71xx: use correct fractional dividers for {CPU,DDR}_PLL on QCA955x
SVN-Revision: 33362
This commit is contained in:
parent
2e0e38ad69
commit
4ee5b528de
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
|
||||||
+ QCA955X_PLL_CPU_CONFIG_NFRAC_MASK;
|
+ QCA955X_PLL_CPU_CONFIG_NFRAC_MASK;
|
||||||
+
|
+
|
||||||
+ cpu_pll = nint * ath79_ref_clk.rate / ref_div;
|
+ cpu_pll = nint * ath79_ref_clk.rate / ref_div;
|
||||||
+ cpu_pll += frac * ath79_ref_clk.rate / (ref_div * (2 << 6));
|
+ cpu_pll += frac * ath79_ref_clk.rate / (ref_div * (1 << 6));
|
||||||
+ cpu_pll /= (1 << out_div);
|
+ cpu_pll /= (1 << out_div);
|
||||||
+
|
+
|
||||||
+ pll = ath79_pll_rr(QCA955X_PLL_DDR_CONFIG_REG);
|
+ pll = ath79_pll_rr(QCA955X_PLL_DDR_CONFIG_REG);
|
||||||
|
@ -52,7 +52,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
|
||||||
+ QCA955X_PLL_DDR_CONFIG_NFRAC_MASK;
|
+ QCA955X_PLL_DDR_CONFIG_NFRAC_MASK;
|
||||||
+
|
+
|
||||||
+ ddr_pll = nint * ath79_ref_clk.rate / ref_div;
|
+ ddr_pll = nint * ath79_ref_clk.rate / ref_div;
|
||||||
+ ddr_pll += frac * ath79_ref_clk.rate / (ref_div * (2 << 10));
|
+ ddr_pll += frac * ath79_ref_clk.rate / (ref_div * (1 << 10));
|
||||||
+ ddr_pll /= (1 << out_div);
|
+ ddr_pll /= (1 << out_div);
|
||||||
+
|
+
|
||||||
+ clk_ctrl = ath79_pll_rr(QCA955X_PLL_CLK_CTRL_REG);
|
+ clk_ctrl = ath79_pll_rr(QCA955X_PLL_CLK_CTRL_REG);
|
||||||
|
|
Loading…
Reference in a new issue