PSUSensorMain.cpp: Add support for ADM1266 device.
Tested:
- Combined with related driver and entity-manager changes from
https://gerrit.openbmc-project.xyz/c/openbmc/entity-manager/+/40860,
sensors properly show up in IPMI sensors.
Signed-off-by: Avenash Asai Thambi <avenash.thambi@fii-usa.com>
Change-Id: Ide4c90027a1ef8b5df4adeeb8450ccce3da29dd7
diff --git a/src/PSUSensorMain.cpp b/src/PSUSensorMain.cpp
index e31eb1b..2cb4df8 100644
--- a/src/PSUSensorMain.cpp
+++ b/src/PSUSensorMain.cpp
@@ -40,7 +40,8 @@
static constexpr bool debug = false;
-static constexpr std::array<const char*, 25> sensorTypes = {
+static constexpr std::array<const char*, 26> sensorTypes = {
+ "xyz.openbmc_project.Configuration.ADM1266",
"xyz.openbmc_project.Configuration.ADM1272",
"xyz.openbmc_project.Configuration.ADM1275",
"xyz.openbmc_project.Configuration.ADM1278",
@@ -68,11 +69,11 @@
"xyz.openbmc_project.Configuration.TPS546D24"};
static std::vector<std::string> pmbusNames = {
- "adm1272", "adm1275", "adm1278", "dps800", "ina219",
- "ina230", "ipsps1", "isl68137", "isl68220", "isl68223",
- "isl69243", "isl69260", "lm25066", "max16601", "max20710",
- "max20730", "max20734", "max20796", "max34451", "pmbus",
- "pxe1610", "raa228000", "raa228228", "raa229004", "tps546d24"};
+ "adm1266", "adm1272", "adm1275", "adm1278", "dps800", "ina219",
+ "ina230", "ipsps1", "isl68137", "isl68220", "isl68223", "isl69243",
+ "isl69260", "lm25066", "max16601", "max20710", "max20730", "max20734",
+ "max20796", "max34451", "pmbus", "pxe1610", "raa228000", "raa228228",
+ "raa229004", "tps546d24"};
namespace fs = std::filesystem;