]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: OMAP2+: clock: allow omap2_dpll_round_rate() to round to next-lowest rate
authorPaul Walmsley <paul@pwsan.com>
Fri, 25 Jul 2014 12:11:15 +0000 (06:11 -0600)
committerPaul Walmsley <paul@pwsan.com>
Fri, 25 Jul 2014 12:11:15 +0000 (06:11 -0600)
commit0a26344440b5f9940c99112fdc3804f073b1f5a7
tree82387918434b8eee49a76450044683e7d7a7bb59
parenta497c3ba1d97fc69c1e78e7b96435ba8c2cb42ee
ARM: OMAP2+: clock: allow omap2_dpll_round_rate() to round to next-lowest rate

Change the behavior of omap2_dpll_round_rate() to round to either the
exact rate requested, or the next lowest rate that the clock is able to
provide.

This is not an ideal fix, but is intended to provide a relatively safe
way for drivers to set PLL rates, until a better solution can be
implemented.

For the time being, omap3_noncore_dpll_set_rate() is still allowed to
set its rate to something other than what the caller requested; but will
warn when this occurs.

Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/clkt_dpll.c
arch/arm/mach-omap2/dpll3xxx.c