diff options
author | Lei YU <mine260309@gmail.com> | 2016-11-22 01:47:47 +0800 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-01-12 04:34:57 +0000 |
commit | 75a18a232ea7fe25b9a3b0b5b02c202fa0b300ea (patch) | |
tree | 51935becc538a6033aa884b4a7cddf0715d69ecb /configs/Witherspoon.py | |
parent | f35a7ddf30c27b796b969acc9f125b82e2de89bf (diff) | |
download | talos-skeleton-75a18a232ea7fe25b9a3b0b5b02c202fa0b300ea.tar.gz talos-skeleton-75a18a232ea7fe25b9a3b0b5b02c202fa0b300ea.zip |
GPIO abstraction for power and host control
In libopenbmc_intf/power_gpio.c there are GPIO abstractions for power
related GPIOs.
Host control related GPIOs need to do the same abstraction.
The changes include:
1. Add host control related GPIOs in gpio_configs and update
system_manager.py
2. Update control_host_obj.c to use the abstracted GPIOs
3. Update GPIO_CONFIGS for all machines and add host control related
GPIOs
power_gpio will be renamed to gpio_configs in next commit;
Resolves openbmc/openbmc#814
Change-Id: I7832065d495d7d64c5df2f5b177005b97e68900a
Signed-off-by: Lei YU <mine260309@gmail.com>
Diffstat (limited to 'configs/Witherspoon.py')
-rw-r--r-- | configs/Witherspoon.py | 38 |
1 files changed, 24 insertions, 14 deletions
diff --git a/configs/Witherspoon.py b/configs/Witherspoon.py index 1fe77d0..1c12b2a 100644 --- a/configs/Witherspoon.py +++ b/configs/Witherspoon.py @@ -451,20 +451,30 @@ HWMON_CONFIG = { } -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), - ], - 'pci_reset_outs': [ - # net name, polarity, reset hold - ('BMC_VS1_PERST_N', False, False), - ('BMC_CP0_PERST_ENABLE_R', False, False), - ], +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), + ], + 'pci_reset_outs': [ + # net name, polarity, reset hold + ('BMC_VS1_PERST_N', False, False), + ('BMC_CP0_PERST_ENABLE_R', False, False), + ], + }, + 'hostctl_config' : { + 'fsi_data' : 'FSI_DATA', + 'fsi_clk' : 'FSI_CLK', + 'fsi_enable' : 'FSI_ENABLE', + 'cronus_sel' : 'CRONUS_SEL', + 'optionals' : [ + ], + }, } |