thermal: add thermal sensors for panel audio throttling

Add panel-audio-therm for audio hal to detect Tskin temperature and sdm-therm to detect system power.
Bug: 143265000
Test: Panel audio throttling can be triggered
Change-Id: I5e0d659deca4d50d7a142b2efbf030c284de8784
This commit is contained in:
TeYuan Wang
2020-05-12 10:15:46 +08:00
committed by Cyan_Hsieh
parent 1d8d3a2925
commit d6616de80c
2 changed files with 53 additions and 0 deletions

View File

@@ -31,3 +31,7 @@ on property:sys.retaildemo.enabled=1
on property:sys.retaildemo.enabled=0
write /sys/class/thermal/cdev-by-name/dc_icl/cur_state 0
on late-init
chown system system /sys/devices/virtual/thermal/tz-by-name/panel-audio-therm/trip_point_0_temp
chown system system /sys/devices/virtual/thermal/tz-by-name/panel-audio-therm/trip_point_0_hyst

View File

@@ -244,6 +244,55 @@
"VrThreshold":"NAN",
"Multiplier":0.001,
"Monitor":true
},
{
"Name":"panel-audio-therm",
"Type":"UNKNOWN",
"HotThreshold":[
"NAN",
"41.0",
"NAN",
"NAN",
"NAN",
"NAN",
"NAN"
],
"HotHysteresis":[
0.0,
1.9,
0.0,
0.0,
0.0,
0.0,
0.0
],
"VrThreshold":"NAN",
"Multiplier":0.001,
"Monitor":true
},
{
"Name":"sdm-therm",
"Type":"UNKNOWN",
"HotThreshold":[
"NAN",
"NAN",
"NAN",
"NAN",
"NAN",
"NAN",
"NAN"
],
"HotHysteresis":[
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"VrThreshold":"NAN",
"Multiplier":0.001
}
],
"CoolingDevices":[