Merge 4e0d875c3f1ad82c60381349632780cff521b59d on remote branch
Change-Id: Iaf084cbdbd0615a7ef3551f1f8f497ecf5ab83ca
diff --git a/thermalConfig.cpp b/thermalConfig.cpp
index 7bcf237..5cce38e 100644
--- a/thermalConfig.cpp
+++ b/thermalConfig.cpp
@@ -963,6 +963,153 @@
},
};
+ 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" },
@@ -1040,6 +1187,7 @@
{525, neo_common},
{554, neo_common},
{537, parrot_common},
+ {549, anorak_common},
};
const std::unordered_map<int, std::vector<struct target_therm_cfg>>
@@ -1061,6 +1209,7 @@
{531, waipio_specific}, // cape
{540, waipio_specific}, // cape
{537, parrot_specific},
+ {549, anorak_specific},
};
std::vector<struct target_therm_cfg> add_target_config(