summaryrefslogtreecommitdiff
path: root/thermalConfig.cpp
diff options
context:
space:
mode:
authorNitesh Kumar <quic_nitekuma@quicinc.com>2022-08-19 14:22:39 +0530
committerJake Weinstein <jake@aospa.co>2023-03-09 01:13:27 +0900
commit643921c5f5fbbae647a7f258abcbdb7d06cbe1e0 (patch)
tree3176db36dd58fe1ce913d198ea4704986a037ab9 /thermalConfig.cpp
parent8775d586c1f1fc315f0b451201733c3151394522 (diff)
thermal-hal: Add support for anorak configuration.
Add support for anorak configuration to include CPU, GPU, NPU, BCL and skin. Change-Id: Ie52be4e0daa027d31ca1b0ff07b0906307ce975e Signed-off-by: Nitesh Kumar <quic_nitekuma@quicinc.com>
Diffstat (limited to 'thermalConfig.cpp')
-rw-r--r--thermalConfig.cpp149
1 files changed, 149 insertions, 0 deletions
diff --git a/thermalConfig.cpp b/thermalConfig.cpp
index d2142ba..9ea7176 100644
--- a/thermalConfig.cpp
+++ b/thermalConfig.cpp
@@ -1458,6 +1458,153 @@ namespace implementation {
},
};
+ std::vector<std::string> cpu_sensors_anorak =
+ {
+ "cpu-0-0-0",
+ "cpu-0-0-1",
+ "cpu-0-1-0",
+ "cpu-0-1-1",
+ "cpu-1-0-0",
+ "cpu-1-0-1",
+ "cpu-1-1-0",
+ "cpu-1-1-1",
+ "cpu-1-2-0",
+ "cpu-1-2-1",
+ "cpu-1-3-0",
+ "cpu-1-3-1",
+ };
+
+ std::vector<struct target_therm_cfg> anorak_common = {
+ {
+ TemperatureType::CPU,
+ cpu_sensors_anorak,
+ "",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::NPU,
+ { "nspss-0" },
+ "nsp0",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::NPU,
+ { "nspss-1" },
+ "nsp1",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::NPU,
+ { "nspss-2" },
+ "nsp2",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::GPU,
+ { "gpuss-0" },
+ "GPU0",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::GPU,
+ { "gpuss-1" },
+ "GPU1",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::GPU,
+ { "gpuss-2" },
+ "GPU2",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::GPU,
+ { "gpuss-3" },
+ "GPU3",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::GPU,
+ { "gpuss-4" },
+ "GPU4",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::GPU,
+ { "gpuss-5" },
+ "GPU5",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::GPU,
+ { "gpuss-6" },
+ "GPU6",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::GPU,
+ { "gpuss-7" },
+ "GPU7",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ };
+ std::vector<struct target_therm_cfg> anorak_specific = {
+ {
+ TemperatureType::BCL_CURRENT,
+ { "pm8550b-ibat-lvl0" },
+ "ibat",
+ 9000,
+ 10000,
+ 9000,
+ true,
+ },
+ {
+ TemperatureType::SKIN,
+ { "sys-therm-0" },
+ "skin",
+ 55000,
+ 95000,
+ 55000,
+ true,
+ },
+ };
+
struct target_therm_cfg bat_conf = {
TemperatureType::BATTERY,
{ "battery" },
@@ -1555,6 +1702,7 @@ namespace implementation {
{525, neo_common},
{554, neo_common},
{537, parrot_common},
+ {549, anorak_common},
{519, kalama_common}, //Kalama
{536, kalama_common}, //Kalamap
{600, kalama_common}, //Kalama_sg
@@ -1584,6 +1732,7 @@ namespace implementation {
{531, waipio_specific}, // cape
{540, waipio_specific}, // cape
{537, parrot_specific},
+ {549, anorak_specific},
{519, kalama_specific}, //Kalama
{536, kalama_specific}, //Kalamap
{600, kalama_specific}, //Kalama_sg