thermal-hal: Add support for neo configuration
Add support for neo configuration to include all the CPU, GPU, NSP.
Change-Id: Ie0e63def4e5456cd8c45593ba1d388f1af7ed051
diff --git a/thermalConfig.cpp b/thermalConfig.cpp
index 17ce31a..da29b76 100644
--- a/thermalConfig.cpp
+++ b/thermalConfig.cpp
@@ -785,6 +785,71 @@
},
};
+ std::vector<std::string> cpu_sensors_neo =
+ {
+ "cpu-0-0",
+ "cpu-0-1",
+ "cpu-0-2",
+ "cpu-0-3",
+ };
+
+ std::vector<struct target_therm_cfg> neo_common = {
+ {
+ TemperatureType::CPU,
+ cpu_sensors_neo,
+ "",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::GPU,
+ { "gpuss-0" },
+ "GPU0",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::GPU,
+ { "gpuss-1" },
+ "GPU1",
+ 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,
+ },
+ };
+
struct target_therm_cfg bat_conf = {
TemperatureType::BATTERY,
{ "battery" },
@@ -857,6 +922,8 @@
{530, waipio_common}, // cape
{531, waipio_common}, // cape
{540, waipio_common}, // cape
+ {525, neo_common},
+ {554, neo_common},
};
const std::unordered_map<int, std::vector<struct target_therm_cfg>>