From patchwork Fri Jul 31 18:49:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 6915471 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3B1919F38B for ; Fri, 31 Jul 2015 18:51:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 510C620574 for ; Fri, 31 Jul 2015 18:51:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F35452058E for ; Fri, 31 Jul 2015 18:51:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752271AbbGaSu4 (ORCPT ); Fri, 31 Jul 2015 14:50:56 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:49039 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751263AbbGaSux (ORCPT ); Fri, 31 Jul 2015 14:50:53 -0400 Received: from epcpsbgm1new.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NSD01XWT8CE0M20@mailout3.samsung.com>; Sat, 01 Aug 2015 03:50:38 +0900 (KST) X-AuditID: cbfee61a-f79a06d000005c6f-88-55bbc37ed3f7 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id FA.2A.23663.E73CBB55; Sat, 1 Aug 2015 03:50:38 +0900 (KST) Received: from AMDC1976.DIGITAL.local ([106.120.53.102]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NSD00F8J8BICW30@mmp1.samsung.com>; Sat, 01 Aug 2015 03:50:38 +0900 (KST) 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 v3 3/5] ARM: Exynos: switch to using generic cpufreq driver for Exynos4x12 Date: Fri, 31 Jul 2015 20:49:15 +0200 Message-id: <1438368557-2352-4-git-send-email-b.zolnierkie@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1438368557-2352-1-git-send-email-b.zolnierkie@samsung.com> References: <1438368557-2352-1-git-send-email-b.zolnierkie@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrNLMWRmVeSWpSXmKPExsVy+t9jAd26w7tDDQ7fM7LYOGM9q8X1L89Z Lf4/es1qce33DDaLN2/XMFm8fmFo0bvgKptF/+PXzBZfD69gtHjzcDOjxabH11gtPvbcY7W4 vGsOm8Xn3iOMFjPO72OyWLfxFrvFxVOuFofftLNadCxjtGhb/YHVYtWuP4wWG796OIh5vL/R yu7xd3Yrs8fOWXfZPTat6mTzuHNtD5vH5iX1Hv+OsXts6QcK921Zxeix/do8Zo/Pm+QCuKO4 bFJSczLLUov07RK4MmbtaGYtmCJQMbPjP1sD4z7eLkZODgkBE4mb3c/YIGwxiQv31gPZXBxC AksZJR7fuccC4fxilJg15zI7SBWbgJXExPZVjCAJEYEVTBLTn+xjB3GYBXawSHw5f5kVpEpY IEbiXudOJhCbRUBVYvL1TSwgNq+Au8SBuQ9YIfbJSZw8NhnI5uDgFPCQ+HJEFiQsBFSyZfkt pgmMvAsYGVYxSqQWJBcUJ6XnGuallusVJ+YWl+al6yXn525iBEfJM6kdjAd3uR9iFOBgVOLh FVi8K1SINbGsuDL3EKMEB7OSCO/S7btDhXhTEiurUovy44tKc1KLDzFKc7AoifPKbtgcKiSQ nliSmp2aWpBaBJNl4uCUamDseB18uWDOo1SFqqAZAq8k200+SSfUyl8W0tZr2/Aupu3RvdgH O4qEZFk13iYvv3T6vQfLgSOLvJ72q+qJhccJfDc7FXTEdOOloPPbS0/ohU+/tyxv84lpLpfz HrMurNp291/g/JkXgk+d/N7v4/y+XG63/5X7L15J7m4tjJeY/zNv6oaKyqk3lViKMxINtZiL ihMBR14aGo4CAAA= Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The new CPU clock type allows the use of generic CPUfreq driver. Switch Exynos4x12 to using generic cpufreq driver. Also make CPUFREQ_DT config option select Exynos thermal driver if Exynos platform support is enabled. 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 Signed-off-by: Bartlomiej Zolnierkiewicz --- arch/arm/mach-exynos/exynos.c | 2 ++ drivers/cpufreq/Kconfig | 1 + 2 files changed, 3 insertions(+) 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 */ } }; diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig index 659879a..bf6d596 100644 --- a/drivers/cpufreq/Kconfig +++ b/drivers/cpufreq/Kconfig @@ -191,6 +191,7 @@ config CPUFREQ_DT # if CPU_THERMAL is on and THERMAL=m, CPUFREQ_DT cannot be =y: depends on !CPU_THERMAL || THERMAL select PM_OPP + select EXYNOS_THERMAL if ARCH_EXYNOS help This adds a generic DT based cpufreq driver for frequency management. It supports both uniprocessor (UP) and symmetric multiprocessor (SMP)