summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/common/block/fast_spi/fast_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/common/block/fast_spi/fast_spi.c')
-rw-r--r--src/soc/intel/common/block/fast_spi/fast_spi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/fast_spi/fast_spi.c b/src/soc/intel/common/block/fast_spi/fast_spi.c
index e46effcc4e89..78225ec0d80f 100644
--- a/src/soc/intel/common/block/fast_spi/fast_spi.c
+++ b/src/soc/intel/common/block/fast_spi/fast_spi.c
@@ -530,6 +530,11 @@ static void fast_spi_read_resources(struct device *dev)
/* Add SPI flash MMIO window as a reserved resource. */
mmio_resource_kb(dev, 0, FLASH_BASE_ADDR / KiB, FLASH_MMIO_SIZE / KiB);
+ /* Add extended SPI flash MMIO window as reserved resource if enabled. */
+ if (CONFIG(FAST_SPI_SUPPORTS_EXT_BIOS_WINDOW)) {
+ mmio_resource_kb(dev, 1, CONFIG_EXT_BIOS_WIN_BASE / KiB,
+ CONFIG_EXT_BIOS_WIN_SIZE / KiB);
+ }
}
static struct device_operations fast_spi_dev_ops = {