thermal: move charger thermal HAL setup into project am: f121ec6625 am: 59a427c887

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/19638879

Change-Id: Ia2e793d099e3e6a28bb2270b5832aff7651ce5e7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
David Chao 2022-08-22 20:39:33 +00:00 committed by Automerger Merge Worker
commit 1fe98d0174

View file

@ -975,6 +975,18 @@ on charger
write /proc/vendor_sched/sys_uclamp_min 0
write /proc/vendor_sched/sys_prefer_idle 0
# 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