From 8ea39c8d6d5e112fe592635c14ba8634edf3ae76 Mon Sep 17 00:00:00 2001 From: TeYuan Wang Date: Thu, 6 Apr 2023 09:17:42 +0800 Subject: [PATCH] thermal: bringup policy for USBC overheat warning UI Bug: 275660018 Test: verified by emul_temp Change-Id: Id7b2399a399c50265f85bbcc9b087a8eed894d4b --- thermal_info_config_husky.json | 17 +++++++++++++++-- thermal_info_config_shiba.json | 17 +++++++++++++++-- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/thermal_info_config_husky.json b/thermal_info_config_husky.json index 8c37a78..9e7b28c 100644 --- a/thermal_info_config_husky.json +++ b/thermal_info_config_husky.json @@ -520,7 +520,6 @@ "Combination":["USB-MINUS-QUIET", "VSYS_PWR_RFFE"], "CombinationType":["SENSOR", "ODPM"], "Coefficient":[1, -6], - "Offset":-4000, "Multiplier":0.001 }, { @@ -530,7 +529,7 @@ "Formula":"COUNT_THRESHOLD", "TriggerSensor": "usb_pwr_therm", "Combination":["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-NEUTRAL", "USB_QUIET_RFFE"], - "Coefficient":[46000, 46000, 10000, 0], + "Coefficient":[46000, 46000, 10000, 4000], "HotThreshold":["NAN", "NAN", "NAN", "NAN", "3.0", "NAN", "NAN"], "BindedCdevInfo": [ { @@ -542,6 +541,20 @@ "PollingDelay":300000, "PassiveDelay":7000 }, + { + "Name":"VIRTUAL-USB-UI", + "Type":"USB_PORT", + "VirtualSensor":true, + "Formula":"COUNT_THRESHOLD", + "TriggerSensor": "usb_pwr_therm", + "Combination":["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-NEUTRAL", "USB_QUIET_RFFE"], + "Coefficient":[48000, 48000, 11000, 5000], + "HotThreshold":["NAN", "NAN", "NAN", "NAN", "NAN", "3.0", "NAN"], + "Multiplier":1, + "PollingDelay":300000, + "PassiveDelay":7000, + "SendCallback":true + }, { "Name":"LITTLE", "Type":"CPU", diff --git a/thermal_info_config_shiba.json b/thermal_info_config_shiba.json index bf8bde5..9182527 100644 --- a/thermal_info_config_shiba.json +++ b/thermal_info_config_shiba.json @@ -549,7 +549,6 @@ "Combination":["USB-MINUS-QUIET", "VSYS_PWR_RFFE"], "CombinationType":["SENSOR", "ODPM"], "Coefficient":[1, -8], - "Offset":-5000, "Multiplier":0.001 }, { @@ -559,7 +558,7 @@ "Formula":"COUNT_THRESHOLD", "TriggerSensor": "usb_pwr_therm", "Combination":["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-NEUTRAL", "USB_QUIET_RFFE"], - "Coefficient":[46000, 46000, 10000, 0], + "Coefficient":[46000, 46000, 10000, 5000], "HotThreshold":["NAN", "NAN", "NAN", "NAN", "3.0", "NAN", "NAN"], "BindedCdevInfo": [ { @@ -571,6 +570,20 @@ "PollingDelay":60000, "PassiveDelay":7000 }, + { + "Name":"VIRTUAL-USB-UI", + "Type":"USB_PORT", + "VirtualSensor":true, + "Formula":"COUNT_THRESHOLD", + "TriggerSensor": "usb_pwr_therm", + "Combination":["usb_pwr_therm", "usb_pwr_therm", "USB-MINUS-NEUTRAL", "USB_QUIET_RFFE"], + "Coefficient":[48000, 48000, 11000, 6000], + "HotThreshold":["NAN", "NAN", "NAN", "NAN", "NAN", "3.0", "NAN"], + "Multiplier":1, + "PollingDelay":300000, + "PassiveDelay":7000, + "SendCallback":true + }, { "Name":"LITTLE", "Type":"CPU",