aboutsummaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/spi/spi_flash.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/drivers/spi/spi_flash.c b/src/drivers/spi/spi_flash.c
index 93335de24a..f0f119addb 100644
--- a/src/drivers/spi/spi_flash.c
+++ b/src/drivers/spi/spi_flash.c
@@ -374,6 +374,12 @@ int spi_flash_probe(unsigned int bus, unsigned int cs, struct spi_flash *flash)
printk(BIOS_INFO, "SF: Detected %s with sector size 0x%x, total 0x%x\n",
flash->name, flash->sector_size, flash->size);
+ if (bus == CONFIG_BOOT_DEVICE_SPI_FLASH_BUS
+ && flash->size != CONFIG_ROM_SIZE) {
+ printk(BIOS_ERR, "SF size 0x%x does not correspond to"
+ " CONFIG_ROM_SIZE 0x%x!!\n", flash->size,
+ CONFIG_ROM_SIZE);
+ }
return 0;
}