From 3269c3e47fdb4bb9b666b82dbcf0511e4dbd8167 Mon Sep 17 00:00:00 2001 From: David Chao Date: Thu, 16 Mar 2023 14:41:40 +0800 Subject: [PATCH] thermal: seperate thermal config for charging - Separate thermal config for charger mode and remove the unused thermal throttling. Bug: 272701980 Test: charging throttling worked properly in charger. Change-Id: I6a13fccd5981cef561d02fddbb19847801e34883 --- device-akita.mk | 3 +- thermal_info_config_charge_akita.json | 64 +++++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 thermal_info_config_charge_akita.json diff --git a/device-akita.mk b/device-akita.mk index 42652a8..48555af 100644 --- a/device-akita.mk +++ b/device-akita.mk @@ -76,7 +76,8 @@ DEVICE_MANIFEST_FILE += \ # Thermal Config PRODUCT_COPY_FILES += \ - device/google/akita/thermal_info_config_akita.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json + device/google/akita/thermal_info_config_akita.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \ + device/google/akita/thermal_info_config_charge_akita.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_charge.json # Power HAL config PRODUCT_COPY_FILES += \ diff --git a/thermal_info_config_charge_akita.json b/thermal_info_config_charge_akita.json new file mode 100644 index 0000000..03b11c3 --- /dev/null +++ b/thermal_info_config_charge_akita.json @@ -0,0 +1,64 @@ +{ + "Sensors":[ + { + "Name":"battery", + "Type":"BATTERY", + "HotThreshold":[ + "NAN", + "NAN", + "NAN", + "NAN", + "NAN", + "NAN", + "60.0" + ], + "VrThreshold":"NAN", + "Multiplier":0.001 + }, + { + "Name":"LITTLE", + "Type":"CPU", + "HotThreshold":[ + "NAN", + "NAN", + "NAN", + "NAN", + "NAN", + "NAN", + 115.0 + ], + "VrThreshold":"NAN", + "Multiplier":0.001 + }, + { + "Name":"MID", + "Type":"CPU", + "HotThreshold":[ + "NAN", + "NAN", + "NAN", + "NAN", + "NAN", + "NAN", + 115.0 + ], + "VrThreshold":"NAN", + "Multiplier":0.001 + }, + { + "Name":"G3D", + "Type":"GPU", + "HotThreshold":[ + "NAN", + "NAN", + "NAN", + "NAN", + "NAN", + "NAN", + 115.0 + ], + "VrThreshold":"NAN", + "Multiplier":0.001 + } + ] +}