summaryrefslogtreecommitdiff
path: root/thermalConfig.cpp
diff options
context:
space:
mode:
authorNitesh Kumar <quic_nitekuma@quicinc.com>2023-03-09 13:15:29 +0530
committerNitesh Kumar <quic_nitekuma@quicinc.com>2023-03-27 12:31:42 +0530
commit39ff74035adc9fe28715e7000e7fe48e8e2b5fe4 (patch)
treece498eadd44fb33ee5f3d35569eea2b23042f50e /thermalConfig.cpp
parentcff488aacc477fd94784e9544d807f105f2e85ee (diff)
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 <quic_nitekuma@quicinc.com>
Diffstat (limited to 'thermalConfig.cpp')
-rw-r--r--thermalConfig.cpp50
1 files changed, 50 insertions, 0 deletions
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<std::string> cpu_sensors_monaco =
+ {
+ "cpuss-0",
+ "cpuss-1",
+ "cpuss-0",
+ "cpuss-1",
+ };
+
+ std::vector<struct target_therm_cfg> 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<std::string> 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<int, std::vector<struct target_therm_cfg>>