From 8880baf6bc55a16485f523113e72f119cc9da8c5 Mon Sep 17 00:00:00 2001 From: Fred Reitberger Date: Thu, 1 Jun 2023 18:55:16 -0400 Subject: [PATCH] mb/google/myst/bootblock.c: Initialize spi flash Initialize the SPI Flash in bootblock to ensure that CONFIG_SPI_FLASH_EXIT_4_BYTE_ADDR_MODE will exit 4-byte addressing mode. BUG=b:285110121 TEST=boot myst and verify flash operations work correctly Change-Id: Ia88d2b46884b096b4c558bc86513159ec6d35eb5 Signed-off-by: Fred Reitberger Reviewed-on: https://review.coreboot.org/c/coreboot/+/75588 Reviewed-by: Jon Murphy Tested-by: build bot (Jenkins) --- src/mainboard/google/myst/bootblock.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mainboard/google/myst/bootblock.c b/src/mainboard/google/myst/bootblock.c index 440466697b..29d0a5a89e 100644 --- a/src/mainboard/google/myst/bootblock.c +++ b/src/mainboard/google/myst/bootblock.c @@ -3,7 +3,9 @@ #include #include #include +#include #include +#include void mb_set_up_early_espi(void) { @@ -35,4 +37,8 @@ void bootblock_mainboard_init(void) variant_bootblock_gpio_table(&gpios, &num_gpios); gpio_configure_pads(gpios, num_gpios); + + // TODO: b:285110121 - temp workaround is to add a dummy flash call + const struct spi_flash *spi = boot_device_spi_flash(); + printk(BIOS_DEBUG, "Initialized spi flash %p\n", spi); }