Add Sensor Reading Support for Power Supply Derating

Change-Id: I0eb106c37c33db01937ec61dd5553b5799651633
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
diff --git a/ipmisensor.cpp b/ipmisensor.cpp
index 64fe0a7..981859d 100644
--- a/ipmisensor.cpp
+++ b/ipmisensor.cpp
@@ -179,6 +179,8 @@
 	{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 @@
 	{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 @@
     {0xC2, 0x6F, "PowerCap"},
     {0xD8, 0x03, "PowerSupplyRedundancy"},
     {0xDA, 0x03, "TurboAllowed"},
+    {0xB4, 0x6F, "PowerSupplyDerating"},
     {0xFF, 0x00, ""},
 };