Werner Zeh has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/67529 )
Change subject: common/block/fast_spi: Add extended BIOS window as reserved region ......................................................................
common/block/fast_spi: Add extended BIOS window as reserved region
The fast SPI driver reports the BIOS window as reserved so that the OS is aware of this region. Now that platforms which supports an extended BIOS window are added to this driver, add the extended range as reserved as well if it is enabled.
Change-Id: Ib5c735bffcb389be07c876d7b5b2d88c545a0b03 Signed-off-by: Werner Zeh werner.zeh@siemens.com --- M src/soc/intel/common/block/fast_spi/fast_spi.c 1 file changed, 20 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/29/67529/1
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 e46effc..78225ec 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 @@
/* 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 = {