Add checkstop gpio to Barreleye and Palmetto
Add checkstop gpio pin number and handling to Barreleye and
Palmetto platforms.
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/configs/Barreleye.py b/configs/Barreleye.py
index c23f657..7b74179 100644
--- a/configs/Barreleye.py
+++ b/configs/Barreleye.py
@@ -154,6 +154,12 @@
'monitor_process' : True,
'process_name' : 'button_reset.exe',
},
+ 'host_checkstop' : {
+ 'system_state' : 'BMC_STARTING',
+ 'start_process' : True,
+ 'monitor_process' : True,
+ 'process_name' : 'host_checkstop.exe',
+ },
'led_control' : {
'system_state' : 'BMC_STARTING',
'start_process' : True,
@@ -561,6 +567,7 @@
GPIO_CONFIG['CPLD_TDO'] = { 'gpio_pin': 'P1', 'direction': 'out' }
GPIO_CONFIG['CPLD_TDI'] = { 'gpio_pin': 'P2', 'direction': 'out' }
GPIO_CONFIG['CPLD_TMS'] = { 'gpio_pin': 'P3', 'direction': 'out' }
+GPIO_CONFIG['CHECKSTOP'] = { 'gpio_pin': 'P5', 'direction': 'falling' }
GPIO_CONFIG['SLOT0_RISER_PRESENT'] = { 'gpio_pin': 'N0', 'direction': 'in' }
GPIO_CONFIG['SLOT1_RISER_PRESENT'] = { 'gpio_pin': 'N1', 'direction': 'in' }
diff --git a/configs/Palmetto.py b/configs/Palmetto.py
index bb4d6f2..bbe4afc 100644
--- a/configs/Palmetto.py
+++ b/configs/Palmetto.py
@@ -111,6 +111,12 @@
'monitor_process' : False,
'process_name' : 'button_power.exe',
},
+ 'host_checkstop' : {
+ 'system_state' : 'BMC_STARTING',
+ 'start_process' : False,
+ 'monitor_process' : False,
+ 'process_name' : 'host_checkstop.exe',
+ },
'led_control' : {
'system_state' : 'BMC_STARTING',
'start_process' : True,
@@ -287,6 +293,7 @@
GPIO_CONFIG['SLOT2_PRESENT'] = { 'gpio_pin': 'N5', 'direction': 'in' }
GPIO_CONFIG['MEZZ0_PRESENT'] = { 'gpio_pin': 'O0', 'direction': 'in' }
GPIO_CONFIG['MEZZ1_PRESENT'] = { 'gpio_pin': 'O1', 'direction': 'in' }
+GPIO_CONFIG['CHECKSTOP'] = { 'gpio_pin': 'P5', 'direction': 'falling' }
def convertGpio(name):
name = name.upper()