From 5fc9937d002007e853f8cbb2779f10da7ed5f873 Mon Sep 17 00:00:00 2001 From: Priyansh Jain Date: Mon, 10 Oct 2022 10:34:27 +0530 Subject: 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 --- thermalConfig.cpp | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) 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 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 ravelin_common = { + { + TemperatureType::CPU, + cpu_sensors_parrot, + "", + 95000, + 115000, + 95000, + true, + }, + { + TemperatureType::GPU, + { "gpuss" }, + "GPU", + 95000, + 115000, + 95000, + true, + }, + }; + + std::vector 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 -- cgit v1.2.3