diff options
author | Minghao Zhang <quic_minghao@quicinc.com> | 2022-08-25 22:40:53 +0800 |
---|---|---|
committer | chrisl7 <wandersonrodriguesf1@gmail.com> | 2023-02-25 16:41:43 -0800 |
commit | 50c50578fd436fe37a8a14f218449a8d09f834b9 (patch) | |
tree | b88b99deb814962c1a2a312e19502ba9578e597a /thermalConfig.cpp | |
parent | 2225ef8d165924fdb7f0437d4ef9143e2fbebb42 (diff) |
thermal-hal: Add thermal HAL 2.0 support for talos and variants
Add thermal HAL 2.0 support for talos and variants.
Change-Id: Idd56b4dfd2441957914f7c6df301a19b50bbaed0
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
Diffstat (limited to 'thermalConfig.cpp')
-rw-r--r-- | thermalConfig.cpp | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/thermalConfig.cpp b/thermalConfig.cpp index 4b4c10d..9df29ff 100644 --- a/thermalConfig.cpp +++ b/thermalConfig.cpp @@ -116,6 +116,61 @@ namespace implementation { }, }; + std::vector<std::string> cpu_sensors_talos = + { + "cpuss-2-usr", + "cpuss-2-usr", + "cpuss-1-usr", + "cpuss-1-usr", + "cpuss-0-usr", + "cpuss-0-usr", + "cpu-1-0-usr", + "cpu-1-2-usr", + }; + + std::vector<struct target_therm_cfg> sensor_cfg_talos_common = + { + { + TemperatureType::CPU, + cpu_sensors_talos, + "", + 95000, + 115000, + 95000, + true, + }, + { + TemperatureType::GPU, + { "gpu-usr" }, + "gpu", + 95000, + 115000, + 95000, + true, + }, + { + TemperatureType::SKIN, + { "xo-therm-adc" }, + "skin", + 40000, + 95000, + 40000, + true, + }, + }; + + std::vector<struct target_therm_cfg> sensor_cfg_talos_specific = { + { + TemperatureType::BCL_PERCENTAGE, + { "soc" }, + "soc", + 10, + 2, + 10, + false, + }, + }; + std::vector<std::string> cpu_sensors_monaco = { "cpuss-0-usr", @@ -1231,6 +1286,9 @@ namespace implementation { {364, sensor_cfg_439}, {416, sensor_cfg_439}, {437, sensor_cfg_439}, + {355, sensor_cfg_talos_common}, + {377, sensor_cfg_talos_common}, + {380, sensor_cfg_talos_common}, {321, sensor_cfg_sdm845}, {341, sensor_cfg_sdm845}, {417, sensor_cfg_bengal}, // bengal @@ -1288,6 +1346,7 @@ namespace implementation { const std::unordered_map<int, std::vector<struct target_therm_cfg>> msm_soc_specific = { + {355, sensor_cfg_talos_specific}, {339, sensor_cfg_msmnile_specific}, {361, sensor_cfg_msmnile_specific}, {362, sensor_cfg_msmnile_specific}, @@ -1314,6 +1373,8 @@ namespace implementation { const std::unordered_map<int, bool> battery_bcl_cfg_disable_map = { {367, true}, + {377, true}, + {380, true}, }; std::vector<struct target_therm_cfg> add_target_config( |