thermal: move charger thermal HAL setup into project am: 0d14937aef
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19665235 Change-Id: I0ee8e5b22cda443deef897ad2a133a4233083bb0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
82e4c380c4
1 changed files with 13 additions and 0 deletions
|
@ -970,6 +970,19 @@ on property:vendor.thermal.link_ready=1
|
|||
chown system system /dev/thermal/cdev-by-name/chg_mdis/cur_state
|
||||
chown system system /dev/thermal/cdev-by-name/usbc-port/cur_state
|
||||
|
||||
on charger
|
||||
# Use charger thermal config
|
||||
setprop vendor.thermal.config "thermal_info_config_charge.json"
|
||||
|
||||
# Wait for insmod_sh to finish all common modules
|
||||
wait_for_prop vendor.common.modules.ready 1
|
||||
|
||||
# Create thermal symlink in off charging mode
|
||||
mkdir /dev/thermal 0750 system system
|
||||
mkdir /dev/thermal/tz-by-name 0750 system system
|
||||
mkdir /dev/thermal/cdev-by-name 0750 system system
|
||||
start vendor.thermal.symlinks
|
||||
|
||||
on property:vendor.disable.bcl.control=1
|
||||
write /sys/devices/virtual/pmic/mitigation/instruction/enable_mitigation 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue