From a7ac805b407617f7a83eb152ff823f44d243a9b2 Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Wed, 21 Sep 2016 09:17:05 -0400 Subject: configs: Remove gpio code from config files Move to a new obmc.system module. Change-Id: Ie02a4b2c14cfcf272d8823d44fb9d7c03b796c87 Signed-off-by: Brad Bishop --- configs/Garrison.py | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'configs/Garrison.py') diff --git a/configs/Garrison.py b/configs/Garrison.py index 56e3392..133bad8 100644 --- a/configs/Garrison.py +++ b/configs/Garrison.py @@ -1,6 +1,3 @@ -GPIO_BASE = 320 - - ## System states ## state can change to next state in 2 ways: ## - a process emits a GotoSystemState signal with state name to goto @@ -347,18 +344,6 @@ GPIO_CONFIG['PS1_PRES_N'] = \ GPIO_CONFIG['CARD_PRES_N'] = \ {'gpio_pin': 'J0', 'direction': 'in'} - - - -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 - - HWMON_CONFIG = { '4-0050' : { 'names' : { -- cgit v1.2.1