summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJayanth Othayoth <ojayanth@in.ibm.com>2017-03-27 08:19:18 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-03-30 20:28:58 +0000
commitd5b2ac0e5d5decac55e7ed4be989e3d57a45c35e (patch)
treec7cd4cfa031fc99de7fa6c47571b855506cb2156
parent917454bb139be75f656ddfa451e5036fc24ce640 (diff)
downloadphosphor-host-ipmid-d5b2ac0e5d5decac55e7ed4be989e3d57a45c35e.tar.gz
phosphor-host-ipmid-d5b2ac0e5d5decac55e7ed4be989e3d57a45c35e.zip
Add Sensor Reading Support for Power Supply Derating
Change-Id: I0eb106c37c33db01937ec61dd5553b5799651633 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
-rw-r--r--ipmisensor.cpp4
-rw-r--r--sensorhandler.cpp1
2 files changed, 4 insertions, 1 deletions
diff --git a/ipmisensor.cpp b/ipmisensor.cpp
index 64fe0a7..981859d 100644
--- a/ipmisensor.cpp
+++ b/ipmisensor.cpp
@@ -179,6 +179,8 @@ lookup_t g_ipmidbuslookup[] = {
{0xe9, 0x01, set_sensor_dbus_state_simple, "setValue", "Enabled", ""}, // OCC Active 1
// Turbo Allowed
{0xda, 0x00, set_sensor_dbus_state_simple, "setValue", "False", ""},
+ // Power Supply Derating
+ {0xb4, 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"},
@@ -200,7 +202,7 @@ lookup_t g_ipmidbuslookup[] = {
{0x12, 0x02, set_sensor_dbus_state_system_event, "setValue", "", ""},
{0x12, 0x03, set_sensor_dbus_state_system_event, "setValue", "", ""},
{0x12, 0x04, set_sensor_dbus_state_system_event, "setValue", "", ""},
- {0xD8, 0x00, set_sensor_dbus_state_simple, "setValue", "Disabled", ""},
+ {0xD8, 0x00, set_sensor_dbus_state_simple, "setValue", "Disabled", ""},
{0xFF, 0xFF, NULL, "", "", ""}
};
diff --git a/sensorhandler.cpp b/sensorhandler.cpp
index 121f1f0..38f84d4 100644
--- a/sensorhandler.cpp
+++ b/sensorhandler.cpp
@@ -42,6 +42,7 @@ sensorTypemap_t g_SensorTypeMap[] = {
{0xC2, 0x6F, "PowerCap"},
{0xD8, 0x03, "PowerSupplyRedundancy"},
{0xDA, 0x03, "TurboAllowed"},
+ {0xB4, 0x6F, "PowerSupplyDerating"},
{0xFF, 0x00, ""},
};
OpenPOWER on IntegriCloud