thermal: Apply thermalhal PID 2.0 am: 51bffd2371 am: 22872ad711

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

Change-Id: I7c3c8fdaaf4e573908102408d987a0a253cab964
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
TeYuan Wang 2022-04-20 16:28:22 +00:00 committed by Automerger Merge Worker
commit 71b879abdb
2 changed files with 5 additions and 1 deletions

View file

@ -904,6 +904,9 @@ on post-fs-data
mkdir /data/vendor/powerstats 0771 system system
chown system system /data/vendor/powerstats
on late-init && property:ro.boot.hw.soc.rev=0
setprop vendor.thermal.config "thermal_info_config_A0.json"
on property:vendor.thermal.link_ready=1
# BCL
write /sys/devices/virtual/pmic/mitigation/clock_ratio/tpu_light_clk_ratio 0xfff041c1 #DFS

View file

@ -1028,8 +1028,9 @@ PRODUCT_PACKAGES += \
include device/google/gs101/telephony/pktrouter.mk
# Thermal HAL
include hardware/google/pixel/thermal/device.mk
PRODUCT_PROPERTY_OVERRIDES += persist.vendor.enable.thermal.genl=true
include hardware/google/pixel/thermal/device.mk
$(call soong_config_set,thermal_hal_feature,pid,apply_2_0)
## TPU packages
include device/google/gs201/edgetpu/edgetpu.mk