OMAP3+: use DPLLs recalc function instead of omap2_get_dpll_rate
Subsystems (3)
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.
Signed-off-by Jon Hunter <[email protected]>
--- arch/arm/mach-omap2/dpll3xxx.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-omap2/dpll3xxx.c +2 -2
@@ -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