mb/google/guybrush: Configure eSPI requirements before setting it up
When initializing eSPI early, guybrush has requirements to configure the bus properly. Those are normally run in bootblock_mainboard_early_init, but when setting up eSPI early, those have not run yet. BUG=192100564 TEST=Build along with previous patch, eSPI works on guybrush Signed-off-by: Martin Roth <martinroth@chromium.org> Change-Id: Ifec6113d48aea0bb5efe47909e4faf0161148a99 Reviewed-on: https://review.coreboot.org/c/coreboot/+/55864 Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
fe58977e6f
commit
53435eac51
|
@ -1,12 +1,25 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <amdblocks/acpimmio.h>
|
||||
#include <amdblocks/espi.h>
|
||||
#include <bootblock_common.h>
|
||||
#include <baseboard/variants.h>
|
||||
#include <console/console.h>
|
||||
#include <device/pci_ops.h>
|
||||
#include <soc/pci_devs.h>
|
||||
|
||||
void mb_set_up_early_espi(void)
|
||||
{
|
||||
/*
|
||||
* We don't need to initialize all of the GPIOs that are done
|
||||
* in bootblock_mainboard_early_init(), but we need to release
|
||||
* the EC eSPI reset and do the rest of the configuration.
|
||||
*
|
||||
* This will not be present in the normal boot flow.
|
||||
*/
|
||||
bootblock_mainboard_early_init();
|
||||
}
|
||||
|
||||
void bootblock_mainboard_early_init(void)
|
||||
{
|
||||
size_t num_gpios;
|
||||
|
|
Loading…
Reference in New Issue