thermal: bringup USBC throttling policy
Bug: 302055505 Test: verified by emul_temp Change-Id: I9b887e3bbd4c12e62b7e5b5cf4077b84ea7ae8ad
This commit is contained in:
parent
a46df7384a
commit
40db64d8b9
1 changed files with 60 additions and 0 deletions
|
@ -25,6 +25,21 @@
|
|||
"PollingDelay":300000,
|
||||
"PassiveDelay":7000
|
||||
},
|
||||
{
|
||||
"Name":"usb_conn_therm",
|
||||
"Type":"UNKNOWN",
|
||||
"HotThreshold":["NAN", 46.0, "NAN", "NAN", "NAN", "NAN", "NAN"],
|
||||
"TempPath":"/dev/thermal/tz-by-name/usb_conn_therm/tz_temp",
|
||||
"Multiplier":0.001,
|
||||
"PollingDelay":300000,
|
||||
"PassiveDelay":7000
|
||||
},
|
||||
{
|
||||
"Name":"charger_therm",
|
||||
"Type":"UNKNOWN",
|
||||
"TempPath":"/dev/thermal/tz-by-name/charger_therm/tz_temp",
|
||||
"Multiplier":0.001
|
||||
},
|
||||
{
|
||||
"Name":"LITTLE",
|
||||
"Type":"CPU",
|
||||
|
@ -69,6 +84,51 @@
|
|||
],
|
||||
"VrThreshold":"NAN",
|
||||
"Multiplier":0.001
|
||||
},
|
||||
{
|
||||
"Name":"USB-MINUS-CHARGER",
|
||||
"Type":"UNKNOWN",
|
||||
"VirtualSensor":true,
|
||||
"TriggerSensor": "usb_conn_therm",
|
||||
"Formula":"WEIGHTED_AVG",
|
||||
"Combination":["usb_conn_therm", "charger_therm"],
|
||||
"Coefficient":[1.0, -1.0],
|
||||
"Multiplier":0.001
|
||||
},
|
||||
{
|
||||
"Name":"VIRTUAL-USB-THROTTLING",
|
||||
"Type":"USB_PORT",
|
||||
"Version":"0.1",
|
||||
"VirtualSensor":true,
|
||||
"Formula":"COUNT_THRESHOLD",
|
||||
"TriggerSensor": "usb_conn_therm",
|
||||
"Combination":["usb_conn_therm", "USB-MINUS-CHARGER"],
|
||||
"Coefficient":[46000, 7000],
|
||||
"HotThreshold":["NAN", "NAN", "NAN", "NAN", "2.0", "NAN", "NAN"],
|
||||
"BindedCdevInfo": [
|
||||
{
|
||||
"CdevRequest": "usbc-port",
|
||||
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
|
||||
}
|
||||
],
|
||||
"Multiplier":1,
|
||||
"PollingDelay":300000,
|
||||
"PassiveDelay":7000
|
||||
},
|
||||
{
|
||||
"Name":"VIRTUAL-USB-UI",
|
||||
"Type":"USB_PORT",
|
||||
"Version":"0.1",
|
||||
"VirtualSensor":true,
|
||||
"Formula":"COUNT_THRESHOLD",
|
||||
"TriggerSensor": "usb_conn_therm",
|
||||
"Combination":["usb_conn_therm", "USB-MINUS-CHARGER"],
|
||||
"Coefficient":[46000, 10000],
|
||||
"HotThreshold":["NAN", "NAN", "NAN", "NAN", "NAN", "2.0", "NAN"],
|
||||
"Multiplier":1,
|
||||
"SendCallback":true,
|
||||
"PollingDelay":300000,
|
||||
"PassiveDelay":7000
|
||||
}
|
||||
],
|
||||
"CoolingDevices":[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue