diff options
author | Ram Chandrasekar <rkumbako@codeaurora.org> | 2021-04-06 13:24:53 -0700 |
---|---|---|
committer | Ram Chandrasekar <rkumbako@codeaurora.org> | 2021-04-26 15:51:06 -0700 |
commit | 8b04bc95585a452da6daf307e920301ed98aa6fe (patch) | |
tree | 23a3a1354b7afcf320e6f1b704360e29ca9f932b /thermalConfig.cpp | |
parent | 14a48f515dc2ceb54a365de5d51d5bd4a0466630 (diff) |
thermal-hal: Add support for Waipio configuration
Add support for waipio configuration to include all the CPU, GPU, NSP,
skin, battery and BCL configurations.
Change-Id: I028b936d54e751feec7ddcd79742060d19de23c3
Diffstat (limited to 'thermalConfig.cpp')
-rw-r--r-- | thermalConfig.cpp | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/thermalConfig.cpp b/thermalConfig.cpp index 7602120..c7086a5 100644 --- a/thermalConfig.cpp +++ b/thermalConfig.cpp @@ -674,6 +674,96 @@ namespace implementation { }, }; + std::vector<std::string> cpu_sensors_waipio = + { + "cpu-0-0", + "cpu-0-1", + "cpu-0-2", + "cpu-0-3", + "cpu-1-0", + "cpu-1-2", + "cpu-1-4", + "cpu-1-6", + }; + + std::vector<struct target_therm_cfg> waipio_common = { + { + TemperatureType::CPU, + cpu_sensors_waipio, + "", + 95000, + 115000, + 95000, + true, + }, + { + TemperatureType::GPU, + { "gpuss-0" }, + "GPU0", + 95000, + 115000, + 95000, + true, + }, + { + TemperatureType::GPU, + { "gpuss-1" }, + "GPU1", + 95000, + 115000, + 95000, + true, + }, + { + TemperatureType::NPU, + { "nspss-0" }, + "nsp0", + 95000, + 115000, + 95000, + true, + }, + { + TemperatureType::NPU, + { "nspss-1" }, + "nsp1", + 95000, + 115000, + 95000, + true, + }, + { + TemperatureType::NPU, + { "nspss-2" }, + "nsp2", + 95000, + 115000, + 95000, + true, + }, + { + TemperatureType::SKIN, + { "xo-therm" }, + "skin", + 55000, + 95000, + 55000, + true, + }, + }; + + std::vector<struct target_therm_cfg> waipio_specific = { + { + TemperatureType::BCL_CURRENT, + { "pm8350b-ibat-lvl0" }, + "ibat", + 6000, + 7500, + 6000, + true, + }, + }; + struct target_therm_cfg bat_conf = { TemperatureType::BATTERY, { "battery" }, @@ -739,6 +829,8 @@ namespace implementation { {454, sensor_cfg_holi}, // holi {475, sensor_cfg_yupik}, // yupik {515, sensor_cfg_yupik}, // YUPIK-LTE + {457, waipio_common}, //Waipio + {482, waipio_common}, //Waipio }; const std::unordered_map<int, std::vector<struct target_therm_cfg>> @@ -750,6 +842,8 @@ namespace implementation { {501, lahaina_specific}, {502, lahaina_specific}, {450, shima_specific}, // shima + {457, waipio_specific}, //Waipio + {482, waipio_specific}, //Waipio }; std::vector<struct target_therm_cfg> add_target_config( |