summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorel-coderon <simon.buhrow@sieb-meyer.de>2020-03-20 18:52:15 +0100
committerAngel Pons <th3fanbus@gmail.com>2020-04-08 20:27:45 +0000
commite6255ab97fef6fff4fd7f9d1f9559e4c06de7e13 (patch)
treea77812d3fe383c8c1a777efc591bc63d0cc565b0
parent13a2ef6cbd0838a7965914dda3b4a63ff4ae5440 (diff)
downloadflashrom-e6255ab97fef6fff4fd7f9d1f9559e4c06de7e13.tar.gz
flashrom-e6255ab97fef6fff4fd7f9d1f9559e4c06de7e13.tar.bz2
flashrom-e6255ab97fef6fff4fd7f9d1f9559e4c06de7e13.zip
ft2232_spi.c: change the chunksize from 256 to 270
This is to really make use of page write time advantage. Because the Chunksize must be 256Byte raw data plus the address and cmd bytes. For details check: https://mail.coreboot.org/hyperkitty/list/flashrom@flashrom.org/message/W2HULJTDPHWPBZY6MLM6TGT7RTHSGHON/ Signed-off-by: Simon Buhrow <simon.buhrow@posteo.de> Change-Id: Iac067a23025e9df053ab9cd4e82a98de70046c18 Reviewed-on: https://review.coreboot.org/c/flashrom/+/39632 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: David Hendricks <david.hendricks@gmail.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r--ft2232_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ft2232_spi.c b/ft2232_spi.c
index 1a5b2feb4..520eb6e17 100644
--- a/ft2232_spi.c
+++ b/ft2232_spi.c
@@ -398,7 +398,7 @@ int ft2232_spi_init(void)
msg_perr("Unable to set latency timer (%s).\n", ftdi_get_error_string(ftdic));
}
- if (ftdi_write_data_set_chunksize(ftdic, 256)) {
+ if (ftdi_write_data_set_chunksize(ftdic, 270)) {
msg_perr("Unable to set chunk size (%s).\n", ftdi_get_error_string(ftdic));
}