thermal-hal: Add thermal HAL 2.0 support for shima
Add thermal HAL 2.0 support for shima target. It shares
the same lahaina sensor configurations except skin sensor.
Add all lahaina variants soc id to thermal HAL 2.0.
Change-Id: Ibb128da49d1e2a9daf36cdf304764e3409429d13
diff --git a/thermalConfig.cpp b/thermalConfig.cpp
index b6682d8..93d1daf 100644
--- a/thermalConfig.cpp
+++ b/thermalConfig.cpp
@@ -251,14 +251,53 @@
},
};
- std::vector<struct target_therm_cfg> lahaina_specific = {
+ std::vector<std::string> cpu_sensors_lahaina =
+ {
+ "cpu-0-0-usr",
+ "cpu-0-1-usr",
+ "cpu-0-2-usr",
+ "cpu-0-3-usr",
+ "cpu-1-0-usr",
+ "cpu-1-2-usr",
+ "cpu-1-4-usr",
+ "cpu-1-6-usr",
+ };
+
+ std::vector<struct target_therm_cfg> lahaina_common = {
+ {
+ TemperatureType::CPU,
+ cpu_sensors_lahaina,
+ "",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::GPU,
+ { "gpuss-0-usr" },
+ "GPU0",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::GPU,
+ { "gpuss-1-usr" },
+ "GPU1",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
{
TemperatureType::BCL_CURRENT,
{ "pm8350b-ibat-lvl0" },
"ibat",
- 4500,
- 5000,
- 4500,
+ 6000,
+ 7500,
+ 6000,
true,
},
{
@@ -290,6 +329,30 @@
},
};
+ std::vector<struct target_therm_cfg> lahaina_specific = {
+ {
+ TemperatureType::SKIN,
+ { "skin-msm-therm-usr" },
+ "skin",
+ 40000,
+ 95000,
+ 40000,
+ true,
+ },
+ };
+
+ std::vector<struct target_therm_cfg> shima_specific = {
+ {
+ TemperatureType::SKIN,
+ { "quiet-therm-usr" },
+ "skin",
+ 40000,
+ 95000,
+ 40000,
+ true,
+ },
+ };
+
struct target_therm_cfg bat_conf = {
TemperatureType::BATTERY,
{ "battery" },
@@ -328,7 +391,10 @@
{407, sensor_cfg_lito}, // atoll
{434, sensor_cfg_lito}, // lagoon
{356, kona_common}, // kona
- {415, kona_common}, // lahaina
+ {415, lahaina_common}, // lahaina
+ {439, lahaina_common}, // lahainap
+ {456, lahaina_common}, // lahaina-atp
+ {450, lahaina_common}, // shima
{454, sensor_cfg_holi}, // holi
};
@@ -336,6 +402,9 @@
msm_soc_specific = {
{356, kona_specific}, // kona
{415, lahaina_specific}, // lahaina
+ {439, lahaina_specific}, // lahainap
+ {456, lahaina_specific}, // lahaina-atp
+ {450, shima_specific}, // shima
};
std::vector<struct target_therm_cfg> add_target_config(