From 58af1aac0538585026dd71e6b24c204204b5ea0f Mon Sep 17 00:00:00 2001 From: TeYuan Wang Date: Wed, 20 Sep 2023 23:22:28 -0700 Subject: [PATCH] thermal: add initial CDEV and SKIN policy Bug: 301173997 Test: adb shell dumpsys android.hardware.thermal.IThermal/default Change-Id: I8248743b360f005c3eec0ccd400018b310fb592b --- thermal_info_config_comet.json | 50 ++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/thermal_info_config_comet.json b/thermal_info_config_comet.json index 03b11c3..4f55fec 100644 --- a/thermal_info_config_comet.json +++ b/thermal_info_config_comet.json @@ -15,6 +15,16 @@ "VrThreshold":"NAN", "Multiplier":0.001 }, + { + "Name":"soc_therm", + "Type":"SKIN", + "HotThreshold":["NAN", 139.0, 143.0, 145.0, 146.5, 152.0, 155.0], + "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.4, 1.9, 1.9], + "Multiplier":0.001, + "SendCallback":true, + "PollingDelay":300000, + "PassiveDelay":7000 + }, { "Name":"LITTLE", "Type":"CPU", @@ -60,5 +70,45 @@ "VrThreshold":"NAN", "Multiplier":0.001 } + ], + "CoolingDevices":[ + { + "Name":"thermal-cpufreq-0", + "Type":"CPU", + "WritePath":"/dev/thermal/cdev-by-name/thermal-cpufreq-0/user_vote" + }, + { + "Name":"thermal-cpufreq-1", + "Type":"CPU", + "WritePath":"/dev/thermal/cdev-by-name/thermal-cpufreq-1/user_vote" + }, + { + "Name":"thermal-cpufreq-2", + "Type":"CPU", + "WritePath":"/dev/thermal/cdev-by-name/thermal-cpufreq-2/user_vote" + }, + { + "Name":"thermal-gpufreq-0", + "Type":"GPU", + "WritePath":"/dev/thermal/cdev-by-name/thermal-gpufreq-0/user_vote" + }, + { + "Name":"chg_mdis", + "Type":"BATTERY" + }, + { + "Name":"usbc-port", + "Type":"BATTERY" + }, + { + "Name":"tpu_cooling", + "Type":"NPU", + "WritePath":"/dev/thermal/cdev-by-name/tpu_cooling/user_vote" + }, + { + "Name":"gxp-cooling", + "Type":"NPU", + "WritePath":"/dev/thermal/cdev-by-name/gxp-cooling/user_vote" + } ] }