thermal: usb thermal throttle in off charging mode
Fix the issue that device not trigger usb throttle in off mode charging. Bug: 344445952 Test: Build and flash on device, verify with uart. Change-Id: Ic6d453b1cab4614f8f6b42a9b6f5fe521a98101d Signed-off-by: Peter (YM) <peterym@google.com>
This commit is contained in:
parent
de87dbfa64
commit
8f730bc927
1 changed files with 29 additions and 0 deletions
|
@ -182,6 +182,35 @@
|
||||||
"LimitInfo": [0, 1, 1, 1, 1, 26, 26]
|
"LimitInfo": [0, 1, 1, 1, 1, 26, 26]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"USB-MINUS-CHARGER",
|
||||||
|
"Type":"UNKNOWN",
|
||||||
|
"VirtualSensor":true,
|
||||||
|
"Formula":"WEIGHTED_AVG",
|
||||||
|
"Combination":["usb_pwr_therm", "charging_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_pwr_therm",
|
||||||
|
"Combination":["usb_pwr_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
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"CoolingDevices":[
|
"CoolingDevices":[
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue