From 7e731b76bd0a150ab2d574dc322c7be5673b681d Mon Sep 17 00:00:00 2001 From: Amit Kucheria Date: Mon, 23 Jul 2018 18:54:54 +0530 Subject: [PATCH] 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 --- boards/qcom,sdm845-mtp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/boards/qcom,sdm845-mtp b/boards/qcom,sdm845-mtp index e6053e6..b39f61d 100755 --- a/boards/qcom,sdm845-mtp +++ b/boards/qcom,sdm845-mtp @@ -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