coreboot-kgpe-d16/src/drivers/spi
Dave Frodin c50c0ab456 drivers/spi: Reduce the per loop delay of spi_flash_cmd_poll_bit()
At the end of some SPI operations the SPI device needs to be polled
to determine if it is done with the operation. For SPI data writes
the predicted time of that operation could be less than 10us.
The current per loop delay of 500us is adding too much delay.
This change replaces the delay(x) in the do-while loop with a
timer so that the actual timeout value won't be lengthened by the
delay of reading the SPI device.

Change-Id: Ia8b00879135f926c402bbd9d08953c77a2dcc84e
Signed-off-by: Dave Frodin <dave.frodin@se-eng.com>
Reviewed-on: http://review.coreboot.org/5973
Tested-by: build bot (Jenkins)
Reviewed-by: David Hendricks <dhendrix@chromium.org>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
2014-07-05 00:38:46 +02:00
..
adesto.c drivers/spi: Add support for adesto SPI flash parts 2014-03-12 01:03:31 +01:00
amic.c src/drivers/spi: introduce AMIC support 2014-02-17 10:21:48 +01:00
eon.c drivers/spi/eon: Add EN25Q64 2014-01-12 18:07:02 +01:00
gigadevice.c Claim the SPI bus before writes if the IMC ROM is present 2012-12-12 22:34:16 +01:00
Kconfig SPI: Use common dependency in Kconfig 2014-04-29 17:31:03 +02:00
macronix.c Whitespace: Replace tab character in license text with two spaces 2013-02-20 23:30:45 +01:00
Makefile.inc drivers/spi: Add support for adesto SPI flash parts 2014-03-12 01:03:31 +01:00
spansion.c Whitespace: Replace tab character in license text with two spaces 2013-02-20 23:30:45 +01:00
spi_flash.c drivers/spi: Reduce the per loop delay of spi_flash_cmd_poll_bit() 2014-07-05 00:38:46 +02:00
spi_flash_internal.h drivers/spi: Add support for adesto SPI flash parts 2014-03-12 01:03:31 +01:00
sst.c drivers/spi/sst.c: Remove unused func to_sst_spi_flash() 2014-05-18 18:05:42 +02:00
stmicro.c SPI: Support STMicro partial page write 2013-08-23 05:07:11 +02:00
winbond.c spi: Add support for Winbod W25Q64DW 2014-01-28 22:24:06 +01:00