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/pysystemmgr/obmc/system/__init__.py b/pysystemmgr/obmc/system/__init__.py
new file mode 100644
index 0000000..8799b69
--- /dev/null
+++ b/pysystemmgr/obmc/system/__init__.py
@@ -0,0 +1,9 @@
+GPIO_BASE = 320
+
+def convertGpio(name):
+ name = name.upper()
+ c = name[0:1]
+ offset = int(name[1:])
+ a = ord(c)-65
+ base = a*8+GPIO_BASE
+ return base+offset