diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 5890e352..c5914305 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,5 +1,8 @@ 2008-12-22 Arnim Laeuger + * src/tap/cable/ft2232.c: + set cable frequency to real FT2232 frequency + * src/tap/usbconn/libftdi.c, src/tap/usbconn/libftd2xx.c, include/usbconn/libftdx.h, src/tap/cable/ft2232.c: increased MPSSE buffer size from 4k to 64k diff --git a/jtag/src/tap/cable/ft2232.c b/jtag/src/tap/cable/ft2232.c index 583aaf26..9fb26ade 100644 --- a/jtag/src/tap/cable/ft2232.c +++ b/jtag/src/tap/cable/ft2232.c @@ -203,8 +203,6 @@ ft2232_set_frequency( cable_t *cable, uint32_t new_frequency ) if (!new_frequency || new_frequency > FT2232_MAX_TCK_FREQ) new_frequency = FT2232_MAX_TCK_FREQ; - cable->frequency = new_frequency; - /* update ft2232 frequency if cable setting changed */ if (new_frequency != params->mpsse_frequency) { @@ -230,6 +228,7 @@ ft2232_set_frequency( cable_t *cable, uint32_t new_frequency ) cx_xfer( cmd_root, &imm_cmd, cable, COMPLETELY ); params->mpsse_frequency = FT2232_MAX_TCK_FREQ / (div + 1); + cable->frequency = params->mpsse_frequency; } }