summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>2021-05-25 23:43:09 +0530
committerchrisl7 <wandersonrodriguesf1@gmail.com>2023-02-25 16:40:24 -0800
commitffd812bff5dab55dad2cc4833f4c069fa67e005c (patch)
tree8ec2eca399868a3acaeb367d2a07cc89508dcd8f
parent42b713cb5f98e1c3f0557bc0f829ee34cdf934cc (diff)
thermal-hal: Add thermal HAL 2.0 support for monaco
Add thermal HAL 2.0 support for monaco. Change-Id: I2e4c97718e851aa29cdb335c551d296248d065c4 Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
-rw-r--r--thermalConfig.cpp49
1 files changed, 49 insertions, 0 deletions
diff --git a/thermalConfig.cpp b/thermalConfig.cpp
index 872365c..0ebc4f4 100644
--- a/thermalConfig.cpp
+++ b/thermalConfig.cpp
@@ -116,6 +116,54 @@ namespace implementation {
},
};
+ std::vector<std::string> cpu_sensors_monaco =
+ {
+ "cpuss-0-usr",
+ "cpuss-1-usr",
+ "cpuss-0-usr",
+ "cpuss-1-usr",
+ };
+
+ std::vector<struct target_therm_cfg> sensor_cfg_monaco =
+ {
+ {
+ TemperatureType::CPU,
+ cpu_sensors_monaco,
+ "",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::GPU,
+ { "gpu-usr" },
+ "gpu",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::SKIN,
+ { "quiet-therm-usr" },
+ "skin",
+ 40000,
+ 95000,
+ 40000,
+ true,
+ },
+ {
+ TemperatureType::BCL_CURRENT,
+ { "pm5100-ibat-lvl0" },
+ "ibat",
+ 1100,
+ 1500,
+ 1100,
+ true,
+ },
+ };
+
std::vector<std::string> cpu_sensors_sdm845 =
{
"cpu0-silver-usr",
@@ -1221,6 +1269,7 @@ namespace implementation {
{507, sensor_cfg_holi}, // blair
{475, sensor_cfg_yupik}, // yupik
{515, sensor_cfg_yupik}, // YUPIK-LTE
+ {486, sensor_cfg_monaco}, // monaco
{457, waipio_common}, //Waipio
{482, waipio_common}, //Waipio
{552, waipio_common}, //Waipio-LTE