xref: /OK3568_Linux_fs/kernel/drivers/thermal/qcom/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyunconfig QCOM_TSENS
3*4882a593Smuzhiyun	tristate "Qualcomm TSENS Temperature Alarm"
4*4882a593Smuzhiyun	depends on QCOM_QFPROM
5*4882a593Smuzhiyun	depends on ARCH_QCOM || COMPILE_TEST
6*4882a593Smuzhiyun	help
7*4882a593Smuzhiyun	  This enables the thermal sysfs driver for the TSENS device. It shows
8*4882a593Smuzhiyun	  up in Sysfs as a thermal zone with multiple trip points. Disabling the
9*4882a593Smuzhiyun	  thermal zone device via the mode file results in disabling the sensor.
10*4882a593Smuzhiyun	  Also able to set threshold temperature for both hot and cold and update
11*4882a593Smuzhiyun	  when a threshold is reached.
12*4882a593Smuzhiyun
13*4882a593Smuzhiyunconfig QCOM_SPMI_TEMP_ALARM
14*4882a593Smuzhiyun	tristate "Qualcomm SPMI PMIC Temperature Alarm"
15*4882a593Smuzhiyun	depends on OF && SPMI && IIO
16*4882a593Smuzhiyun	select REGMAP_SPMI
17*4882a593Smuzhiyun	help
18*4882a593Smuzhiyun	  This enables a thermal sysfs driver for Qualcomm plug-and-play (QPNP)
19*4882a593Smuzhiyun	  PMIC devices. It shows up in sysfs as a thermal sensor with multiple
20*4882a593Smuzhiyun	  trip points. The temperature reported by the thermal sensor reflects the
21*4882a593Smuzhiyun	  real time die temperature if an ADC is present or an estimate of the
22*4882a593Smuzhiyun	  temperature based upon the over temperature stage value.
23