Skip to content

Commit

Permalink
Remove the GPIOs from Witherspoon.py
Browse files Browse the repository at this point in the history
They are now obtained from a JSON file.

Change-Id: I8ca4ac94e2907fadc9a444e42b20df576bd1e95b
Signed-off-by: Matt Spinler <[email protected]>
  • Loading branch information
spinler committed Aug 14, 2018
1 parent c4390de commit 893498a
Showing 1 changed file with 0 additions and 69 deletions.
69 changes: 0 additions & 69 deletions configs/Witherspoon.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,75 +296,6 @@
'GPIO_PRESENT' : {}
}

GPIO_CONFIG = {}
GPIO_CONFIG['BMC_POWER_UP'] = \
{'gpio_pin': 'D1', 'direction': 'out'}
GPIO_CONFIG['SOFTWARE_PGOOD'] = \
{'gpio_pin': 'R1', 'direction': 'out'}
GPIO_CONFIG['SYS_PWROK_BUFF'] = \
{'gpio_pin': 'D2', 'direction': 'in'}

# PV_CP_MD_JTAG_ATTENTION_N
GPIO_CONFIG['CHECKSTOP'] = \
{'gpio_pin': 'J2', 'direction': 'falling'}

GPIO_CONFIG['BMC_CP0_RESET_N'] = \
{'gpio_pin': 'A1', 'direction': 'out'}
# pcie switch reset
GPIO_CONFIG['BMC_VS1_PERST_N'] = \
{'gpio_pin': 'B7', 'direction': 'out'}
# pcie slots reset - not connected?
GPIO_CONFIG['BMC_CP0_PERST_ENABLE_R'] = \
{'gpio_pin': 'A3', 'direction': 'out'}

# SOFT_FSI_DAT
GPIO_CONFIG['FSI_DATA'] = \
{'gpio_pin': 'E0', 'direction': 'out'}
# SOFT_FSI_CLK
GPIO_CONFIG['FSI_CLK'] = \
{'gpio_pin': 'AA0', 'direction': 'out'}
# BMC_FSI_IN_ENA
GPIO_CONFIG['FSI_ENABLE'] = \
{'gpio_pin': 'D0', 'direction': 'out'}
# FSI_JMFG0_PRSNT_N
GPIO_CONFIG['CRONUS_SEL'] = \
{'gpio_pin': 'A6', 'direction': 'out'}

# FP_PWR_BTN_N
GPIO_CONFIG['POWER_BUTTON'] = \
{'gpio_pin': 'I3', 'direction': 'both'}
# BMC_NMIBTN_IN_N
GPIO_CONFIG['RESET_BUTTON'] = \
{'gpio_pin': 'J1', 'direction': 'both'}

# FIXME: needed for Witherspoon?
# Tracked by openbmc/openbmc#814
# FP_ID_BTN_N
GPIO_CONFIG['IDBTN'] = \
{'gpio_pin': 'Q7', 'direction': 'out'}

# TODO openbmc/openbmc#2288 - Determine if any pci resets needed
GPIO_CONFIGS = {
'power_config' : {
'power_good_in' : 'SYS_PWROK_BUFF',
'power_up_outs' : [
('SOFTWARE_PGOOD', True),
('BMC_POWER_UP', True),
],
'reset_outs' : [
('BMC_CP0_RESET_N', False),
],
},
'hostctl_config' : {
'fsi_data' : 'FSI_DATA',
'fsi_clk' : 'FSI_CLK',
'fsi_enable' : 'FSI_ENABLE',
'cronus_sel' : 'CRONUS_SEL',
'optionals' : [
],
},
}


# Miscellaneous non-poll sensor with system specific properties.
# The sensor id is the same as those defined in ID_LOOKUP['SENSOR'].
Expand Down

0 comments on commit 893498a

Please sign in to comment.