[PATCH skeleton v7 4/6] Add checkstop gpio to Barreleye and Palmetto

OpenBMC Patches openbmc-patches at stwcx.xyz
Fri Jun 17 00:40:54 AEST 2016


From: Adriana Kobylak <anoo at us.ibm.com>

Add checkstop gpio pin number and handling to Barreleye and
Palmetto platforms.

Signed-off-by: Adriana Kobylak <anoo at us.ibm.com>
---
 configs/Barreleye.py | 7 +++++++
 configs/Palmetto.py  | 7 +++++++
 2 files changed, 14 insertions(+)

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 @@ APPS = {
                 '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_TCK']    	  =   { 'gpio_pin': 'P0', 'direction': 'out' }
 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 @@ APPS = {
 		'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['SLOT1_PRESENT'] =         { 'gpio_pin': 'N4', 'direction': 'in' }
 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()
-- 
2.8.4




More information about the openbmc mailing list