configs: Remove gpio code from config files
Move to a new obmc.system module.
Change-Id: Ie02a4b2c14cfcf272d8823d44fb9d7c03b796c87
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/pytools/gpioutil b/pytools/gpioutil
index 58e02e6..0654cd9 100644
--- a/pytools/gpioutil
+++ b/pytools/gpioutil
@@ -4,6 +4,7 @@
import os
import getopt
import obmc_system_config as System
+import obmc.system
def printUsage():
@@ -114,9 +115,9 @@
elif opt in ("-v"):
value = arg
elif opt in ("-p"):
- gpio_name = System.convertGpio(arg)
+ gpio_name = obmc.system.convertGpio(arg)
elif opt in ("-l"):
- gpio_name = System.convertGpio(arg)
+ gpio_name = obmc.system.convertGpio(arg)
print gpio_name
exit(0)
@@ -133,7 +134,7 @@
if (gpio_info.has_key('gpio_num')):
gpio_name = str(gpio_info['gpio_num'])
else:
- gpio_name = str(System.convertGpio(gpio_info['gpio_pin']))
+ gpio_name = str(obmc.system.convertGpio(gpio_info['gpio_pin']))
print "GPIO ID: "+gpio_name+"; DIRECTION: "+direction