Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: 7758/1: introduce config HAS_BANDGAP

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.

Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-omap@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Reviewed-by: Fabio Stevam <festevam@gmail.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Eduardo Valentin and committed by
Russell King
4a1b5733 621a0147

+4
+3
arch/arm/Kconfig
··· 174 174 and that the relevant menu configurations are displayed for 175 175 it. 176 176 177 + config ARCH_HAS_BANDGAP 178 + bool 179 + 177 180 config GENERIC_HWEIGHT 178 181 bool 179 182 default y
+1
arch/arm/mach-omap2/Kconfig
··· 4 4 config ARCH_OMAP2PLUS 5 5 bool "TI OMAP2/3/4/5 SoCs with device tree support" if (ARCH_MULTI_V6 || ARCH_MULTI_V7) 6 6 select ARCH_HAS_CPUFREQ 7 + select ARCH_HAS_BANDGAP 7 8 select ARCH_HAS_HOLES_MEMORYMODEL 8 9 select ARCH_OMAP 9 10 select ARCH_REQUIRE_GPIOLIB