ARM: OMAP3+: dpll: use DPLLs recalc function instead of omap2_get_dpll_rate
authorJon Hunter <jon-hunter@ti.com>
Fri, 7 Oct 2011 06:53:01 +0000 (00:53 -0600)
committerPaul Walmsley <paul@pwsan.com>
Fri, 7 Oct 2011 07:01:22 +0000 (01:01 -0600)
commit49642ac816a714f3037b7cd6401a46c8fe46e795
tree1bfd6d38e653f257ef83a8dcba73d413620bf872
parent273a1ce9cf27ac3900325b59aa78cc07bb574e9e
ARM: OMAP3+: dpll: use DPLLs recalc function instead of omap2_get_dpll_rate

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 <jon-hunter@ti.com>
Cc: Mike Turquette <mturquette@ti.com>
Cc: Misael Lopez Cruz <misael.lopez@ti.com>
[paul@pwsan.com: merged this patch with Mike's "use clock's recalc in DPLL
 handling" patch; also reported by Misael]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/dpll3xxx.c