From 0661beb1dd93711ce684450997d21da8b64c729d Mon Sep 17 00:00:00 2001 From: Jayanth Othayoth Date: Wed, 22 Mar 2017 06:00:58 -0500 Subject: Sensor Reading Support for Turbo Allowed Change-Id: Ib2e89383fa1da4d3216ad5c50d257ec973547b71 Signed-off-by: Jayanth Othayoth --- ipmisensor.cpp | 4 +++- sensorhandler.cpp | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ipmisensor.cpp b/ipmisensor.cpp index 0a19221..64fe0a7 100644 --- a/ipmisensor.cpp +++ b/ipmisensor.cpp @@ -177,6 +177,8 @@ lookup_t g_ipmidbuslookup[] = { {0xe9, 0x00, set_sensor_dbus_state_simple, "setValue", "Disabled", ""}, // OCC Inactive 0 {0xe9, 0x01, set_sensor_dbus_state_simple, "setValue", "Enabled", ""}, // OCC Active 1 + // Turbo Allowed + {0xda, 0x00, set_sensor_dbus_state_simple, "setValue", "False", ""}, {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"}, @@ -198,7 +200,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 5ac17d1..121f1f0 100644 --- a/sensorhandler.cpp +++ b/sensorhandler.cpp @@ -41,6 +41,7 @@ sensorTypemap_t g_SensorTypeMap[] = { {0xC7, 0x03, "MAIN_PLANAR"}, {0xC2, 0x6F, "PowerCap"}, {0xD8, 0x03, "PowerSupplyRedundancy"}, + {0xDA, 0x03, "TurboAllowed"}, {0xFF, 0x00, ""}, }; -- cgit v1.2.1