162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ciconfig QCOM_TSENS
362306a36Sopenharmony_ci	tristate "Qualcomm TSENS Temperature Alarm"
462306a36Sopenharmony_ci	depends on NVMEM_QCOM_QFPROM
562306a36Sopenharmony_ci	depends on ARCH_QCOM || COMPILE_TEST
662306a36Sopenharmony_ci	help
762306a36Sopenharmony_ci	  This enables the thermal sysfs driver for the TSENS device. It shows
862306a36Sopenharmony_ci	  up in Sysfs as a thermal zone with multiple trip points. Disabling the
962306a36Sopenharmony_ci	  thermal zone device via the mode file results in disabling the sensor.
1062306a36Sopenharmony_ci	  Also able to set threshold temperature for both hot and cold and update
1162306a36Sopenharmony_ci	  when a threshold is reached.
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ciconfig QCOM_SPMI_ADC_TM5
1462306a36Sopenharmony_ci	tristate "Qualcomm SPMI PMIC Thermal Monitor ADC5"
1562306a36Sopenharmony_ci	depends on OF && SPMI && IIO
1662306a36Sopenharmony_ci	select REGMAP_SPMI
1762306a36Sopenharmony_ci	select QCOM_VADC_COMMON
1862306a36Sopenharmony_ci	help
1962306a36Sopenharmony_ci	  This enables the thermal driver for the ADC thermal monitoring
2062306a36Sopenharmony_ci	  device. It shows up as a thermal zone with multiple trip points.
2162306a36Sopenharmony_ci	  Thermal client sets threshold temperature for both warm and cool and
2262306a36Sopenharmony_ci	  gets updated when a threshold is reached.
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ciconfig QCOM_SPMI_TEMP_ALARM
2562306a36Sopenharmony_ci	tristate "Qualcomm SPMI PMIC Temperature Alarm"
2662306a36Sopenharmony_ci	depends on OF && SPMI && IIO
2762306a36Sopenharmony_ci	select REGMAP_SPMI
2862306a36Sopenharmony_ci	help
2962306a36Sopenharmony_ci	  This enables a thermal sysfs driver for Qualcomm plug-and-play (QPNP)
3062306a36Sopenharmony_ci	  PMIC devices. It shows up in sysfs as a thermal sensor with multiple
3162306a36Sopenharmony_ci	  trip points. The temperature reported by the thermal sensor reflects the
3262306a36Sopenharmony_ci	  real time die temperature if an ADC is present or an estimate of the
3362306a36Sopenharmony_ci	  temperature based upon the over temperature stage value.
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ciconfig QCOM_LMH
3662306a36Sopenharmony_ci	tristate "Qualcomm Limits Management Hardware"
3762306a36Sopenharmony_ci	depends on ARCH_QCOM && QCOM_SCM
3862306a36Sopenharmony_ci	help
3962306a36Sopenharmony_ci	  This enables initialization of Qualcomm limits management
4062306a36Sopenharmony_ci	  hardware(LMh). LMh allows for hardware-enforced mitigation for cpus based on
4162306a36Sopenharmony_ci	  input from temperature and current sensors.  On many newer Qualcomm SoCs
4262306a36Sopenharmony_ci	  LMh is configured in the firmware and this feature need not be enabled.
4362306a36Sopenharmony_ci	  However, on certain SoCs like sdm845 LMh has to be configured from kernel.
44