summaryrefslogtreecommitdiff
path: root/src/mainboard/google/myst/bootblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/myst/bootblock.c')
-rw-r--r--src/mainboard/google/myst/bootblock.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mainboard/google/myst/bootblock.c b/src/mainboard/google/myst/bootblock.c
index 0877807c96..4d4d7e7468 100644
--- a/src/mainboard/google/myst/bootblock.c
+++ b/src/mainboard/google/myst/bootblock.c
@@ -1,7 +1,20 @@
/* SPDX-License-Identifier: GPL-2.0-only */
+#include <amdblocks/espi.h>
#include <bootblock_common.h>
#include <baseboard/variants.h>
+#include <soc/espi.h>
+
+void mb_set_up_early_espi(void)
+{
+ size_t num_gpios;
+ const struct soc_amd_gpio *gpios;
+
+ variant_espi_gpio_table(&gpios, &num_gpios);
+ gpio_configure_pads(gpios, num_gpios);
+
+ espi_switch_to_spi1_pads();
+}
void bootblock_mainboard_early_init(void)
{