summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2015-01-25 23:42:57 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2015-01-25 23:42:57 +0000
commit9d59ae9edea2ff84835e680557a246f3927c2a51 (patch)
treed652c4d3fdc85e6620a42a602a5e423f19528996
parent1326fa2de83de6ed8d43bd362f4d0ec730805642 (diff)
downloadflashrom-9d59ae9edea2ff84835e680557a246f3927c2a51.tar.gz
ftdi2232_spi: revert usage of DIS_DIV_5 macro.
In r1872 we replaced some magic values with constant macros from ftdi.h. Among them was DIS_DIV_5 that represents the opcode that disables the use of the 5x prescaler on newer devices. Unfortunately this macro was only introduced with support for FT232H and hence is not available in older versions of the library. Revert back to using the magic constant. Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1873 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--ft2232_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ft2232_spi.c b/ft2232_spi.c
index ea12d8e..4e23797 100644
--- a/ft2232_spi.c
+++ b/ft2232_spi.c
@@ -360,7 +360,7 @@ int ft2232_spi_init(void)
if (clock_5x) {
msg_pdbg("Disable divide-by-5 front stage\n");
- buf[0] = DIS_DIV_5;
+ buf[0] = 0x8a; /* Disable divide-by-5. DIS_DIV_5 in newer libftdi */
if (send_buf(ftdic, buf, 1)) {
ret = -5;
goto ftdi_err;