]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
arm: zynq: Change OPP calculation
authorSoren Brinkmann <soren.brinkmann@xilinx.com>
Sat, 30 Mar 2013 00:22:34 +0000 (17:22 -0700)
committerSoren Brinkmann <soren.brinkmann@xilinx.com>
Tue, 30 Jul 2013 18:47:48 +0000 (11:47 -0700)
commitc526f9f479f295cceed5f257c195007c339c0618
tree73760152d98792722289a85f94cc834df35fe8f3
parent41f1953526a34a187a3423dea1806fdc918748f1
arm: zynq: Change OPP calculation

When the frequencies given in OPPs are converted to a frequency table
for the cpufreq driver, we lose three magnitudes of resolution, since
the CCF works with Hz and cpufreq with kHz frequencies.
Leverage the new 'clk_round_rate_nearest()' API function to calculate
OPP frequencies which should result in the intended actual frequency.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
arch/arm/mach-zynq/common.c