thermal: Separate thermal config on basis of hardware revision.

Due to change in power rail naming b/297343909 split the thermal info
config for proto separately from later hardware versions.

Bug: 314047297
Test: Build and verify thermal logs on proto and evt devices.
Change-Id: I9cc4570f7d983dd9b3554aea636fc50a00eefd62
This commit is contained in:
sashwinbalaji 2023-12-04 10:56:01 +08:00
parent beb34e606e
commit 06a07b8216
4 changed files with 865 additions and 8 deletions

View file

@ -44,6 +44,12 @@ on init && property:ro.bootmode=factory
write /sys/devices/platform/hall_sensor/enable 0
# Thermal
on late-init && property:ro.boot.hardware.revision=PROTO1.0
setprop vendor.thermal.config "thermal_info_config_proto.json"
on late-init && property:ro.boot.hardware.revision=PROTO1.1
setprop vendor.thermal.config "thermal_info_config_proto.json"
on property:vendor.thermal.link_ready=1
chown system system /dev/thermal/tz-by-name/charger_therm/trip_point_0_temp
chown system system /dev/thermal/tz-by-name/charger_therm/trip_point_0_hyst