From 03f56679b7c475c565b47cb48440d6b7e3b88f45 Mon Sep 17 00:00:00 2001 From: David Chao Date: Thu, 25 Aug 2022 16:13:59 +0800 Subject: [PATCH] thermal: seperate thermal config for charging Separate thermal config for charger mode and remove the unused thermal throttling. Bug: 243347663 Test: thermalHAL init completed in charger. Change-Id: I474d58d51ec715c90fcf4d8ad8d377db4e8e43f0 --- device-tangorpro.mk | 3 ++- thermal_info_config_charge_tangorpro.json | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 thermal_info_config_charge_tangorpro.json diff --git a/device-tangorpro.mk b/device-tangorpro.mk index 7c95903..b153c55 100644 --- a/device-tangorpro.mk +++ b/device-tangorpro.mk @@ -70,7 +70,8 @@ PRODUCT_COPY_FILES += \ # Thermal Config PRODUCT_COPY_FILES += \ - device/google/tangorpro/thermal_info_config_tangorpro.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json + device/google/tangorpro/thermal_info_config_tangorpro.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \ + device/google/tangorpro/thermal_info_config_charge_tangorpro.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_charge.json \ # Power HAL config PRODUCT_COPY_FILES += \ diff --git a/thermal_info_config_charge_tangorpro.json b/thermal_info_config_charge_tangorpro.json new file mode 100644 index 0000000..7ed0bc7 --- /dev/null +++ b/thermal_info_config_charge_tangorpro.json @@ -0,0 +1,9 @@ +{ + "Sensors":[ + { + "Name":"battery", + "Type":"BATTERY", + "Multiplier":0.001 + } + ] +}