From 4cfffbbf01e61a705861d9f1ae8694173996d2b7 Mon Sep 17 00:00:00 2001 From: Kolja Waschk Date: Sat, 16 Feb 2008 17:34:00 +0000 Subject: [PATCH] Update cable->frequency value git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1032 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/src/tap/cable/ft2232.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/jtag/src/tap/cable/ft2232.c b/jtag/src/tap/cable/ft2232.c index 996358f1..99efcaef 100644 --- a/jtag/src/tap/cable/ft2232.c +++ b/jtag/src/tap/cable/ft2232.c @@ -261,6 +261,8 @@ 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) { uint32_t div; @@ -1044,7 +1046,7 @@ cable_driver_t ft2232_cable_driver = { ft2232_cable_free, ft2232_generic_init, ft2232_generic_done, - ft2232_set_frequency, + ft2232_set_frequency, ft2232_clock, ft2232_get_tdo, ft2232_transfer, @@ -1062,7 +1064,7 @@ cable_driver_t ft2232_armusbocd_cable_driver = { ft2232_cable_free, ft2232_armusbocd_init, ft2232_armusbocd_done, - ft2232_set_frequency, + ft2232_set_frequency, ft2232_clock, ft2232_get_tdo, ft2232_transfer, @@ -1080,7 +1082,7 @@ cable_driver_t ft2232_jtagkey_cable_driver = { ft2232_cable_free, ft2232_jtagkey_init, ft2232_jtagkey_done, - ft2232_set_frequency, + ft2232_set_frequency, ft2232_clock, ft2232_get_tdo, ft2232_transfer,