summaryrefslogtreecommitdiffstats
path: root/pysystemmgr
diff options
context:
space:
mode:
Diffstat (limited to 'pysystemmgr')
-rw-r--r--pysystemmgr/system_manager.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/pysystemmgr/system_manager.py b/pysystemmgr/system_manager.py
index a26c325..5ecc14f 100644
--- a/pysystemmgr/system_manager.py
+++ b/pysystemmgr/system_manager.py
@@ -179,6 +179,16 @@ class SystemManager(DbusProperties, DbusObjectManager):
r = [obmc.enums.GPIO_DEV, gpio_num, gpio['direction']]
return r
+ @dbus.service.method(DBUS_NAME, in_signature='',
+ out_signature='sa(sb)a(sb)')
+ def getPowerConfiguration(self):
+ power_good_in = System.POWER_CONFIG.get('power_good_in', '')
+ power_up_outs = System.POWER_CONFIG.get('power_up_outs', [])
+ reset_outs = System.POWER_CONFIG.get('reset_outs', [])
+ r = [power_good_in, power_up_outs, reset_outs]
+ print "Power GPIO config: " + str(r)
+ return r
+
if __name__ == '__main__':
dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
OpenPOWER on IntegriCloud