aboutsummaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorSimon Buhrow <simon.buhrow@sieb-meyer.de>2021-04-09 14:48:39 +0200
committerNico Huber <nico.h@gmx.de>2021-06-25 12:47:47 +0000
commit4d5a3b5eb03ad73d7eab16cf158513c1ed013c14 (patch)
tree25e53c4c2baee8b61703628a748fc20c49c45bc5 /flash.h
parentd3e778f8ab1694d9c93c2c290fdcd8929c7151f9 (diff)
downloadflashrom-4d5a3b5eb03ad73d7eab16cf158513c1ed013c14.tar.gz
flashrom-4d5a3b5eb03ad73d7eab16cf158513c1ed013c14.tar.bz2
flashrom-4d5a3b5eb03ad73d7eab16cf158513c1ed013c14.zip
ft2232_spi.c: Implement spi_send_multicommand()
Every ftdi_write_data() call is quite time consuming as the ftdi-chips seems to take always 2-3ms to respond. This leads to what the comment already says: Minimize USB transfers by packing as many commands as possible together. So I packed the WREN command together with the following operation which can be program or erase operation. This saves about 1 minute when programming a 128MBit Flash within a virtualized setup. Signed-off-by: Simon Buhrow <simon.buhrow@posteo.de> Change-Id: Ie4a07499ec5ef0af23818593f45dc427285a9e8a Reviewed-on: https://review.coreboot.org/c/flashrom/+/40477 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'flash.h')
0 files changed, 0 insertions, 0 deletions