SPI read speed directly impacts boot time and we do quite a lot of reading.
Add a way to easily find out the speed of SPI flash reads within coreboot.
Write speed is less important since there are very few writes and they are small.
BUG=chrome-os-partner:56556 BRANCH=none TEST=run on gru with SPI_SPEED_DEBUG set to 1. See the output messages: read SPI 627d4 7d73: 18455 us, 1740 KB/s, 13.920 Mbps
Change-Id: Id3814bd2b7bd045cdfcc67eb1fabc861bf9ed3b2
aa58a9e spi: Add a way to show SPI transfer speed for reads
src/drivers/spi/cbfs_spi.c | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Upstream: review.coreboot.org