[PATCH skeleton 02/15] Init GPIO Thottle, add BMC heartbeat, change power LED status
OpenBMC Patches
openbmc-patches at stwcx.xyz
Sat Dec 19 10:40:22 AEDT 2015
From: Ken <ken.sk.lai at mail.foxconn.com>
---
bin/Barreleye.py | 22 ++++++++++++++++++----
includes/gpio.c | 0
objects/control_host_obj.c | 1 +
3 files changed, 19 insertions(+), 4 deletions(-)
mode change 100644 => 100755 includes/gpio.c
diff --git a/bin/Barreleye.py b/bin/Barreleye.py
index 2006c83..01931c9 100755
--- a/bin/Barreleye.py
+++ b/bin/Barreleye.py
@@ -54,24 +54,38 @@ ENTER_STATE_CALLBACK = {
'bus_name' : 'org.openbmc.control.Fans',
'obj_name' : '/org/openbmc/control/fans',
'interface_name' : 'org.openbmc.control.Fans',
+ },
+ 'setOn' : {
+ 'bus_name' : 'org.openbmc.control.led',
+ 'obj_name' : '/org/openbmc/control/led/BMC_READY',
+ 'interface_name' : 'org.openbmc.Led',
}
},
- 'BMC_READY' : {
- 'setOn' : {
+ 'HOST_POWERED_OFF' : {
+ 'setOff' : {
'bus_name' : 'org.openbmc.control.led',
'obj_name' : '/org/openbmc/control/led/BMC_READY',
'interface_name' : 'org.openbmc.Led',
- },
+ }
+
+ },
+ 'BMC_READY' : {
'setOn' : {
'bus_name' : 'org.openbmc.control.led',
'obj_name' : '/org/openbmc/control/led/BEEP',
'interface_name' : 'org.openbmc.Led',
},
+ 'setBlinkSlow' : {
+ 'bus_name' : 'org.openbmc.control.led',
+ 'obj_name' : '/org/openbmc/control/led/HEART_BEAT',
+ 'interface_name' : 'org.openbmc.Led',
+ },
+
'init' : {
'bus_name' : 'org.openbmc.control.Flash',
'obj_name' : '/org/openbmc/control/flash/bios',
'interface_name' : 'org.openbmc.Flash',
- },
+ }
}
}
diff --git a/includes/gpio.c b/includes/gpio.c
old mode 100644
new mode 100755
diff --git a/objects/control_host_obj.c b/objects/control_host_obj.c
index 79d375b..56b02de 100755
--- a/objects/control_host_obj.c
+++ b/objects/control_host_obj.c
@@ -225,6 +225,7 @@ on_bus_acquired (GDBusConnection *connection,
gpio_init(connection,&fsi_clk);
gpio_init(connection,&fsi_enable);
gpio_init(connection,&cronus_sel);
+ gpio_init(connection,&Throttle);
emit_object_added((GDBusObjectManager*)manager);
}
--
2.6.3
More information about the openbmc
mailing list