1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 06:23:18 +02:00

Add support for all 4 possible channels to the ft2232_spi programmer

Add a check to validate the selected channel/interface, which not even
libftdi seems to do yet.
This patch changes default behavior: the new default channel/interface is A.
Also, this patch uses the word 'channel' in addition or in place of 'interface'
where possible without too much hassle because it is the term FTDI uses.

Corresponding to flashrom svn r1608.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
This commit is contained in:
Stefan Tauner
2012-09-26 00:46:02 +00:00
parent fd0d413537
commit fbc71ac494
2 changed files with 44 additions and 22 deletions

View File

@ -555,7 +555,7 @@ Example:
.SS
.BR "ft2232_spi " programmer
An optional parameter specifies the controller
type and interface/port it should support. For that you have to use the
type and channel/interface/port it should support. For that you have to use the
.sp
.B " flashrom \-p ft2232_spi:type=model,port=interface"
.sp
@ -568,11 +568,11 @@ arm-usb-tiny ", " arm-usb-tiny-h ", " arm-usb-ocd ", " arm-usb-ocd-h \
and
.B interface
can be
.BR A ", or " B .
.BR A ", " B ", " C ", or " D .
The default model is
.B 4232H
and the default interface is
.BR B .
.BR A .
.sp
If there is more than one ft2232_spi-compatible device connected, you can select which one should be used by
specifying its serial number with the