thermal: Apply thermalhal PID 2.0

Bug: 196478280
Test: build
Change-Id: I59efbf09ee9a8584f0083db9f15924470f253479
This commit is contained in:
TeYuan Wang 2022-02-19 16:26:13 +08:00 committed by Wei Wang
parent 8187c419db
commit 51bffd2371
2 changed files with 5 additions and 1 deletions

View file

@ -906,6 +906,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

@ -1026,8 +1026,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