summaryrefslogtreecommitdiffstats
path: root/ipmisensor.cpp
diff options
context:
space:
mode:
authorJayanth Othayoth <ojayanth@in.ibm.com>2017-04-18 21:22:13 -0500
committerJayanth Othayoth <ojayanth@in.ibm.com>2017-04-18 21:23:05 -0500
commit5422e0e9f96e2fd2591a3a8d89a78d427b0ac5a3 (patch)
tree07aaf279baaefa5e38e502e8d3a7f1f16159d4d0 /ipmisensor.cpp
parent4736b9176ceced0dc0261ceeff70eac5963f4411 (diff)
downloadphosphor-host-ipmid-5422e0e9f96e2fd2591a3a8d89a78d427b0ac5a3.zip
phosphor-host-ipmid-5422e0e9f96e2fd2591a3a8d89a78d427b0ac5a3.tar.gz
Add Sensor reading support for Power Cap.
Change-Id: I695c5a7e4da99b6ec1fe3045df91f483b6cad69c Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Diffstat (limited to 'ipmisensor.cpp')
-rw-r--r--ipmisensor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipmisensor.cpp b/ipmisensor.cpp
index 981859d..fab73d6 100644
--- a/ipmisensor.cpp
+++ b/ipmisensor.cpp
@@ -181,6 +181,8 @@ lookup_t g_ipmidbuslookup[] = {
{0xda, 0x00, set_sensor_dbus_state_simple, "setValue", "False", ""},
// Power Supply Derating
{0xb4, 0x00, set_sensor_dbus_state_simple, "setValue", "", ""},
+ // Power Cap
+ {0xC2, 0x00, set_sensor_dbus_state_simple, "setValue", "", ""},
{0x07, 0x07, set_sensor_dbus_state_simple, "setPresent", "True", "False"},
{0x07, 0x08, set_sensor_dbus_state_simple, "setFault", "True", "False"},
{0x0C, 0x06, set_sensor_dbus_state_simple, "setPresent", "True", "False"},
OpenPOWER on IntegriCloud