summaryrefslogtreecommitdiff
path: root/src/drivers/spi/gigadevice.c
diff options
context:
space:
mode:
authorMarc Jones <marc.jones@se-eng.com>2012-12-03 22:16:29 -0700
committerRonald G. Minnich <rminnich@gmail.com>2012-12-08 06:47:28 +0100
commit747127d50545c1fbd0dcc10baacc742d3151ddfe (patch)
treeac3e10ef818a41fe8015692fd193bcf30e49d198 /src/drivers/spi/gigadevice.c
parent91f1423cac0460ab79492a9c167765359b9dd3e2 (diff)
downloadcoreboot-747127d50545c1fbd0dcc10baacc742d3151ddfe.tar.xz
Limit SPI device debug prints with CONFIG_DEBUG_SPI_FLASH
Fix debug printks which were not using CONFIG_DEBUG_SPI_FLASH, which would cause long delays durring boot when SPI devices were written. Change-Id: I99fc3d5f847fdf4bb98e2a0342ea418ab7d5fc54 Signed-off-by: Marc Jones <marc.jones@se-eng.com> Reviewed-on: http://review.coreboot.org/1965 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/drivers/spi/gigadevice.c')
-rw-r--r--src/drivers/spi/gigadevice.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/drivers/spi/gigadevice.c b/src/drivers/spi/gigadevice.c
index 0647baf674..ece6978c2b 100644
--- a/src/drivers/spi/gigadevice.c
+++ b/src/drivers/spi/gigadevice.c
@@ -175,9 +175,12 @@ static int gigadevice_write(struct spi_flash *flash, u32 offset,
byte_addr = 0;
}
- printk(BIOS_INFO,
+#if CONFIG_DEBUG_SPI_FLASH
+ printk(BIOS_SPEW,
"SF gigadevice.c: Successfully programmed %zu bytes @ %#x\n",
len, (unsigned int)(offset - len));
+#endif
+
ret = 0;
out: