Skip to contentSkip to conversation

OMAP3+: use DPLLs recalc function instead of omap2_get_dpll_rate

PATCH Superseded Jon Hunter 1 participant 1 message Jul 14, 2011

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Jon Hunter

author
#0 lore raw

PATCH 4/6 OMAP3+: use DPLLs recalc function instead of omap2_get_dpll_rate

From: Jon Hunter <[email protected]>

This is a continuation of Mike Turquette's patch "OMAP3+: use DPLL's round_rate when setting rate".

omap3_noncore_dpll_set_rate() and omap3_noncore_dpll_enable() call omap2_get_dpll_rate() explicitly. It may be necessary for some DPLLs to use a different function and so use the DPLLs recalc() function pointer instead.

An example is the DPLL_ABE on OMAP4 which can have a 4X multiplier in addition to the usual MN multipler and dividers and therefore uses a different round_rate and recalc function.

---
 arch/arm/mach-omap2/dpll3xxx.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-omap2/dpll3xxx.c +2 -2
index 73a1595..7916f66 100644
@@ -390,7 +390,7 @@ int omap3_noncore_dpll_enable(struct clk *clk)
 	 * propagating?
 	 */
 	if (!r)
-		clk->rate = omap2_get_dpll_rate(clk);
+		clk->rate = clk->recalc(clk);
 
 	return r;
 }
@@ -435,7 +435,7 @@ int omap3_noncore_dpll_set_rate(struct clk *clk, unsigned long rate)
 	if (!dd)
 		return -EINVAL;
 
-	if (rate == omap2_get_dpll_rate(clk))
+	if (rate == clk->recalc(clk))
 		return 0;
 
 	/*
Signature · 1 line
1.7.4.1