cpufreq: use generic cpufreq drivers for Exynos4x12 platform
Subsystems (2)
Javier Martinez Canillas
Reviewed-byHello Bartlomiej,
Quoted 44 lines · Bartlomiej Zolnierkiewicz
Hi,
This patch series removes the use of Exynos4x12 specific support from cpufreq-exynos driver and enables the use of cpufreq-dt driver for this platform.
In order to preserve support for Exynos4x12 'boost' mode cpufreq-dt driver is made aware of cpufreq 'boost' mode infrastructure. Once it is done (+ turbo modes handling is fixed, please see below for details) the driver starts to use turbo mode frequencies (defined using opp-v2 bindings) as 'boost' mode frequecies.
Patches #1-2 are needed to fix handling of turbo modes in cpufreq core and without them cpufreq-dt treats turbo modes as normal modes (IOW they are used by default as normal modes even if they are defined in DTS file as turbo modes). Ideally these patches should be added into "[PATCH 00/10] OPP: Add code to support operating-points-v2 bindings" patch series before patch #10 ("[PATCH 10/10] cpufreq-dt:
Add support for operating-points-v2 bindings").This patch series has been tested on Exynos4412 based Odroid-U3 and Trats2 boards.
Depends on:
- next-20150629 branch of linux-next kernel tree
- "[PATCH v3 0/4] cpufreq: use generic cpufreq drivers for Exynos5250 platform" (http://lkml.org/lkml/2015/7/1/311)
- "PATCH 00/10] OPP: Add code to support operating-points-v2 bindings"
(http://www.spinics.net/lists/arm-kernel/msg425517.html)Changes since v1
(http://thread.gmane.org/gmane.linux.kernel.samsung-soc/44361):
- rebased on top of next-20150629 branch of linux-next kernel tree
- rebased on top of Exynos5250 cpufreq-dt support patch series
- fixed if-statement inexynos4_clk_init()(noticed by Tobias Jakobi)
- ported over opp-v2 bindings (requested by Viresh Kumar)Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
Quoted 10 lines
Bartlomiej Zolnierkiewicz (7):
opp: adddev_pm_opp_get_turbo_mode_setting()helper
cpufreq: opp: fix handling of turbo modes
cpufreq-dt: add turbo modes support
clk: samsung: exynos4x12: add cpu clock configuration data and
instantiate cpu clock
ARM: dts: Exynos4x12: add CPU OPP and regulator supply property
ARM: Exynos: switch to using generic cpufreq driver for Exynos4x12
cpufreq: exynos: remove Exynos4x12 specific cpufreq driver support
I don't have access to an Exynos4x12 board to test but I've reviewed the patches and they look good to me. So for the complete series:
Best regards,
Signature · 4 lines
Javier Martinez Canillas Sr. Linux Kernel Developer Open Source Group Samsung Research America