mb/ocp/deltalake: Pull POST complete pin low before booting payload
Delta Lake uses GPIO pin GPP_B20 for POST complete event, BIOS needs to pull this pin low for BIC (Bridge IC) to start reading sensors. Tested=On Delta Lake oBMC, bic-util slotx --get_gpio to confirm the pin is low. Change-Id: I7e05f8a7caead8ee0632af4ff60ccd8b2412b3dd Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/43162 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
This commit is contained in:
parent
86acc04d28
commit
c8d8777750
|
@ -1,8 +1,11 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <console/console.h>
|
||||
#include <bootstate.h>
|
||||
#include <drivers/ipmi/ipmi_ops.h>
|
||||
#include <drivers/ocp/dmi/ocp_dmi.h>
|
||||
#include <gpio.h>
|
||||
#include <soc/lewisburg_pch_gpio_defs.h>
|
||||
#include <soc/ramstage.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
@ -92,3 +95,11 @@ struct chip_operations mainboard_ops = {
|
|||
.enable_dev = mainboard_enable,
|
||||
.final = mainboard_final,
|
||||
};
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue