Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754288AbbHFNnj (ORCPT ); Thu, 6 Aug 2015 09:43:39 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:50548 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754138AbbHFNng (ORCPT ); Thu, 6 Aug 2015 09:43:36 -0400 X-AuditID: cbfee61a-f79a06d000005c6f-99-55c36486f3a1 From: Bartlomiej Zolnierkiewicz To: Thomas Abraham , Sylwester Nawrocki , Michael Turquette , Kukjin Kim , Kukjin Kim , Viresh Kumar , Krzysztof Kozlowski Cc: Tomasz Figa , Lukasz Majewski , Heiko Stuebner , Chanwoo Choi , Kevin Hilman , Javier Martinez Canillas , Tobias Jakobi , Anand Moon , linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, b.zolnierkie@samsung.com, Javier Martinez Canillas Subject: [PATCH v4 4/6] ARM: Exynos: switch to using generic cpufreq driver for Exynos4x12 Date: Thu, 06 Aug 2015 15:41:52 +0200 Message-id: <1438868514-8814-5-git-send-email-b.zolnierkie@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1438868514-8814-1-git-send-email-b.zolnierkie@samsung.com> References: <1438868514-8814-1-git-send-email-b.zolnierkie@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrNLMWRmVeSWpSXmKPExsVy+t9jQd22lMOhBpf/K1hsnLGe1eL6l+es Fv8fvWa1uPZ7BpvFm7drmCxevzC06F1wlc2i//FrZouvh1cwWrx5uJnRYtPja6wWH3vusVpc 3jWHzeJz7xFGixnn9zFZrNt4i93i4ilXi8Nv2lktOpYxWrSt/sBqsWrXH0aLjV89HMQ83t9o Zff4O7uV2WPnrLvsHptWdbJ53Lm2h81j85J6j3/H2D229AOF+7asYvTYfm0es8fnTXIB3FFc NimpOZllqUX6dglcGbNmrmAtmCFSMXnhX5YGxnbBLkZODgkBE4nbr16wQdhiEhfurQeyuTiE BGYxSjz6d4EJwvnFKHF/30SwKjYBK4mJ7asYQRIiAiuYJKY/2ccO4jAL7GCR+HL+MmsXIweH sECMxJP/ASANLAKqEgenX2cBsXkF3CU+HN7PDLFOTuLkscmsIDangIfEzG/n2EFsIaCag/cO ME5g5F3AyLCKUSK1ILmgOCk91zAvtVyvODG3uDQvXS85P3cTIzhKnkntYDy4y/0QowAHoxIP 74M1h0KFWBPLiitzDzFKcDArifA+1D8cKsSbklhZlVqUH19UmpNafIhRmoNFSZxXdsPmUCGB 9MSS1OzU1ILUIpgsEwenVANj30+OrYt6BR63dSX8z9v60PVVe/kqn9SQy/O3aU3YHyi1ofuN xM7gS83an3e+v3iMfcuTqIXnnfY51RVH1bmEBbcsfSLw4e8UkavW6ffYDl/pWfO2K7/j7rpN NfqNv37FrEu+PE3d8eg9nQf18S/Stn75XHdZZKJTO59CMvPjiq+7m8UXXspsU2Ipzkg01GIu Kk4EAPD33r+OAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2767 Lines: 67 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 Cc: Kukjin Kim Cc: Thomas Abraham Cc: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski Acked-by: Viresh Kumar Tested-by: Tobias Jakobi Signed-off-by: Bartlomiej Zolnierkiewicz --- arch/arm/mach-exynos/Kconfig | 2 ++ arch/arm/mach-exynos/exynos.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig index 4c4858c..143e332 100644 --- a/arch/arm/mach-exynos/Kconfig +++ b/arch/arm/mach-exynos/Kconfig @@ -25,6 +25,8 @@ menuconfig ARCH_EXYNOS select S5P_DEV_MFC select SRAM select MFD_SYSCON + select THERMAL + select EXYNOS_THERMAL help Support for SAMSUNG EXYNOS SoCs (EXYNOS4/5) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index 77ac021..1c47aee 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -227,6 +227,8 @@ static void __init exynos_init_irq(void) static const struct of_device_id exynos_cpufreq_matches[] = { { .compatible = "samsung,exynos3250", .data = "cpufreq-dt" }, { .compatible = "samsung,exynos4210", .data = "cpufreq-dt" }, + { .compatible = "samsung,exynos4212", .data = "cpufreq-dt" }, + { .compatible = "samsung,exynos4412", .data = "cpufreq-dt" }, { .compatible = "samsung,exynos5250", .data = "cpufreq-dt" }, { /* sentinel */ } }; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/