added system config
diff --git a/bin/System/Barreleye.py b/bin/System/Barreleye.py
index 4106085..6e3ae7d 100644
--- a/bin/System/Barreleye.py
+++ b/bin/System/Barreleye.py
@@ -1,11 +1,10 @@
#! /usr/bin/python
-def Barreleye():
+def BarreleyeSensors():
config = {}
- config['/org/openbmc/Sensors/Temperature/Ambient/0'] = {
+ config['org.openbmc.sensors.Temperature.Ambient'] = {
'user_label': 'Ambient Temperature',
- 'bus_name': 'org.openbmc.Sensors.Temperature.Ambient',
'parameters': ['/dev/i2c0','0xA0'],
'poll_interval': 5000,
'lower_critical': 5,
@@ -13,15 +12,17 @@
'upper_warning' : 15,
'upper_critical': 20
}
- config['/org/openbmc/Sensors/HostStatus/0'] = {
- 'user_label': 'Host Status',
- 'bus_name': 'org.openbmc.Sensors.HostStatus',
- 'lower_critical': 5,
- 'lower_warning' : 10,
- 'upper_warning' : 15,
- 'upper_critical': 20
- }
-
-
return config
+def BarreleyeGpios():
+ gpio = {}
+ gpio['FSI_CLK'] = { 'gpio_num': 23, 'direction': 'out' }
+ gpio['FSI_DATA'] = { 'gpio_num': 24, 'direction': 'out' }
+ gpio['FSI_ENABLE'] = { 'gpio_num': 25, 'direction': 'out' }
+ gpio['POWER_PIN'] = { 'gpio_num': 26, 'direction': 'out' }
+ gpio['CRONUS_SEL'] = { 'gpio_num': 27, 'direction': 'out' }
+ gpio['PGOOD'] = { 'gpio_num': 28, 'direction': 'in' }
+
+
+ return gpio
+
diff --git a/bin/System/Barreleye.pyc b/bin/System/Barreleye.pyc
index 8f3a4a0..c79f477 100644
--- a/bin/System/Barreleye.pyc
+++ b/bin/System/Barreleye.pyc
Binary files differ
diff --git a/bin/System/__init__.py b/bin/System/__init__.py
index cba6a54..f95b8ee 100644
--- a/bin/System/__init__.py
+++ b/bin/System/__init__.py
@@ -1 +1,2 @@
-from Barreleye import Barreleye
+from Barreleye import BarreleyeSensors
+from Barreleye import BarreleyeGpios
diff --git a/bin/System/__init__.pyc b/bin/System/__init__.pyc
index fafa74e..92a4920 100644
--- a/bin/System/__init__.pyc
+++ b/bin/System/__init__.pyc
Binary files differ