From 91f8937f1ff24fe93a9898d1b205469f87862328 Mon Sep 17 00:00:00 2001 From: David Chao Date: Fri, 19 Aug 2022 15:39:19 +0800 Subject: [PATCH] thermal: seperate thermal config for charging Separate thermal config for charger mode and remove the unused thermal throttling. Bug: 240897207 Test: thermalHAL init completed in charger. Change-Id: I6e0c6869969ae1e817db00e2492afb3aaa2fe43d --- device-felix.mk | 3 ++- thermal_info_config_charge_felix.json | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 thermal_info_config_charge_felix.json diff --git a/device-felix.mk b/device-felix.mk index 651bf90..c41084e 100644 --- a/device-felix.mk +++ b/device-felix.mk @@ -107,7 +107,8 @@ DEVICE_MANIFEST_FILE += \ # Thermal Config PRODUCT_COPY_FILES += \ - device/google/felix/thermal_info_config_felix.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json + device/google/felix/thermal_info_config_felix.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \ + device/google/felix/thermal_info_config_charge_felix.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_charge.json # Power HAL config PRODUCT_COPY_FILES += \ diff --git a/thermal_info_config_charge_felix.json b/thermal_info_config_charge_felix.json new file mode 100644 index 0000000..a023e76 --- /dev/null +++ b/thermal_info_config_charge_felix.json @@ -0,0 +1,10 @@ +{ + "Sensors":[ + { + "Name":"battery", + "Type":"BATTERY", + "HotThreshold":["NAN", "NAN", "NAN", "NAN", "NAN", "NAN", 60.0], + "Multiplier":0.001 + } + ] +}