aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal/Kconfig
diff options
context:
space:
mode:
authorAmit Daniel Kachhap <amit.daniel@samsung.com>2013-02-03 19:30:15 -0500
committerZhang Rui <rui.zhang@intel.com>2013-02-06 00:45:42 -0500
commite6e238c38bd4d42d5e2cddb2165e1a46e0fb1200 (patch)
treef09a49a963463468a39a62908583d5b0484c9d99 /drivers/thermal/Kconfig
parentc8165dc0ea75855b0bff6e5edbe4957b8a63d021 (diff)
thermal: sysfs: Add a new sysfs node emul_temp for thermal emulation
This patch adds support to set the emulated temperature method in thermal zone (sensor). After setting this feature thermal zone may report this temperature and not the actual temperature. The emulation implementation may be based on sensor capability through platform specific handler or pure software emulation if no platform handler defined. This is useful in debugging different temperature threshold and its associated cooling action. Critical threshold's cannot be emulated. Writing 0 on this node should disable emulation. Signed-off-by: Amit Daniel Kachhap <amit.daniel@samsung.com> Acked-by: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal/Kconfig')
-rw-r--r--drivers/thermal/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
index faf38c522fa8..e4cf7fbc3a59 100644
--- a/drivers/thermal/Kconfig
+++ b/drivers/thermal/Kconfig
@@ -78,6 +78,14 @@ config CPU_THERMAL
78 and not the ACPI interface. 78 and not the ACPI interface.
79 If you want this support, you should say Y here. 79 If you want this support, you should say Y here.
80 80
81config THERMAL_EMULATION
82 bool "Thermal emulation mode support"
83 help
84 Enable this option to make a emul_temp sysfs node in thermal zone
85 directory to support temperature emulation. With emulation sysfs node,
86 user can manually input temperature and test the different trip
87 threshold behaviour for simulation purpose.
88
81config SPEAR_THERMAL 89config SPEAR_THERMAL
82 bool "SPEAr thermal sensor driver" 90 bool "SPEAr thermal sensor driver"
83 depends on PLAT_SPEAR 91 depends on PLAT_SPEAR