From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757394Ab3FLRHj (ORCPT ); Wed, 12 Jun 2013 13:07:39 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:54712 "EHLO mho-02-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754494Ab3FLRHh (ORCPT ); Wed, 12 Jun 2013 13:07:37 -0400 X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 50.131.214.131 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX182hptguOQRThVwRFw1EfhU Date: Wed, 12 Jun 2013 10:07:34 -0700 From: Tony Lindgren To: Eduardo Valentin Cc: grant.likely@linaro.org, linux-pm@vger.kernel.org, linux-omap@vger.kernel.org, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Fabio Stevam Subject: Re: [PATCHv3 2/6] arm: introduce config HAS_BANDGAP Message-ID: <20130612170733.GK8164@atomide.com> References: <1370637968-23299-1-git-send-email-eduardo.valentin@ti.com> <1370637968-23299-3-git-send-email-eduardo.valentin@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1370637968-23299-3-git-send-email-eduardo.valentin@ti.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Eduardo Valentin [130607 13:53]: > Bandgap is a device used to measure temperature on > electronic equipments. It is widely used in digital > integrated circuits. It is based on the dependency > between silicon voltage and temperature. > > This patch introduce HAS_BANDGAP config entry. > This config is a boolean value so that arch > code can flag if they feature a bandgap device. > > This config entry follows the same idea behind > ARCH_HAS_CPUFREQ. I suggest you add this to Russell's patch system: Acked-by: Tony Lindgren > Cc: Russell King > Cc: Tony Lindgren > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-omap@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Cc: Fabio Stevam > Signed-off-by: Eduardo Valentin > --- > arch/arm/Kconfig | 3 +++ > arch/arm/mach-omap2/Kconfig | 1 + > 2 files changed, 4 insertions(+) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index d423d58..bcbdec9 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -174,6 +174,9 @@ config ARCH_HAS_CPUFREQ > and that the relevant menu configurations are displayed for > it. > > +config ARCH_HAS_BANDGAP > + bool > + > config GENERIC_HWEIGHT > bool > default y > diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig > index f49cd51..8620ab5 100644 > --- a/arch/arm/mach-omap2/Kconfig > +++ b/arch/arm/mach-omap2/Kconfig > @@ -4,6 +4,7 @@ config ARCH_OMAP > config ARCH_OMAP2PLUS > bool "TI OMAP2/3/4/5 SoCs with device tree support" if (ARCH_MULTI_V6 || ARCH_MULTI_V7) > select ARCH_HAS_CPUFREQ > + select ARCH_HAS_BANDGAP > select ARCH_HAS_HOLES_MEMORYMODEL > select ARCH_OMAP > select ARCH_REQUIRE_GPIOLIB > -- > 1.8.2.1.342.gfa7285d >