From 74d797205aed89409b88e1b24f8c34215faa837b Mon Sep 17 00:00:00 2001 From: Sayanna Chandula Date: Tue, 15 Feb 2022 00:32:46 +0000 Subject: [PATCH] thermal: enable cellular emergency sensor Add cellular-emergency sensor with same virtual coefficients as virtual-skin, but a 54 degC emergency threshold. Bug: 216391268 Test: build and boot on device. Signed-off-by: Sayanna Chandula Change-Id: I8d6178b228ffaf31b80341efb4a78e681940bb47 --- thermal_info_config_cheetah.json | 40 ++++++++++++++++++++++++++++++++ thermal_info_config_panther.json | 40 ++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) diff --git a/thermal_info_config_cheetah.json b/thermal_info_config_cheetah.json index 55eef2d..7281a6c 100644 --- a/thermal_info_config_cheetah.json +++ b/thermal_info_config_cheetah.json @@ -381,6 +381,46 @@ } ] }, + { + "Name":"cellular-emergency", + "Type":"POWER_AMPLIFIER", + "VirtualSensor":true, + "TriggerSensor":"quiet_therm", + "Formula":"MAXIMUM", + "Combination":[ + "VIRTUAL-QI-USB", + "VIRTUAL-USB2-QUIET", + "VIRTUAL-QUIET-USB2" + ], + "Coefficient":[ + "1.0", + "1.0", + "1.0" + ], + "HotThreshold":[ + "NAN", + "NAN", + "NAN", + "NAN", + "NAN", + "54.0", + "NAN" + ], + "HotHysteresis":[ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 1.9, + 0.0 + ], + "VrThreshold":"NAN", + "Multiplier":0.001, + "Monitor":true, + "PollingDelay":300000, + "PassiveDelay":7000 + }, { "Name":"LITTLE", "Type":"CPU", diff --git a/thermal_info_config_panther.json b/thermal_info_config_panther.json index 82612ee..d500b15 100644 --- a/thermal_info_config_panther.json +++ b/thermal_info_config_panther.json @@ -409,6 +409,46 @@ } ] }, + { + "Name":"cellular-emergency", + "Type":"POWER_AMPLIFIER", + "VirtualSensor":true, + "TriggerSensor":"quiet_therm", + "Formula":"MAXIMUM", + "Combination":[ + "VIRTUAL-QI-USB", + "VIRTUAL-USB-QUIET", + "VIRTUAL-GNSS-USB2" + ], + "Coefficient":[ + "1.0", + "1.0", + "1.0" + ], + "HotThreshold":[ + "NAN", + "NAN", + "NAN", + "NAN", + "NAN", + "54.0", + "NAN" + ], + "HotHysteresis":[ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 1.9, + 0.0 + ], + "VrThreshold":"NAN", + "Multiplier":0.001, + "Monitor":true, + "PollingDelay":300000, + "PassiveDelay":7000 + }, { "Name":"LITTLE", "Type":"CPU",