From dfd5411ea031ff9ef7a1f8d4f04a7e97aec3c68e Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Fri, 30 Aug 2024 09:55:01 -0500 Subject: [PATCH] mb/google/zork: Ensure eSPI GPIOs programmed w/o vboot On the non-vboot boot path, eSPI is configured as part of fch_pre_init(), and we need to ensure that the mainboard sets the eSPI GPIOs properly before the common SoC code performs eSPI init. Use the mb_set_up_early_espi() function to set the eSPI GPIOs at the correct time. TEST=build/boot google/zork (morphius), verify keyboard functional. Change-Id: I03efe6def37a018c3de410523be21bf008174e94 Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/84148 Reviewed-by: Felix Held Reviewed-by: Martin L Roth Tested-by: build bot (Jenkins) --- src/mainboard/google/zork/bootblock.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/mainboard/google/zork/bootblock.c b/src/mainboard/google/zork/bootblock.c index 559ca04d3c..202b957779 100644 --- a/src/mainboard/google/zork/bootblock.c +++ b/src/mainboard/google/zork/bootblock.c @@ -3,6 +3,16 @@ #include #include #include +#include + +void mb_set_up_early_espi(void) +{ + size_t num_gpios; + const struct soc_amd_gpio *gpios; + + gpios = variant_espi_gpio_table(&num_gpios); + gpio_configure_pads(gpios, num_gpios); +} void bootblock_mainboard_early_init(void) {