Add IPMI sensor for Turbo Allowed.

Change-Id: I2b84147e4dae5bb0ef1ea4b58b80e3bd152f5389
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
diff --git a/configs/Witherspoon.py b/configs/Witherspoon.py
index a1ee566..40f82e2 100644
--- a/configs/Witherspoon.py
+++ b/configs/Witherspoon.py
@@ -293,6 +293,7 @@
         0x02 : '/org/openbmc/sensors/host/OperatingSystemStatus',
         0x04 : '<inventory_root>/system/chassis/motherboard/pcielink',
         0xD8 : '/org/openbmc/sensors/host/PowerSupplyRedundancy',
+        0xda : '/org/openbmc/sensors/host/TurboAllowed',
     },
     'GPIO_PRESENT' : {}
 }
@@ -494,6 +495,7 @@
         'os_path' : '/sys/class/hwmon/hwmon3/user_powercap' },
     # Garrison value is used, need to get from P9 XML.
     0xD8 : { 'class' : 'PowerSupplyRedundancySensor'},
+    0xda : { 'class' : 'TurboAllowedSensor' },
 }
 
 # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
diff --git a/pystatemgr/discover_system_state.py b/pystatemgr/discover_system_state.py
index e25e66e..b05af60 100644
--- a/pystatemgr/discover_system_state.py
+++ b/pystatemgr/discover_system_state.py
@@ -43,6 +43,10 @@
         'bus_name': 'org.openbmc.Sensors',
         'object_name': '/org/openbmc/sensors/host/PowerSupplyRedundancy',
         'interface_name': 'org.freedesktop.DBus.Properties'
+    'turboallowed': {
+        'bus_name': 'org.openbmc.Sensors',
+        'object_name': '/org/openbmc/sensors/host/TurboAllowed',
+        'interface_name': 'org.openbmc.SensorValue'
     },
 }