mb/ocp/tiogapass: Pull POST complete pin

Tioga Pass platform use GPIO pin of GPP_B20 for POST complete,
BIOS needs to configure this pin for BMC to poll,
so it knows when to start to access other components.

Tested=Read GPIO status (GPIOAA7) in OpenBMC, the value is 0,
the command and result are shown as below,

root@bmc-oob:~# cat /tmp/gpionames/FM_BIOS_POST_CMPLT_N/value
0
root@bmc-oob:~#

Change-Id: I134f80153461c5acd872587038a2207586b658dd
Signed-off-by: BryantOu <Bryant.Ou.Q@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40426
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
BryantOu 2020-04-15 23:17:01 -07:00 committed by Andrey Petrov
parent dff56a056c
commit 4fc59af03d
1 changed files with 11 additions and 0 deletions

View File

@ -13,7 +13,18 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <soc/ramstage.h> #include <soc/ramstage.h>
#include <bootstate.h>
#include <gpio.h>
#include <soc/lewisburg_pch_gpio_defs.h>
void mainboard_silicon_init_params(FSPS_UPD *params) void mainboard_silicon_init_params(FSPS_UPD *params)
{ {
} }
static void pull_post_complete_pin(void *unused)
{
/* Pull Low post complete pin */
gpio_output(GPP_B20, 0);
}
BOOT_STATE_INIT_ENTRY(BS_PAYLOAD_BOOT, BS_ON_ENTRY, pull_post_complete_pin, NULL);