]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: exynos4210: Use the common clock framework to set APLL clock rate
authorLukasz Majewski <l.majewski@samsung.com>
Wed, 9 Oct 2013 12:08:43 +0000 (14:08 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 17 Oct 2013 11:52:49 +0000 (13:52 +0200)
commit27decadc124e2e66463d9dcca5219536b6657925
tree93e967897f077ed4d377c3d06d53fdaf4dbb72a9
parent1297c3d510a9d0cfca0e3b115838b7e180a35a61
cpufreq: exynos4210: Use the common clock framework to set APLL clock rate

In the exynos4210_set_apll() function, the APLL frequency is set with
direct register manipulation.

Such approach is not allowed in the common clock framework. The frequency
is changed, but the corresponding clock value is not updated. This causes
wrong frequency read from cpufreq's cpuinfo_cur_freq sysfs attribute.

Also direct manipulation with PLL's S parameter has been removed. It is
already done at PLL35xx code.

Tested at:
- Exynos4210 - Trats board (linux 3.12-rc4)

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Reviewed-by: Yadwinder Singh Brar <yadi.brar@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/exynos4210-cpufreq.c