mirror of
https://github.com/linux-msm/bootrr.git
synced 2026-02-25 13:12:03 -08:00
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:
committed by
Bjorn Andersson
parent
a2cc1741bb
commit
7e731b76bd
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user