1# SPDX-License-Identifier: GPL-2.0-only 2config QCOM_TSENS 3 tristate "Qualcomm TSENS Temperature Alarm" 4 depends on NVMEM_QCOM_QFPROM 5 depends on ARCH_QCOM || COMPILE_TEST 6 help 7 This enables the thermal sysfs driver for the TSENS device. It shows 8 up in Sysfs as a thermal zone with multiple trip points. Disabling the 9 thermal zone device via the mode file results in disabling the sensor. 10 Also able to set threshold temperature for both hot and cold and update 11 when a threshold is reached. 12 13config QCOM_SPMI_ADC_TM5 14 tristate "Qualcomm SPMI PMIC Thermal Monitor ADC5" 15 depends on OF && SPMI && IIO 16 select REGMAP_SPMI 17 select QCOM_VADC_COMMON 18 help 19 This enables the thermal driver for the ADC thermal monitoring 20 device. It shows up as a thermal zone with multiple trip points. 21 Thermal client sets threshold temperature for both warm and cool and 22 gets updated when a threshold is reached. 23 24config QCOM_SPMI_MBG_TM 25 tristate "Qualcomm SPMI PMIC MBG Temperature monitor" 26 depends on QCOM_SPMI_ADC5_GEN3 27 select REGMAP_SPMI 28 help 29 This enables Qualcomm PMIC MBG (Master Bandgap) thermal monitor. 30 31 The MBG block monitors PMIC die temperature in hardware and raises an 32 interrupt when the programmed threshold is crossed. 33 34 Temperature is read from the associated ADC channel, and threshold 35 interrupts are forwarded to the thermal framework as trip-violation 36 events. Current support handles a single LVL1 upper (hot) trip. 37 38config QCOM_SPMI_ADC_TM5_GEN3 39 tristate "Qualcomm SPMI PMIC Thermal Monitor ADC5 Gen3" 40 depends on QCOM_SPMI_ADC5_GEN3 41 help 42 This enables the auxiliary thermal driver for the ADC5 Gen3 thermal 43 monitoring device. It shows up as a thermal zone with multiple trip points. 44 Thermal client sets threshold temperature for both warm and cool and 45 gets updated when a threshold is reached. 46 47config QCOM_SPMI_TEMP_ALARM 48 tristate "Qualcomm SPMI PMIC Temperature Alarm" 49 depends on OF && SPMI && IIO 50 select REGMAP_SPMI 51 help 52 This enables a thermal sysfs driver for Qualcomm plug-and-play (QPNP) 53 PMIC devices. It shows up in sysfs as a thermal sensor with multiple 54 trip points. The temperature reported by the thermal sensor reflects the 55 real time die temperature if an ADC is present or an estimate of the 56 temperature based upon the over temperature stage value. 57 58config QCOM_LMH 59 tristate "Qualcomm Limits Management Hardware" 60 depends on ARCH_QCOM || COMPILE_TEST 61 select QCOM_SCM 62 help 63 This enables initialization of Qualcomm limits management 64 hardware(LMh). LMh allows for hardware-enforced mitigation for cpus based on 65 input from temperature and current sensors. On many newer Qualcomm SoCs 66 LMh is configured in the firmware and this feature need not be enabled. 67 However, on certain SoCs like sdm845 LMh has to be configured from kernel. 68