Hello,
i am new on this list and want to start with my first patch, turtelizer2,
Hardware-Rev. C (current), supports the TRST pin, which was not supported
in the first public revision B.
To make this pin controllable by urjtag, the attached patch is required.
Side-Effects: None, because the pin 19 of the FT2232 is not connected to
anything in earlier hardware revision B.
What do you think?
Regards,
Steffen
diff -Naur trunk/urjtag/src/tap/cable/ft2232.c trunk.new/urjtag/src/tap/cable/ft2232.c
--- trunk/urjtag/src/tap/cable/ft2232.c 2013-11-08 15:56:22.000000000 +0100
+++ trunk.new/urjtag/src/tap/cable/ft2232.c 2013-11-08 16:55:46.760835467 +0100
@@ -141,10 +141,12 @@
/* bit and bitmask definitions for Turtelizer 2 */
#define BIT_TURTELIZER2_nJTAGOE 4
+#define BIT_TURTELIZER2_nTRST 5
#define BIT_TURTELIZER2_RST 6
#define BIT_TURTELIZER2_nTX1LED 2
#define BIT_TURTELIZER2_nRX1LED 3
#define BITMASK_TURTELIZER2_nJTAGOE (1 << BIT_TURTELIZER2_nJTAGOE)
+#define BITMASK_TURTELIZER2_nTRST (1 << BIT_TURTELIZER2_nTRST)
#define BITMASK_TURTELIZER2_RST (1 << BIT_TURTELIZER2_RST)
#define BITMASK_TURTELIZER2_nTX1LED (1 << BIT_TURTELIZER2_nTX1LED)
#define BITMASK_TURTELIZER2_nRX1LED (1 << BIT_TURTELIZER2_nRX1LED)
@@ -642,7 +644,7 @@
set RST to 0 -> inactive nSRST */
params->low_byte_value = 0;
params->low_byte_dir =
- BITMASK_TURTELIZER2_nJTAGOE | BITMASK_TURTELIZER2_RST;
+ BITMASK_TURTELIZER2_nJTAGOE | BITMASK_TURTELIZER2_RST | BITMASK_TURTELIZER2_nTRST;
/* Set Data Bits Low Byte
TCK = 0, TMS = 1, TDI = 0 */
@@ -667,7 +669,7 @@
ft2232_set_frequency (cable, FT2232_MAX_TCK_FREQ);
- params->bit_trst = -1; /* not used */
+ params->bit_trst = BIT_TURTELIZER2_nTRST; /* member of LOW byte */
params->bit_reset = BIT_TURTELIZER2_RST; /* member of LOW byte */
params->last_tdo_valid = 0;
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
UrJTAG-development mailing list
UrJTAG-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/urjtag-development