diff options
author | Minghao Zhang <minghao@codeaurora.org> | 2020-11-16 09:52:40 +0800 |
---|---|---|
committer | Minghao Zhang <minghao@codeaurora.org> | 2020-11-16 09:52:40 +0800 |
commit | 035f95ecd2d0dbd54ed7ab55f3b7a942f58b2807 (patch) | |
tree | a3b95d0a5426b2c6cdb2cb73cc1e5144e5804509 | |
parent | 7273761a6e729d63b8983adee08cac52c8adb3ba (diff) |
thermal-hal: Add thermal HAL 2.0 support for sm8150 and variants
Add thermal HAL 2.0 support for sm8150 and variants.
Change-Id: I2ec6290dfe5def2b7e240932bc8ff5e8214fb2b4
-rw-r--r-- | thermalConfig.cpp | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/thermalConfig.cpp b/thermalConfig.cpp index 52d6944..34c0d36 100644 --- a/thermalConfig.cpp +++ b/thermalConfig.cpp @@ -302,6 +302,72 @@ namespace implementation { "cpu-1-3-usr", }; + std::vector<struct target_therm_cfg> sensor_cfg_msmnile = { + { + TemperatureType::CPU, + cpu_sensors_kona, + "", + 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::SKIN, + { "xo-therm" }, + "skin", + 40000, + 95000, + 40000, + true, + }, + { + TemperatureType::BCL_CURRENT, + { "pm8150b-ibat-lvl0" }, + "ibat", + 4500, + 5000, + 4500, + true, + }, + { + TemperatureType::BCL_VOLTAGE, + { "pm8150b-vbat-lvl0" }, + "vbat", + 3200, + 3000, + 3200, + false, + }, + { + TemperatureType::BCL_PERCENTAGE, + { "soc" }, + "soc", + 10, + 2, + 10, + false, + }, + }; + std::vector<struct target_therm_cfg> kona_common = { { TemperatureType::CPU, @@ -525,6 +591,10 @@ namespace implementation { {366, sensor_cfg_sdmmagpie}, {434, sensor_cfg_lito}, // lagoon {476, sensor_cfg_lito}, // orchid + {339, sensor_cfg_msmnile}, + {361, sensor_cfg_msmnile}, + {362, sensor_cfg_msmnile}, + {367, sensor_cfg_msmnile}, {356, kona_common}, // kona {415, lahaina_common}, // lahaina {439, lahaina_common}, // lahainap |