Peter Farley has uploaded this change for review.

View Change

ft2232_spi: Reduce read size for FT232H

FT232H-based devices are unable to read over 256 bytes of flash in one
go. This change decreases the max_data_read to 256 when the selected
type is "232H".

Change-Id: I2a45fb8ac8ff37bbf01b0cb6b88851cf74af495d
Signed-off-by: Peter Farley <far.peter1@gmail.com>
---
M ft2232_spi.c
1 file changed, 2 insertions(+), 1 deletion(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/98/63798/1
diff --git a/ft2232_spi.c b/ft2232_spi.c
index ccd5f4c..94107c3 100644
--- a/ft2232_spi.c
+++ b/ft2232_spi.c
@@ -288,7 +288,7 @@
return ret ? -1 : 0;
}

-static const struct spi_master spi_master_ft2232 = {
+static struct spi_master spi_master_ft2232 = {
.features = SPI_MASTER_4BA,
.max_data_read = 64 * 1024,
.max_data_write = 256,
@@ -346,6 +346,7 @@
} else if (!strcasecmp(arg, "232H")) {
ft2232_type = FTDI_FT232H_PID;
channel_count = 1;
+ spi_master_ft2232.max_data_read = 256;
} else if (!strcasecmp(arg, "4233H")) {
ft2232_type = FTDI_FT4233H_PID;
channel_count = 4;

To view, visit change 63798. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I2a45fb8ac8ff37bbf01b0cb6b88851cf74af495d
Gerrit-Change-Number: 63798
Gerrit-PatchSet: 1
Gerrit-Owner: Peter Farley <far.peter1@gmail.com>
Gerrit-MessageType: newchange