gs101: move charger thermalHAL setup into common code am: 88fb3bfe07
am: 1af01d23c2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/18910875 Change-Id: I1eabfde0a5aa734f0bbeb5205f230e2c98e014c6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
f66bf2fe25
1 changed files with 0 additions and 9 deletions
|
@ -989,19 +989,10 @@ on property:vendor.thermal.link_ready=1
|
||||||
chown system system /dev/thermal/cdev-by-name/wlc_fcc/cur_state
|
chown system system /dev/thermal/cdev-by-name/wlc_fcc/cur_state
|
||||||
chown system system /dev/thermal/cdev-by-name/usbc-port/cur_state
|
chown system system /dev/thermal/cdev-by-name/usbc-port/cur_state
|
||||||
|
|
||||||
# Create thermal symlink in off charging mode
|
|
||||||
on charger
|
on charger
|
||||||
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
|
|
||||||
write /proc/vendor_sched/sys_uclamp_min 0
|
write /proc/vendor_sched/sys_uclamp_min 0
|
||||||
write /proc/vendor_sched/sys_prefer_idle 0
|
write /proc/vendor_sched/sys_prefer_idle 0
|
||||||
|
|
||||||
# Launch thermal hal in off charging mode
|
|
||||||
on charger && property:vendor.thermal.link_ready=1
|
|
||||||
start vendor.thermal-hal-2-0
|
|
||||||
|
|
||||||
on property:vendor.disable.bcl.control=1
|
on property:vendor.disable.bcl.control=1
|
||||||
write /sys/devices/virtual/pmic/mitigation/instruction/enable_mitigation 0
|
write /sys/devices/virtual/pmic/mitigation/instruction/enable_mitigation 0
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue