From patchwork Wed Jun 1 19:48:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kim Kukjin X-Patchwork-Id: 841732 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p51JmxLv009398 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 1 Jun 2011 19:49:20 GMT Received: from canuck.infradead.org ([134.117.69.58]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QRrP7-0006xK-2z; Wed, 01 Jun 2011 19:48:33 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QRrP6-0001u9-HA; Wed, 01 Jun 2011 19:48:32 +0000 Received: from mail-pw0-f49.google.com ([209.85.160.49]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QRrOx-0001pu-Cy for linux-arm-kernel@lists.infradead.org; Wed, 01 Jun 2011 19:48:26 +0000 Received: by pwi8 with SMTP id 8so249375pwi.36 for ; Wed, 01 Jun 2011 12:48:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:message-id:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=2NBk9Bim1cyXnqRySytGc7PNvr58AmYh5Y/2PV94iZE=; b=mHMNvF56N5ItxKxlIgywbu8E8SJQ4pYGUPr93FpPKQFox3ekA3imJ5OI0lE71UwA2H K+ilr2vViIZTvzG3Elih0oLpZw8Af1jc30vgTRLInwHIBSQASOOcatUCajLbz0OIJgWv 8Thk5laH4bxpIyVEeMcqyRV2e4UCjjdMwlGEM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=u+2qA4tzf6PST7mBS6R3Ts0ovtSCxNeYXyjCh+grxi5GTHWHVlNHwazBocQzVZWtmw XR32r9b699qynH+jXk7WUlNxdrjSiRpf4xEIs2kDVUyoxOejNo4hnI8jXTIXkyEZOiAF zMK6IEW9DvHWcl4AzdGV6qwNB39BGspToE6aA= Received: by 10.142.188.21 with SMTP id l21mr1264566wff.258.1306957700331; Wed, 01 Jun 2011 12:48:20 -0700 (PDT) Received: from [192.168.1.104] ([216.239.45.19]) by mx.google.com with ESMTPS id d15sm818681wfl.18.2011.06.01.12.48.18 (version=SSLv3 cipher=OTHER); Wed, 01 Jun 2011 12:48:19 -0700 (PDT) Message-ID: <4DE6977E.5080107@samsung.com> Date: Wed, 01 Jun 2011 12:48:14 -0700 From: Kukjin Kim User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Thunderbird/3.1.10 MIME-Version: 1.0 To: Donggeun Kim Subject: Re: [PATCH] CPUFREQ/S5PV210, EXYNOS4: Add Kconfig options for S5PV210 and EXYNOS4 CPUfreq drivers References: <1306476428-24808-1-git-send-email-dg77.kim@samsung.com> <1306483489-10432-1-git-send-email-dg77.kim@samsung.com> In-Reply-To: <1306483489-10432-1-git-send-email-dg77.kim@samsung.com> X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110601_154823_990264_70BEA687 X-CRM114-Status: GOOD ( 29.62 ) X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is freemail (kgene.kim[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.49 listed in list.dnswl.org] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 RFC_ABUSE_POST Both abuse and postmaster missing on sender domain Cc: linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, kyungmin.park@samsung.com, myungjoo.ham@samsung.com, Ben Dooks , davej@redhat.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 01 Jun 2011 19:49:20 +0000 (UTC) On 05/27/11 01:04, Donggeun Kim wrote: > This patch adds CONFIG_CPU_FREQ_S5PV210 and CONFIG_CPU_FREQ_EXYNOS4 > to the machine Kconfig files. > > Signed-off-by: Donggeun Kim > Signed-off-by: Kyungmin Park > --- > arch/arm/mach-exynos4/Kconfig | 7 +++++++ > arch/arm/mach-s5pv210/Kconfig | 7 +++++++ > 2 files changed, 14 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/mach-exynos4/Kconfig b/arch/arm/mach-exynos4/Kconfig > index e849f67..123e5e2 100644 > --- a/arch/arm/mach-exynos4/Kconfig > +++ b/arch/arm/mach-exynos4/Kconfig > @@ -91,6 +91,13 @@ config EXYNOS4_SETUP_FIMC > help > Common setup code for the camera interfaces. > > +config CPU_FREQ_EXYNOS4 > + bool > + depends on CPU_FREQ&& ARCH_EXYNOS4 > + default y > + help > + This enabls the CPUfreq driver for EXYNOS4. > + > # machine support > > menu "EXYNOS4 Machines" > diff --git a/arch/arm/mach-s5pv210/Kconfig b/arch/arm/mach-s5pv210/Kconfig > index 37b5a97..376e824 100644 > --- a/arch/arm/mach-s5pv210/Kconfig > +++ b/arch/arm/mach-s5pv210/Kconfig > @@ -59,6 +59,13 @@ config S5PV210_SETUP_FIMC > help > Common setup code for the camera interfaces. > > +config CPU_FREQ_S5PV210 > + bool > + depends on CPU_FREQ&& CPU_S5PV210 > + default y > + help > + This enabls the CPUfreq driver for S5PV210. > + > menu "S5PC110 Machines" > > config MACH_AQUILA Cc'ed Ben Dooks. No. Please don't add this in arch/arm. If required, they should be added in drivers/cpufreq/ like x86. As a note, I'm sorting that out which includes all of Samsung cpufreq driver. Dave, could you please see below? If you're ok, will submit remained others for Samsung cpufreq drivers. Thanks. Best regards, Kgene. --- Kukjin Kim , Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd. --- From 137f53472a0ea8ce584adbddfdb6ae645fc5a09c Mon Sep 17 00:00:00 2001 From: Kukjin Kim Date: Wed, 1 Jun 2011 12:37:47 -0700 Subject: [PATCH] cpufreq: Add Samsung cpufreq driver compile in Kconfig.arm According to discussion of the ARM arch subsystem migration, ARM cpufreq drivers move to drivers/cpufreq. So this patch adds Kconfig.arm for ARM like x86 and adds Samsung cpufreq driver compile in there. As a note didn't add 'default y' on this to build error during each maintainers' merge. If required, it can be added later. Cc: Dave Jones Signed-off-by: Kukjin Kim --- drivers/cpufreq/Kconfig | 5 +++++ drivers/cpufreq/Kconfig.arm | 21 +++++++++++++++++++++ drivers/cpufreq/Makefile | 2 ++ 3 files changed, 28 insertions(+), 0 deletions(-) create mode 100644 drivers/cpufreq/Kconfig.arm diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig index 9fb8485..e898215 100644 --- a/drivers/cpufreq/Kconfig +++ b/drivers/cpufreq/Kconfig @@ -184,5 +184,10 @@ depends on X86 source "drivers/cpufreq/Kconfig.x86" endmenu +menu "ARM CPU frequency scaling drivers" +depends on ARM +source "drivers/cpufreq/Kconfig.arm" +endmenu + endif endmenu diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm new file mode 100644 index 0000000..f2fc3a4 --- /dev/null +++ b/drivers/cpufreq/Kconfig.arm @@ -0,0 +1,21 @@ +# +# ARM CPU Frequency scaling drivers +# + +config ARM_S5PV210_CPUFREQ + bool "Samsung S5PV210 and S5PC110" + depends on CPU_S5PV210 + ---help--- + This adds the CPUFreq driver for Samsung S5PV210 and + S5PC110 SoCs. + + If in doubt, say N. + +config ARM_EXYNOS4210_CPUFREQ + bool "Samsung EXYNOS4210" + depends on CPU_EXYNOS4210 + ---help--- + This adds the CPUFreq driver for Samsung EXYNOS4210 + SoC (S5PV310 or S5PC210). + + If in doubt, say N. diff --git a/drivers/cpufreq/Makefile b/drivers/cpufreq/Makefile index e2fc2d2..864a27c 100644 --- a/drivers/cpufreq/Makefile +++ b/drivers/cpufreq/Makefile @@ -41,3 +41,5 @@ obj-$(CONFIG_X86_CPUFREQ_NFORCE2) += cpufreq-nforce2.o # ARM SoC drivers obj-$(CONFIG_UX500_SOC_DB8500) += db8500-cpufreq.o +obj-$(CONFIG_ARM_S5PV210_CPUFREQ) += s5pv210-cpufreq.o +obj-$(CONFIG_ARM_EXYNOS4210_CPUFREQ) += exynos4210-cpufreq.o