diff options
author | Priyansh Jain <quic_priyjain@quicinc.com> | 2022-10-10 10:34:27 +0530 |
---|---|---|
committer | Jake Weinstein <jake@aospa.co> | 2023-03-09 01:13:27 +0900 |
commit | 5fc9937d002007e853f8cbb2779f10da7ed5f873 (patch) | |
tree | fc9f5272436937231c8247db94aecc921a89617f /thermalConfig.cpp | |
parent | 643921c5f5fbbae647a7f258abcbdb7d06cbe1e0 (diff) |
thermal-hal: Add support for ravelin configuration
Add support for ravelin configuration to include all the CPU, GPU,
skin, battery and BCL configurations.
Change-Id: Ia954d932dd19cd207a214f472c87eb5c78ee1ec1
Signed-off-by: Priyansh Jain <quic_priyjain@quicinc.com>
Diffstat (limited to 'thermalConfig.cpp')
-rw-r--r-- | thermalConfig.cpp | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/thermalConfig.cpp b/thermalConfig.cpp index 9ea7176..2fb1435 100644 --- a/thermalConfig.cpp +++ b/thermalConfig.cpp @@ -1605,6 +1605,59 @@ namespace implementation { }, }; + std::vector<std::string> cpu_sensors_ravelin = + { + "cpu-0-0", + "cpu-0-1", + "cpu-0-2", + "cpu-0-3", + "cpu-0-4", + "cpu-0-5", + "cpu-1-0", + "cpu-1-2", + }; + + std::vector<struct target_therm_cfg> ravelin_common = { + { + TemperatureType::CPU, + cpu_sensors_parrot, + "", + 95000, + 115000, + 95000, + true, + }, + { + TemperatureType::GPU, + { "gpuss" }, + "GPU", + 95000, + 115000, + 95000, + true, + }, + }; + + std::vector<struct target_therm_cfg> ravelin_specific = { + { + TemperatureType::BCL_CURRENT, + { "pm7250b-ibat-lvl0" }, + "ibat", + 6000, + 7500, + 6000, + true, + }, + { + TemperatureType::SKIN, + { "xo-therm" }, + "skin", + 55000, + 95000, + 55000, + true, + }, + }; struct target_therm_cfg bat_conf = { TemperatureType::BATTERY, { "battery" }, @@ -1703,6 +1756,9 @@ namespace implementation { {554, neo_common}, {537, parrot_common}, {549, anorak_common}, + {568, ravelin_common}, //Clarence Mobile + {581, ravelin_common}, //Clarence IOT + {582, ravelin_common}, //Clarence IOT without modem {519, kalama_common}, //Kalama {536, kalama_common}, //Kalamap {600, kalama_common}, //Kalama_sg @@ -1733,6 +1789,9 @@ namespace implementation { {540, waipio_specific}, // cape {537, parrot_specific}, {549, anorak_specific}, + {568, ravelin_specific}, //Clarence Mobile + {581, ravelin_specific}, //Clarence IOT + {582, ravelin_specific}, //Clarence IOT without modem {519, kalama_specific}, //Kalama {536, kalama_specific}, //Kalamap {600, kalama_specific}, //Kalama_sg |