thermal: support usb overheat protection
Base on EVT 1.0 test result to support the USB thermal protection 1. When usb_therm > 46 degC start monitor 2. When usb_therm - charger_therm >= 10 degC, change usbc-port to 1 3. When usb_therm - charger_therm >= 13 degC, trigger VIRTUAL-USB-UI polling 4. When usb_therm - charger_therm <= 7 degC, change usbc_prot to 0 Create thermal config for proto to prevent wrong usb throttle on proto device Bug: 278035350 Test: push the test script into device and run thermal_recorder to record the behavior. Detail is in the bug Change-Id: I326dc22083efc1bd1af9a47451bf927e26006b85 Signed-off-by: Peter (YM) <peterym@google.com>
This commit is contained in:
parent
dd450afe80
commit
c2010f1a9b
6 changed files with 885 additions and 8 deletions
|
@ -33,6 +33,13 @@ on post-fs-data
|
|||
# Speaker amp permission
|
||||
chmod 644 /mnt/vendor/persist/audio/speaker.cal
|
||||
|
||||
# Thermal
|
||||
on property:ro.boot.hardware.revision=PROTO1.0
|
||||
setprop vendor.thermal.config "thermal_info_config_proto.json"
|
||||
|
||||
on property:ro.boot.hardware.revision=PROTO1.1
|
||||
setprop vendor.thermal.config "thermal_info_config_proto.json"
|
||||
|
||||
# Bluetooth
|
||||
on post-fs-data
|
||||
chown bluetooth system /proc/bluetooth/timesync
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue