]> 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)
commit32b66c5847b88706b3748ff639763ddf479d47d2
tree93e967897f077ed4d377c3d06d53fdaf4dbb72a9
parenta161a81e4ce744ebb1c0fa0fd7f93f69b14823af
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