From patchwork Mon Jan 13 06:01:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 3473671 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id EE81FC02DC for ; Mon, 13 Jan 2014 06:02:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0DB5D20114 for ; Mon, 13 Jan 2014 06:02:34 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ADD0320107 for ; Mon, 13 Jan 2014 06:02:32 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W2aZo-0004nn-OE; Mon, 13 Jan 2014 06:00:46 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W2aZJ-00059q-SH; Mon, 13 Jan 2014 06:00:13 +0000 Received: from co9ehsobe003.messaging.microsoft.com ([207.46.163.26] helo=co9outboundpool.messaging.microsoft.com) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W2aZG-00057S-QF for linux-arm-kernel@lists.infradead.org; Mon, 13 Jan 2014 06:00:11 +0000 Received: from mail24-co9-R.bigfish.com (10.236.132.230) by CO9EHSOBE002.bigfish.com (10.236.130.65) with Microsoft SMTP Server id 14.1.225.22; Mon, 13 Jan 2014 05:59:49 +0000 Received: from mail24-co9 (localhost [127.0.0.1]) by mail24-co9-R.bigfish.com (Postfix) with ESMTP id 4A47FC202A0; Mon, 13 Jan 2014 05:59:49 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: -1 X-BigFish: VS-1(z579ehz98dIzz1f42h2148h208ch1ee6h1de0h1fdah2073h2146h1202h1e76h2189h1d1ah1d2ah1fc6hzz1de097hz2dh87h2a8h839h944hd25hf0ah1220h1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh162dh1631h1758h18e1h1946h19b5h1ad9h1b0ah1b2fh2222h224fh1fb3h1d0ch1d2eh1d3fh1dfeh1dffh1fe8h1ff5h209eh2216h22d0h2336h2438h2461h1151h1155h) X-FB-DOMAIN-IP-MATCH: fail Received: from mail24-co9 (localhost.localdomain [127.0.0.1]) by mail24-co9 (MessageSwitch) id 1389592786337091_13301; Mon, 13 Jan 2014 05:59:46 +0000 (UTC) Received: from CO9EHSMHS030.bigfish.com (unknown [10.236.132.231]) by mail24-co9.bigfish.com (Postfix) with ESMTP id 423F37C004F; Mon, 13 Jan 2014 05:59:46 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CO9EHSMHS030.bigfish.com (10.236.130.40) with Microsoft SMTP Server (TLS) id 14.16.227.3; Mon, 13 Jan 2014 05:59:46 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server (TLS) id 14.3.158.2; Mon, 13 Jan 2014 05:59:45 +0000 Received: from S2101-09.ap.freescale.net ([10.192.185.8]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id s0D5xcxx028605; Sun, 12 Jan 2014 22:59:39 -0700 Date: Mon, 13 Jan 2014 14:01:04 +0800 From: Shawn Guo To: John Tobias Subject: Re: [PATCH v4 1/2] ARM: imx: add select on ARCH_MXC for cpufreq support Message-ID: <20140113060102.GO23525@S2101-09.ap.freescale.net> References: <1389321592-33220-1-git-send-email-john.tobias.ph@gmail.com> <20140113032043.GF23525@S2101-09.ap.freescale.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-OriginatorOrg: sigmatel.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140113_010011_001453_A18A2758 X-CRM114-Status: GOOD ( 12.78 ) X-Spam-Score: -3.5 (---) Cc: "" , linux-pm@vger.kernel.org, Viresh Kumar , rjw@rjwysocki.net, "" , cpufreq@vger.kernel.org, "" , Fabio Estevam , "" X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 On Sun, Jan 12, 2014 at 08:54:18PM -0800, John Tobias wrote: > I tested leaving the HAVE_IMX_ANATOP under SOC_IMX6Q and SOC_IMX6SL. > The iMX6Q cpufreq driver won't show up in menu config / gconfig and > that's the reason why I added it. I tested the following changes against my for-next branch, and I can see iMX6Q cpufreq driver in menuconfig. Note, the drivers/cpufreq/Kconfig.arm change is on cpufreq tree, so I have to make the change locally for the testing. Shawn diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 1e70150..7071468 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig @@ -1,5 +1,7 @@ config ARCH_MXC bool "Freescale i.MX family" if ARCH_MULTI_V4_V5 || ARCH_MULTI_V6_V7 + select ARCH_HAS_CPUFREQ + select ARCH_HAS_OPP select ARCH_REQUIRE_GPIOLIB select ARM_CPU_SUSPEND if PM select ARM_PATCH_PHYS_VIRT @@ -12,6 +14,7 @@ config ARCH_MXC select MIGHT_HAVE_CACHE_L2X0 if ARCH_MULTI_V6_V7 select MULTI_IRQ_HANDLER select PINCTRL + select PM_OPP if PM select SOC_BUS select SPARSE_IRQ select USE_OF @@ -787,8 +790,6 @@ config SOC_IMX53 config SOC_IMX6Q bool "i.MX6 Quad/DualLite support" - select ARCH_HAS_CPUFREQ - select ARCH_HAS_OPP select ARM_ERRATA_754322 select ARM_ERRATA_764369 if SMP select ARM_ERRATA_775420 @@ -808,7 +809,6 @@ config SOC_IMX6Q select PL310_ERRATA_588369 if CACHE_PL310 select PL310_ERRATA_727915 if CACHE_PL310 select PL310_ERRATA_769419 if CACHE_PL310 - select PM_OPP if PM help This enables support for Freescale i.MX6 Quad processor. diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index ce52ed9..21e069e 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -80,7 +80,7 @@ config ARM_HIGHBANK_CPUFREQ config ARM_IMX6Q_CPUFREQ tristate "Freescale i.MX6Q cpufreq support" - depends on SOC_IMX6Q + depends on ARCH_MXC depends on REGULATOR_ANATOP help This adds cpufreq driver support for Freescale i.MX6Q SOC.