PSUSensor: Add MAX11615 supports
Add device MAX11615 reading support.
Test case: MAX11615 can be read via PSU sensor service.
Change-Id: I2127c749eb2c371050190bb0737d59a1975434da
Signed-off-by: Ian Chien <ianchien.wiwynn@gmail.com>
diff --git a/src/PSUSensorMain.cpp b/src/PSUSensorMain.cpp
index 94ef530..2b159c3 100644
--- a/src/PSUSensorMain.cpp
+++ b/src/PSUSensorMain.cpp
@@ -97,6 +97,7 @@
{"LTC4287", I2CDeviceType{"ltc4287", true}},
{"MAX5970", I2CDeviceType{"max5970", true}},
{"MAX11607", I2CDeviceType{"max11607", false}},
+ {"MAX11615", I2CDeviceType{"max11615", false}},
{"MAX11617", I2CDeviceType{"max11617", false}},
{"MAX16601", I2CDeviceType{"max16601", true}},
{"MAX20710", I2CDeviceType{"max20710", true}},
@@ -1084,6 +1085,7 @@
{"vin", PSUProperty("Input Voltage", 300, 0, 3, 0)},
{"maxvin", PSUProperty("Max Input Voltage", 300, 0, 3, 0)},
{"in_voltage", PSUProperty("Output Voltage", 255, 0, 3, 0)},
+ {"voltage", PSUProperty("Output Voltage", 255, 0, 3, 0)},
{"vout", PSUProperty("Output Voltage", 255, 0, 3, 0)},
{"vmon", PSUProperty("Auxiliary Input Voltage", 255, 0, 3, 0)},
{"in", PSUProperty("Output Voltage", 255, 0, 3, 0)},