]> Pileus Git - ~andy/linux/commit
ARM: OMAP3+: dpll: use DPLL's round_rate when setting rate
authorMike Turquette <mturquette@ti.com>
Fri, 7 Oct 2011 06:52:59 +0000 (00:52 -0600)
committerPaul Walmsley <paul@pwsan.com>
Fri, 7 Oct 2011 06:52:59 +0000 (00:52 -0600)
commitaddf888c6945c6e3cff135e7e3bb72cc708d1ca4
tree873acad636451e62614c7df2fe5a0d44088f0d51
parenta1900f2efe2d75e0fe5b871421a2f2de2fa68b4e
ARM: OMAP3+: dpll: use DPLL's round_rate when setting rate

omap3_noncore_dpll_set_rate uses omap2_dpll_round_rate explicitly.  Instead
use the struct clk pointer's round_rate function to allow for DPLL's with
special needs.

An example of a clock that requires this is DPLL_ABE on OMAP4 which
can have a 4x multiplier on top of the usual MN dividers depending on
register settings.  This requires a special round_rate function that
might yield a rate different from the initial target.

Signed-off-by: Mike Turquette <mturquette@ti.com>
Signed-off-by: Jon Hunter <jon-hunter@ti.com>
[paul@pwsan.com: split rate assignment portion into a separate patch]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/dpll3xxx.c