thermal: cellular mitigation on critical battery
Enable cellular mitigation on critical battery condition.
Bug: 181572536
Test: Local Test
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I310c3b67bc6a7f83a724005665eeda50b29469f7
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
@@ -296,6 +296,35 @@
"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",
"VirtualSensor":true,
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
@@ -296,6 +296,35 @@
"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",
"VirtualSensor":true,
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
@@ -103,6 +103,35 @@
"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",
"VirtualSensor":true,
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
@@ -103,6 +103,35 @@
"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",
"VirtualSensor":true,