thermal: add cellular-emergency thermal zone in thermlhal config

define cellular-emergency thermal zone as POWER_AMPLIFIER TYPE
for limited service throttling

Bug: 151359760
Test: pts-tradefed run pts -m PtsThermalHalTestCases
      cellular-emergency thermal zone can be enabled/disabled by persist.vendor.disable.thermal.control
Change-Id: I2c9140358df9054d21d511296d32c93e10c0b570
This commit is contained in:
TeYuan Wang 2020-03-30 12:00:04 +08:00 committed by Cyan_Hsieh
parent 3f35e78887
commit d9effae456
2 changed files with 27 additions and 0 deletions

View File

@ -23,6 +23,7 @@ on property:init.svc.vendor.thermal-engine=stopped && property:persist.vendor.di
on property:persist.vendor.disable.thermal.control=1
write /sys/devices/virtual/thermal/tz-by-name/skin-therm-adc/mode disabled
write /sys/devices/virtual/thermal/tz-by-name/skin-therm-monitor/mode disabled
write /sys/devices/virtual/thermal/tz-by-name/cellular-emergency/mode disabled
write /sys/devices/virtual/thermal/tz-by-name/sdm-therm/mode disabled
write /sys/devices/virtual/thermal/tz-by-name/usbc-therm-adc/mode disabled
write /sys/devices/virtual/thermal/tz-by-name/usbc-therm-monitor/mode disabled
@ -31,6 +32,7 @@ on property:persist.vendor.disable.thermal.control=1
on property:persist.vendor.disable.thermal.control=0
write /sys/devices/virtual/thermal/tz-by-name/skin-therm-adc/mode enabled
write /sys/devices/virtual/thermal/tz-by-name/skin-therm-monitor/mode enabled
write /sys/devices/virtual/thermal/tz-by-name/cellular-emergency/mode enabled
write /sys/devices/virtual/thermal/tz-by-name/sdm-therm/mode enabled
write /sys/devices/virtual/thermal/tz-by-name/usbc-therm-adc/mode enabled
write /sys/devices/virtual/thermal/tz-by-name/usbc-therm-monitor/mode enabled

View File

@ -220,6 +220,31 @@
"Multiplier":0.001,
"Monitor":true
},
{
"Name":"cellular-emergency",
"Type":"POWER_AMPLIFIER",
"HotThreshold":[
"NAN",
"NAN",
"NAN",
"NAN",
"NAN",
"51.0",
"NAN"
],
"HotHysteresis":[
0.0,
0.0,
0.0,
0.0,
0.0,
1.9,
0.0
],
"VrThreshold":"NAN",
"Multiplier":0.001,
"Monitor":true
},
{
"Name":"usbc-therm-monitor",
"Type":"USB_PORT",