From c6a2866482e3ecef1a420d1605bcbb58e0b3a40e Mon Sep 17 00:00:00 2001 From: Philipp Tomsich Date: Mon, 5 Sep 2016 15:19:20 +0200 Subject: ARM: sun9i: Add thermal sensor controller The thermal sensor controller (TSC) on the Allwiner A80 is colocated with the GPADC block (i.e. it shares a clock) and controls 4 on-chip thermals sensors. The DTS entry for the TSC provides human-readable names for each of the sensor points and models the conversion function from raw values to temperature readings (in Celsius). Signed-off-by: Philipp Tomsich --- drivers/thermal/Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'drivers/thermal/Kconfig') diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index 2d702ca6556f..d449cf84ff85 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig @@ -204,6 +204,18 @@ config SPEAR_THERMAL Enable this to plug the SPEAr thermal sensor driver into the Linux thermal framework. +config SUN9I_THERMAL + tristate "SUN9I thermal sensor driver" + depends on MACH_SUN9I + depends on HAS_IOMEM + depends on OF + help + Enable this to support the thermal sensor controller found in the + sun9i (A80) and sun50i (A64). The specifics of each controller + (i.e. number of sensors and conversion function) can be configured + through the device-tree. Cpufreq is used as the cooling device and + will throttle CPUs when the temperature crosses the passive trip point. + config ROCKCHIP_THERMAL tristate "Rockchip thermal driver" depends on ARCH_ROCKCHIP || COMPILE_TEST -- cgit v1.2.3