Commit bdd2648e50508cbb2eb6d1c303e4d2d6d7505400

Authored by Bartlomiej Zolnierkiewicz
Committed by Kukjin Kim
1 parent 58c036a7ac

ARM: EXYNOS: switch to using generic cpufreq driver for exynos4x12

The new CPU clock type allows the use of generic CPUfreq driver.
Switch Exynos4x12 to using generic cpufreq driver.

Previously (when exynos-cpufreq driver was used with boost
functionality) ARM_EXYNOS_CPU_FREQ_BOOST_SW config option
(which enabled boost functionality) selected EXYNOS_THERMAL
one. After switching Exynos4x12 platforms to use cpufreq-dt
driver boost support is enabled in the cpufreq-dt driver
itself (because there are turbo OPPs defined in the board's
DTS file). However we still would like to allow enabling
boost support only if thermal support is also enabled for
Exynos platforms. To achieve this make ARCH_EXYNOS config
option select THERMAL and EXYNOS_THERMAL ones.

Please also note that the switch to use the generic cpufreq-dt
driver fixes the minor issue present with the old code (support
for 'boost' mode in the exynos-cpufreq driver was enabled for
all supported SoCs even though 'boost' frequency was provided
only for Exynos4x12 ones).

Cc: Tomasz Figa <tomasz.figa@gmail.com>
Cc: Thomas Abraham <thomas.ab@samsung.com>
Cc: Javier Martinez Canillas <javier@osg.samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Tested-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Kukjin Kim <kgene@kernel.org>

Showing 2 changed files with 4 additions and 0 deletions Side-by-side Diff

arch/arm/mach-exynos/Kconfig
... ... @@ -15,6 +15,7 @@
15 15 select ARM_AMBA
16 16 select ARM_GIC
17 17 select COMMON_CLK_SAMSUNG
  18 + select EXYNOS_THERMAL
18 19 select HAVE_ARM_SCU if SMP
19 20 select HAVE_S3C2410_I2C if I2C
20 21 select HAVE_S3C2410_WATCHDOG if WATCHDOG
... ... @@ -24,6 +25,7 @@
24 25 select PM_GENERIC_DOMAINS if PM
25 26 select S5P_DEV_MFC
26 27 select SRAM
  28 + select THERMAL
27 29 select MFD_SYSCON
28 30 help
29 31 Support for SAMSUNG EXYNOS SoCs (EXYNOS4/5)
arch/arm/mach-exynos/exynos.c
... ... @@ -227,6 +227,8 @@
227 227 static const struct of_device_id exynos_cpufreq_matches[] = {
228 228 { .compatible = "samsung,exynos3250", .data = "cpufreq-dt" },
229 229 { .compatible = "samsung,exynos4210", .data = "cpufreq-dt" },
  230 + { .compatible = "samsung,exynos4212", .data = "cpufreq-dt" },
  231 + { .compatible = "samsung,exynos4412", .data = "cpufreq-dt" },
230 232 { .compatible = "samsung,exynos5250", .data = "cpufreq-dt" },
231 233 { /* sentinel */ }
232 234 };