From 39ff74035adc9fe28715e7000e7fe48e8e2b5fe4 Mon Sep 17 00:00:00 2001 From: Nitesh Kumar Date: Thu, 9 Mar 2023 13:15:29 +0530 Subject: thermal-hal: Add support for hal specific configuration. Add support for hal configuration to include CPU, GPU, and adc senosors. Change-Id: Id0f7cfa2b0eb9a3dec3aad30042fd8eb8d8baa65 Signed-off-by: Nitesh Kumar --- thermalConfig.cpp | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/thermalConfig.cpp b/thermalConfig.cpp index bc114a8..a1aeee3 100644 --- a/thermalConfig.cpp +++ b/thermalConfig.cpp @@ -256,6 +256,54 @@ namespace implementation { }, }; + std::vector cpu_sensors_monaco = + { + "cpuss-0", + "cpuss-1", + "cpuss-0", + "cpuss-1", + }; + + std::vector sensor_cfg_monaco = + { + { + TemperatureType::CPU, + cpu_sensors_monaco, + "", + 95000, + 115000, + 95000, + true, + }, + { + TemperatureType::GPU, + { "gpu" }, + "gpu", + 95000, + 115000, + 95000, + true, + }, + { + TemperatureType::SKIN, + { "pa-therm0" }, + "skin", + 40000, + 95000, + 40000, + true, + }, + { + TemperatureType::BCL_CURRENT, + { "pm5100-ibat-lvl0" }, + "ibat", + 1100, + 1500, + 1100, + true, + }, + }; + std::vector cpu_sensors_lito = { "cpu-0-0-usr", @@ -1096,6 +1144,8 @@ namespace implementation { {601, kalama_common}, //Kalamap_sg {603, kalama_common}, //Kalama_qcs {604, kalama_common}, //Kalama_qcm + {486, sensor_cfg_monaco}, // monaco + {517, sensor_cfg_monaco}, // monaco }; const std::unordered_map> -- cgit v1.2.3