From 53435eac5117461ac9ec1739755d5bec43a8c14e Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Fri, 25 Jun 2021 15:28:43 -0600 Subject: 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 Change-Id: Ifec6113d48aea0bb5efe47909e4faf0161148a99 Reviewed-on: https://review.coreboot.org/c/coreboot/+/55864 Reviewed-by: Raul Rangel Reviewed-by: Karthik Ramasubramanian Tested-by: build bot (Jenkins) --- src/mainboard/google/guybrush/bootblock.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') diff --git a/src/mainboard/google/guybrush/bootblock.c b/src/mainboard/google/guybrush/bootblock.c index 46875ff43d..f9f1ab034f 100644 --- a/src/mainboard/google/guybrush/bootblock.c +++ b/src/mainboard/google/guybrush/bootblock.c @@ -1,12 +1,25 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include +#include #include #include #include #include #include +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; -- cgit v1.2.3