From 1dbbc0a53b85e13e6ec269218ba3b6c61f4efd03 Mon Sep 17 00:00:00 2001 From: George Lee Date: Mon, 8 Mar 2021 09:28:34 -0800 Subject: [PATCH] thermal: cellular mitigation on critical battery Enable cellular mitigation on critical battery condition. Bug: 181572536 Test: Local Test Signed-off-by: George Lee Change-Id: I310c3b67bc6a7f83a724005665eeda50b29469f7 --- thermal_info_config_oriole.json | 29 +++++++++++++++++++++++++++++ thermal_info_config_raven.json | 29 +++++++++++++++++++++++++++++ thermal_info_config_slider.json | 29 +++++++++++++++++++++++++++++ thermal_info_config_whitefin.json | 29 +++++++++++++++++++++++++++++ 4 files changed, 116 insertions(+) diff --git a/thermal_info_config_oriole.json b/thermal_info_config_oriole.json index afa79f0..a2e12e5 100644 --- a/thermal_info_config_oriole.json +++ b/thermal_info_config_oriole.json @@ -295,6 +295,35 @@ "Multiplier":1, "Monitor":false }, + { + "Name":"critical-battery-cell", + "Type":"BCL_VOLTAGE", + "VirtualSensor":true, + "Formula":"COUNT_THRESHOLD", + "TriggerSensor": "vdroop1", + "Combination":[ + "battery", + "battery_cycle", + "vdroop1" + ], + "Coefficient":[ + "-10000", + "400", + "1200" + ], + "HotThreshold":[ + "NAN", + "NAN", + "NAN", + "NAN", + "NAN", + 3.00, + "NAN" + ], + "VrThreshold":"NAN", + "Multiplier":1, + "Monitor":true + }, { "Name":"FLASH_LED_REDUCE", "Type":"UNKNOWN", diff --git a/thermal_info_config_raven.json b/thermal_info_config_raven.json index 872b284..b6689c5 100644 --- a/thermal_info_config_raven.json +++ b/thermal_info_config_raven.json @@ -295,6 +295,35 @@ "Multiplier":1, "Monitor":false }, + { + "Name":"critical-battery-cell", + "Type":"BCL_VOLTAGE", + "VirtualSensor":true, + "Formula":"COUNT_THRESHOLD", + "TriggerSensor": "vdroop1", + "Combination":[ + "battery", + "battery_cycle", + "vdroop1" + ], + "Coefficient":[ + "-10000", + "400", + "1200" + ], + "HotThreshold":[ + "NAN", + "NAN", + "NAN", + "NAN", + "NAN", + 3.00, + "NAN" + ], + "VrThreshold":"NAN", + "Multiplier":1, + "Monitor":true + }, { "Name":"FLASH_LED_REDUCE", "Type":"UNKNOWN", diff --git a/thermal_info_config_slider.json b/thermal_info_config_slider.json index b4c90a0..b2735b9 100644 --- a/thermal_info_config_slider.json +++ b/thermal_info_config_slider.json @@ -102,6 +102,35 @@ "Multiplier":0.001, "Monitor":false }, + { + "Name":"critical-battery-cell", + "Type":"BCL_VOLTAGE", + "VirtualSensor":true, + "Formula":"COUNT_THRESHOLD", + "TriggerSensor": "smpl_gm", + "Combination":[ + "battery", + "battery_cycle", + "smpl_gm" + ], + "Coefficient":[ + "-10000", + "400", + "1400" + ], + "HotThreshold":[ + "NAN", + "NAN", + "NAN", + "NAN", + "NAN", + 3.00, + "NAN" + ], + "VrThreshold":"NAN", + "Multiplier":1, + "Monitor":true + }, { "Name":"FLASH_LED_REDUCE", "Type":"UNKNOWN", diff --git a/thermal_info_config_whitefin.json b/thermal_info_config_whitefin.json index b4c90a0..b2735b9 100644 --- a/thermal_info_config_whitefin.json +++ b/thermal_info_config_whitefin.json @@ -102,6 +102,35 @@ "Multiplier":0.001, "Monitor":false }, + { + "Name":"critical-battery-cell", + "Type":"BCL_VOLTAGE", + "VirtualSensor":true, + "Formula":"COUNT_THRESHOLD", + "TriggerSensor": "smpl_gm", + "Combination":[ + "battery", + "battery_cycle", + "smpl_gm" + ], + "Coefficient":[ + "-10000", + "400", + "1400" + ], + "HotThreshold":[ + "NAN", + "NAN", + "NAN", + "NAN", + "NAN", + 3.00, + "NAN" + ], + "VrThreshold":"NAN", + "Multiplier":1, + "Monitor":true + }, { "Name":"FLASH_LED_REDUCE", "Type":"UNKNOWN",