thermal-hal: Add thermal HAL 2.0 support for sdm710 family
Includes support for the following SoCs:
- SDM670
- SDM710
- SDM712
Referenced LA.UM.8.8.c25-04200-SDM710.0 thermal HAL.
Change-Id: Ia5c8eceefa691ad32269723203fc9a0b015b7525
Signed-off-by: Dakkshesh <dakkshesh5@gmail.com>
diff --git a/thermalConfig.cpp b/thermalConfig.cpp
index 7de0da3..ed7e73a 100644
--- a/thermalConfig.cpp
+++ b/thermalConfig.cpp
@@ -176,6 +176,66 @@
},
};
+ std::vector<std::string> cpu_sensors_sdm710 =
+ {
+ "cpu0-silver-usr",
+ "cpu1-silver-usr",
+ "cpu2-silver-usr",
+ "cpu3-silver-usr",
+ "cpu4-silver-usr",
+ "cpu5-silver-usr",
+ "cpu0-gold-usr",
+ "cpu1-gold-usr",
+ };
+
+ std::vector<struct target_therm_cfg> sensor_cfg_sdm710 = {
+ {
+ TemperatureType::CPU,
+ cpu_sensors_sdm710,
+ "",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::GPU,
+ {"gpu0-usr"},
+ "gpu0",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::GPU,
+ {"gpu1-usr"},
+ "gpu1",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::SKIN,
+ {"xo-therm-adc"},
+ "skin",
+ 55000,
+ 95000,
+ 55000,
+ true,
+ },
+ {
+ TemperatureType::BCL_PERCENTAGE,
+ {"soc"},
+ "soc",
+ 10,
+ 2,
+ 10,
+ false,
+ },
+ };
+
std::vector<std::string> cpu_sensors_sdm845 =
{
"cpu0-silver-usr",
@@ -1834,6 +1894,9 @@
{416, sensor_cfg_439},
{437, sensor_cfg_439},
{349, sensor_cfg_sdm632},
+ {336, sensor_cfg_sdm710}, // SDM670
+ {360, sensor_cfg_sdm710}, // SDM710
+ {393, sensor_cfg_sdm710}, // SDM712
{321, sensor_cfg_sdm845},
{341, sensor_cfg_sdm845},
{417, sensor_cfg_bengal}, // bengal