From 03f90e3eec86dd8bbd30adeeb22742d35e0d4fc7 Mon Sep 17 00:00:00 2001 From: Anand S Date: Thu, 8 May 2025 19:13:40 +0530 Subject: [PATCH] rhodep: Move thermal config to device tree Change-Id: Ia9f3939ef90810825ce13841e9830ae09224530e --- configs/thermal-engine-rhodep.conf | 120 +++++++++++++++++++++++++++++ device.mk | 4 + proprietary-files.txt | 1 - 3 files changed, 124 insertions(+), 1 deletion(-) create mode 100644 configs/thermal-engine-rhodep.conf diff --git a/configs/thermal-engine-rhodep.conf b/configs/thermal-engine-rhodep.conf new file mode 100644 index 0000000..d1f5ca5 --- /dev/null +++ b/configs/thermal-engine-rhodep.conf @@ -0,0 +1,120 @@ +[VIRT-QUIET] +algo_type virtual +sensors quiet_therm +weights 100 +trip_sensor chg_therm +thresholds 18000 +thresholds_clr 16000 +offsets 0 +sampling 5000 +math 0 + +[CHG-EXT-THERM_running] +algo_type monitor +sensor virtual-sensor-1 +sampling 1000 +polling_delay 0 +passive_delay 0 +thresholds 41000 43000 45000 46000 50000 +thresholds_clr 39000 41000 43000 45000 46000 +actions battery battery battery battery battery +action_info 07 06 04 03 01 + +[virtual-sensor-0] +algo_type virtual +trip_sensor msm_therm +set_point 43000 +set_point_clr 39000 +sensors quiet_therm msm_therm +weights 50 50 +sampling 1000 + +[virtual-sensor-1] +algo_type virtual +trip_sensor msm_therm +set_point 30000 +set_point_clr 20000 +sensors quiet_therm msm_therm chg_therm +weights 30 60 10 +sampling 1000 + +[MON-MSM-CLUSTER01] +algo_type monitor +sampling 1000 +sensor virtual-sensor-0 +thresholds 41000 42000 46000 +thresholds_clr 40000 41000 45000 +actions cpu0 cpu0 cpu0 +action_info 1651200 1516800 1324800 +override_b 4000 + +[MON-MSM-CLUSTER02] +algo_type monitor +sampling 1000 +sensor virtual-sensor-0 +thresholds 40000 41000 45000 +thresholds_clr 39000 40000 41000 +actions cpu6 cpu6 cpu6 +action_info 1900800 1651200 1516800 +override_b 4000 + +[MONITOR-CAMERA-MSM] +algo_type monitor +sampling 1000 +sensor virtual-sensor-0 +thresholds 41000 46000 +thresholds_clr 40000 45000 +actions camera camera +action_info 1 2 + + [FRONT_TEMP] +algo_type virtual +trip_sensor msm_therm +thresholds -18000 +thresholds_clr -20000 +sensors battery chg_therm msm_therm quiet_therm +weights 40 15 10 35 +offsets -100 -200 0 -100 +sampling 1000 +math 0 +sys_temp + +[REPORT-FRONT-TEMP] +algo_type monitor +sampling 300000 +sensor FRONT_TEMP +thresholds 46000 +thresholds_clr 43000 +actions report +action_info 1 + +[BACK_TEMP] +algo_type virtual +trip_sensor msm_therm +thresholds -18000 +thresholds_clr -20000 +sensors battery chg_therm msm_therm quiet_therm +weights 30 25 15 30 +offsets -100 -200 -200 -100 +sampling 1000 +math 0 +sys_temp + +[REPORT-BACK-TEMP] +algo_type monitor +sampling 300000 +sensor BACK_TEMP +thresholds 46000 +thresholds_clr 43000 +actions report +action_info 1 + +[MON-PDPOWER3] +algo_type monitor +sampling 1000 +sensor virtual-sensor-1 +thresholds 39500 42000 43000 45000 46000 +thresholds_clr 38500 39500 42000 43000 45000 +actions mmi_chrg_manager mmi_chrg_manager mmi_chrg_manager mmi_chrg_manager mmi_chrg_manager +action_info 6 5 3 2 1 +freezing diff --git a/device.mk b/device.mk index 935d721..75a1528 100644 --- a/device.mk +++ b/device.mk @@ -96,5 +96,9 @@ PRODUCT_COPY_FILES += \ # Soong namespaces PRODUCT_SOONG_NAMESPACES += $(LOCAL_PATH) +# Thermal +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/thermal-engine-rhodep.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-rhodep.conf + # Inherit from vendor blobs $(call inherit-product, vendor/motorola/rhodep/rhodep-vendor.mk) diff --git a/proprietary-files.txt b/proprietary-files.txt index 0780d73..a26a405 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -402,5 +402,4 @@ vendor/etc/sensors/proto/tcs3708.proto vendor/etc/sensors/sns_reg_config # Thermal configs -vendor/etc/thermal-engine-rhodep.conf vendor/etc/thermal-engine.conf