coreboot-kgpe-d16/src/drivers
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
..
ati stdlib: Drop duplicates of min() and max() 2014-07-01 10:15:26 +02:00
dec GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
elog drivers/elog: Unmangle header include out of pre-proc cond 2014-06-25 11:34:32 +02:00
emulation qemu: Support textmode gfx init. 2014-03-03 23:14:04 +01:00
generic Drop drivers/generic/debug 2014-04-22 13:42:48 +02:00
i2c lenovo: Add lenovo_mainboard_partnumber. 2014-05-25 15:59:19 +02:00
ics Get rid of drivers class 2012-11-27 22:00:49 +01:00
intel drivers/intel/gma: Uninitialized var before if condition 2014-06-25 11:38:33 +02:00
ipmi Get rid of drivers class 2012-11-27 22:00:49 +01:00
maxim max77802: update header 2013-12-21 13:29:42 +01:00
net ne2k: Move under drivers/net 2014-02-06 11:14:50 +01:00
parade Pit: move parade writes to mainboard.c 2013-12-21 08:06:52 +01:00
pc80 stdlib: Drop duplicates of min() and max() 2014-07-01 10:15:26 +02:00
sil Get rid of drivers class 2012-11-27 22:00:49 +01:00
spi drivers/spi: Reduce the per loop delay of spi_flash_cmd_poll_bit() 2014-07-05 00:38:46 +02:00
ti [2/2] tps65090: re-factor for coreboot 2013-04-10 17:34:19 +02:00
trident Get rid of drivers class 2012-11-27 22:00:49 +01:00
uart console: Drop EARLY_CONSOLE option 2014-04-30 07:00:20 +02:00
usb console: Drop EARLY_CONSOLE option 2014-04-30 07:00:20 +02:00
xpowers xpowers/axp209: Add helper to set voltages from devicetree config 2014-01-13 06:24:54 +01:00
Kconfig drivers: Drop GbE stub drivers 2014-05-20 13:46:35 +02:00
Makefile.inc drivers: Drop GbE stub drivers 2014-05-20 13:46:35 +02:00