sdm845: Check thermal zone characteristics

We currently check if the thermal zone is in enabled state and if the
temperature is between a certain range

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
This commit is contained in:
Amit Kucheria
2018-07-23 18:54:54 +05:30
committed by Bjorn Andersson
parent a2cc1741bb
commit 7e731b76bd

View File

@@ -135,6 +135,11 @@ assert_device_present spmi-pmic-arb-device-probed spmi_pmic_arb c440000.*
assert_driver_present tsens-driver-present qcom-tsens
assert_device_present tsens0-device-probed qcom-tsens c263000.*
assert_device_present tsens1-device-probed qcom-tsens c265000.*
for num in `seq 0 7`
do
state_check thermal-zone"${num}"-enabled /sys/class/thermal/thermal_zone"${num}"/mode enabled
value_in_range thermal-zone"${num}"-temperature /sys/class/thermal/thermal_zone"${num}"/temp 25000 40000
done
# ADSP PIL