From 5d4f9d86be9657600b6008de105a1b1556b4f1ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnim=20L=C3=A4uger?= Date: Sat, 16 Feb 2008 19:29:28 +0000 Subject: [PATCH] nitialize mpsse frequency via ft2232_set_frequency() git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1034 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 2 ++ jtag/src/tap/cable/ft2232.c | 11 ++++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index e293b2c1..b223ad4e 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -3,6 +3,8 @@ * src/tap/cable/ft2232.c (ft2232_flush): fix inconsistency of TDO caching in ft2232_flush() * THANKS: to the original SVF and BSDL parser programmers + * src/tap/cable/ft2232.c (ft2232_generic_init, ft2232_jtagkey_init, ft2232_armusbocd_init): + initialize mpsse frequency via ft2232_set_frequency() 2008-02-16 Kolja Waschk diff --git a/jtag/src/tap/cable/ft2232.c b/jtag/src/tap/cable/ft2232.c index 99efcaef..10e392d5 100644 --- a/jtag/src/tap/cable/ft2232.c +++ b/jtag/src/tap/cable/ft2232.c @@ -324,9 +324,8 @@ ft2232_generic_init( cable_t *cable ) push_to_send( params, SET_BITS_HIGH ); push_to_send( params, params->high_byte_value_trst_inactive ); push_to_send( params, params->high_byte_dir ); - send_and_receive( cable ); - params->mpsse_frequency = FT2232_MAX_TCK_FREQ; + ft2232_set_frequency( cable, FT2232_MAX_TCK_FREQ ); params->last_tdo_valid = 0; @@ -376,9 +375,7 @@ ft2232_jtagkey_init( cable_t *cable ) push_to_send( params, params->high_byte_value_trst_inactive ); push_to_send( params, params->high_byte_dir ); - send_and_receive( cable ); - - params->mpsse_frequency = FT2232_MAX_TCK_FREQ; + ft2232_set_frequency( cable, FT2232_MAX_TCK_FREQ ); params->last_tdo_valid = 0; @@ -432,9 +429,8 @@ ft2232_armusbocd_init( cable_t *cable ) push_to_send( params, SET_BITS_HIGH ); push_to_send( params, params->high_byte_value_trst_inactive ); push_to_send( params, params->high_byte_dir ); - send_and_receive( cable ); - params->mpsse_frequency = FT2232_MAX_TCK_FREQ; + ft2232_set_frequency( cable, FT2232_MAX_TCK_FREQ ); params->last_tdo_valid = 0; @@ -975,6 +971,7 @@ ft2232_connect( char *params[], cable_t *cable ) return 4; } + cable_params->mpsse_frequency = 0; cable_params->last_tdo_valid = 0; cable_params->send_buffer_len = 1024; cable_params->to_send = 0;