thermal-hal: Add HAL v2 support for sdm632
Add cpu and sensor configs for sdm632.
Change-Id: I37e5b6d09f189c9831a52de0cec52c54adc3ecb0
(cherry picked from commit 2b0a0a9b85bb038f61cfeecbcfe1eb8c67749ae6)
diff --git a/thermalConfig.cpp b/thermalConfig.cpp
index 1b00a24..3e983b9 100644
--- a/thermalConfig.cpp
+++ b/thermalConfig.cpp
@@ -60,6 +60,64 @@
"cpuss0-usr",
};
+ std::vector<struct target_therm_cfg> sensor_cfg_sdm632 =
+ {
+ {
+ TemperatureType::CPU,
+ cpu_sensors_439,
+ "",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::GPU,
+ { "gpu0-usr" },
+ "GPU",
+ 95000,
+ 115000,
+ 95000,
+ true,
+ },
+ {
+ TemperatureType::SKIN,
+ { "xo-therm-adc" },
+ "skin",
+ 40000,
+ 95000,
+ 40000,
+ true,
+ },
+ {
+ TemperatureType::BCL_VOLTAGE,
+ { "pmi-vbat-lvl0" },
+ "vbat",
+ 3200,
+ 3000,
+ 3200,
+ false,
+ },
+ {
+ TemperatureType::BCL_CURRENT,
+ { "pmi-ibat-lvl0" },
+ "ibat",
+ 4200,
+ 4400,
+ 4200,
+ true,
+ },
+ {
+ TemperatureType::BCL_PERCENTAGE,
+ { "soc" },
+ "soc",
+ 10,
+ 2,
+ 10,
+ false,
+ },
+ };
+
std::vector<struct target_therm_cfg> sensor_cfg_439 =
{
{
@@ -1735,6 +1793,7 @@
{364, sensor_cfg_439},
{416, sensor_cfg_439},
{437, sensor_cfg_439},
+ {349, sensor_cfg_sdm632},
{321, sensor_cfg_sdm845},
{341, sensor_cfg_sdm845},
{417, sensor_cfg_bengal}, // bengal