summaryrefslogtreecommitdiff
path: root/thermalConfig.cpp
diff options
context:
space:
mode:
authorPriyansh Jain <quic_priyjain@quicinc.com>2022-08-17 14:05:26 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2022-09-01 00:41:04 -0700
commit3388cdfc0160858358f4d7fbecd126efa22a4f6c (patch)
tree66a541878f328038c76233e2d58f932100c9fb02 /thermalConfig.cpp
parent7888701519c755d88bbb1bb7b072e3e375c16493 (diff)
thermal-hal: Add CPU, GPU, bcl sensors for khaje
Add CPU, GPU, Skin and BCL sensors for khaje. Change-Id: If41cd0474b68f7ddbeb01dbdd0fe46d06099ea70 Signed-off-by: Priyansh Jain <quic_priyjain@quicinc.com>
Diffstat (limited to 'thermalConfig.cpp')
-rw-r--r--thermalConfig.cpp70
1 files changed, 70 insertions, 0 deletions
diff --git a/thermalConfig.cpp b/thermalConfig.cpp
index 266f46b..b6d6594 100644
--- a/thermalConfig.cpp
+++ b/thermalConfig.cpp
@@ -113,6 +113,75 @@ namespace implementation {
},
};
+ std::vector<std::string> cpu_sensors_khaje =
+ {
+ "cpuss-0",
+ "cpuss-1",
+ "cpuss-2",
+ "cpu-1-0",
+ "cpu-1-1",
+ "cpu-1-2",
+ "cpu-1-3",
+ };
+
+ std::vector<struct target_therm_cfg> sensor_cfg_khaje =
+ {
+ {
+ TemperatureType::CPU,
+ cpu_sensors_khaje,
+ "",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::GPU,
+ { "gpu" },
+ "GPU",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::SKIN,
+ { "xo-therm" },
+ "skin",
+ 40000,
+ 95000,
+ 40000,
+ true,
+ },
+ {
+ TemperatureType::BCL_VOLTAGE,
+ { "pm7250b-vbat-lvl0" },
+ "vbat",
+ 3000,
+ 2800,
+ 3000,
+ false,
+ },
+ {
+ TemperatureType::BCL_CURRENT,
+ { "pm7250b-ibat-lvl0" },
+ "ibat",
+ 5500,
+ 6000,
+ 5500,
+ true,
+ },
+ {
+ TemperatureType::BCL_PERCENTAGE,
+ { "soc" },
+ "soc",
+ 10,
+ 2,
+ 10,
+ false,
+ },
+ };
+
std::vector<std::string> cpu_sensors_trinket =
{
"cpuss-0-usr",
@@ -978,6 +1047,7 @@ namespace implementation {
{445, sensor_cfg_bengal},
{469, sensor_cfg_bengal},
{470, sensor_cfg_bengal},
+ {518, sensor_cfg_khaje}, //khaje
{394, sensor_cfg_trinket},
{467, sensor_cfg_trinket},
{468, sensor_cfg_trinket},