summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGopala Krishna Nuthaki <gnuthaki@codeaurora.org>2021-05-04 12:06:53 +0530
committerchrisl7 <wandersonrodriguesf1@gmail.com>2023-02-25 16:40:08 -0800
commit8525dcd13a63775733a2c84c6b9103b3864755ca (patch)
tree91ead75dd83fe1192ae2520f4475a4b4cba25ce4
parent33dea78c986e2c49203b82f0ff9b248d85b10692 (diff)
thermal-hal: Add thermal HAL 2.0 support for sdm845
Add thermal HAL 2.0 support for sdm845. Change-Id: If942a342ccca11c68c351b9b67326bf0198dbf6c Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
-rw-r--r--thermalConfig.cpp62
1 files changed, 62 insertions, 0 deletions
diff --git a/thermalConfig.cpp b/thermalConfig.cpp
index 56810a2..434d49e 100644
--- a/thermalConfig.cpp
+++ b/thermalConfig.cpp
@@ -116,6 +116,66 @@ namespace implementation {
},
};
+ std::vector<std::string> cpu_sensors_sdm845 =
+ {
+ "cpu0-silver-usr",
+ "cpu1-silver-usr",
+ "cpu2-silver-usr",
+ "cpu3-silver-usr",
+ "cpu0-gold-usr",
+ "cpu1-gold-usr",
+ "cpu2-gold-usr",
+ "cpu3-gold-usr",
+ };
+
+ std::vector<struct target_therm_cfg> sensor_cfg_sdm845 = {
+ {
+ TemperatureType::CPU,
+ cpu_sensors_sdm845,
+ "",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::GPU,
+ {"gpu0-usr"},
+ "gpu0",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::GPU,
+ {"gpu1-usr"},
+ "gpu1",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::SKIN,
+ {"xo-therm-adc"},
+ "skin",
+ 40000,
+ 95000,
+ 40000,
+ true,
+ },
+ {
+ TemperatureType::BCL_PERCENTAGE,
+ {"soc"},
+ "soc",
+ 10,
+ 2,
+ 10,
+ false,
+ },
+ };
+
std::vector<std::string> cpu_sensors_bengal =
{
"cpuss-2-usr",
@@ -1120,6 +1180,8 @@ namespace implementation {
{364, sensor_cfg_439},
{416, sensor_cfg_439},
{437, sensor_cfg_439},
+ {321, sensor_cfg_sdm845},
+ {341, sensor_cfg_sdm845},
{417, sensor_cfg_bengal}, // bengal
{420, sensor_cfg_bengal},
{444, sensor_cfg_bengal},