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;