thermal: enable thermal engine for evt1.0 devices
New version of thermal engine (Powerlink v2) uses ODPM data for thermal mitigation. But proto devices does not support ODPM. Currently we have disabled thermal mitigation for all A0 based devices through a separate config, thermal_info_config_A0.json. This change restricts using separate thermal config only for the proto devices and uses thermal_info_config.json for the rest. Fix a format issue with qi-quiet sensor definition. Bug: 196478280 Test: Build and boot on device. Check thermal config Signed-off-by: Sayanna Chandula <sayanna@google.com> Change-Id: I0922e935cafe118f3437335e2a72b87aae6f6009
This commit is contained in:
parent
74b13c4c45
commit
1f98950323
7 changed files with 11 additions and 5 deletions
|
@ -82,6 +82,12 @@ on property:persist.vendor.se.ese2.mode=ctsmode
|
|||
on init && property:ro.boot.hw.soc.rev=0
|
||||
setprop vendor.powerhal.config powerhint-a0.json
|
||||
|
||||
on property:ro.boot.hardware.revision=PROTO1.0
|
||||
setprop vendor.thermal.config "thermal_info_config_proto.json"
|
||||
|
||||
on property:ro.boot.hardware.revision=PROTO1.1
|
||||
setprop vendor.thermal.config "thermal_info_config_proto.json"
|
||||
|
||||
# Touch
|
||||
on property:vendor.device.modules.ready=1
|
||||
chown system system /proc/focaltech_touch/Channel_Num
|
||||
|
|
|
@ -110,7 +110,7 @@ DEVICE_MANIFEST_FILE += \
|
|||
# Thermal Config
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/google/pantah/thermal_info_config_cheetah.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \
|
||||
device/google/pantah/thermal_info_config_A0.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_A0.json
|
||||
device/google/pantah/thermal_info_config_proto.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_proto.json
|
||||
|
||||
# Power HAL config
|
||||
PRODUCT_COPY_FILES += \
|
||||
|
|
|
@ -80,7 +80,7 @@ DEVICE_MANIFEST_FILE += \
|
|||
# Thermal Config
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/google/pantah/thermal_info_config_cloudripper.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \
|
||||
device/google/pantah/thermal_info_config_A0.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_A0.json
|
||||
device/google/pantah/thermal_info_config_proto.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_proto.json
|
||||
|
||||
# Power HAL config
|
||||
PRODUCT_COPY_FILES += \
|
||||
|
|
|
@ -98,7 +98,7 @@ DEVICE_MANIFEST_FILE += \
|
|||
# Thermal Config
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/google/pantah/thermal_info_config_panther.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \
|
||||
device/google/pantah/thermal_info_config_A0.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_A0.json
|
||||
device/google/pantah/thermal_info_config_proto.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_proto.json
|
||||
|
||||
# Power HAL config
|
||||
PRODUCT_COPY_FILES += \
|
||||
|
|
|
@ -85,7 +85,7 @@ DEVICE_MANIFEST_FILE += \
|
|||
# Thermal Config
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/google/pantah/thermal_info_config_ravenclaw.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \
|
||||
device/google/pantah/thermal_info_config_A0.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_A0.json
|
||||
device/google/pantah/thermal_info_config_proto.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_proto.json
|
||||
|
||||
# Power HAL config
|
||||
PRODUCT_COPY_FILES += \
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
"Formula":"WEIGHTED_AVG",
|
||||
"Combination":["qi_therm", "quiet_therm"],
|
||||
"Coefficient":[0.3, 0.7],
|
||||
"Offset":-1400,
|
||||
"Offset":-1400
|
||||
},
|
||||
{
|
||||
"Name":"VIRTUAL-QI-DISP",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue