From a46b820717070055cbc4b8ac640786bdefb2beb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnim=20L=C3=A4uger?= Date: Mon, 22 Dec 2008 13:09:32 +0000 Subject: [PATCH] set cable frequency to real FT2232 frequency git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1412 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 3 +++ jtag/src/tap/cable/ft2232.c | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) 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; } }