summaryrefslogtreecommitdiff
path: root/thermalConfig.cpp
diff options
context:
space:
mode:
authorPriyansh Jain <priyjain@codeaurora.org>2021-09-20 17:29:05 +0530
committerPriyansh Jain <priyjain@codeaurora.org>2021-09-20 20:52:16 +0530
commita26aeb407eee68a32437b73995b3e7aa4eb8b8cf (patch)
treefb77e831c66617e9003cdc9ac2560667c07ecfab /thermalConfig.cpp
parent9e1b3262bb55a7cc2acc0b31621a95c03dcac6e2 (diff)
thermal-hal: Add support for Diwali configuration
Add support for waipio configuration to include all the CPU, GPU, NSP, skin, battery and BCL configurations. Change-Id: I99dff1225e87c8510f39da491be3097e7fabdecf
Diffstat (limited to 'thermalConfig.cpp')
-rw-r--r--thermalConfig.cpp25
1 files changed, 24 insertions, 1 deletions
diff --git a/thermalConfig.cpp b/thermalConfig.cpp
index ed65346..63bb619 100644
--- a/thermalConfig.cpp
+++ b/thermalConfig.cpp
@@ -741,6 +741,18 @@ namespace implementation {
95000,
true,
},
+ };
+
+ std::vector<struct target_therm_cfg> waipio_specific = {
+ {
+ TemperatureType::BCL_CURRENT,
+ { "pm8350b-ibat-lvl0" },
+ "ibat",
+ 6000,
+ 7500,
+ 6000,
+ true,
+ },
{
TemperatureType::SKIN,
{ "xo-therm" },
@@ -752,7 +764,7 @@ namespace implementation {
},
};
- std::vector<struct target_therm_cfg> waipio_specific = {
+ std::vector<struct target_therm_cfg> diwali_specific = {
{
TemperatureType::BCL_CURRENT,
{ "pm8350b-ibat-lvl0" },
@@ -762,6 +774,15 @@ namespace implementation {
6000,
true,
},
+ {
+ TemperatureType::SKIN,
+ { "quiet-therm" },
+ "skin",
+ 40000,
+ 95000,
+ 40000,
+ true,
+ },
};
struct target_therm_cfg bat_conf = {
@@ -831,6 +852,7 @@ namespace implementation {
{515, sensor_cfg_yupik}, // YUPIK-LTE
{457, waipio_common}, //Waipio
{482, waipio_common}, //Waipio
+ {506, waipio_common}, //diwali
};
const std::unordered_map<int, std::vector<struct target_therm_cfg>>
@@ -844,6 +866,7 @@ namespace implementation {
{450, shima_specific}, // shima
{457, waipio_specific}, //Waipio
{482, waipio_specific}, //Waipio
+ {506, diwali_specific}, //diwali
};
std::vector<struct target_therm_cfg> add_target_config(