aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrv96 <mrv96@users.noreply.github.com>2022-09-19 23:47:39 +0200
committermrv96 <mrv96@users.noreply.github.com>2022-09-19 23:47:39 +0200
commitc96a24a30775689a928d22d30c3c43cda38b8b94 (patch)
treef65bd56546ba8cba05f468a2fadefe280e29ac78
parent671d99b89bebe74a4d8f8ef198e7b52c15388c3e (diff)
downloadriscv-openocd-c96a24a30775689a928d22d30c3c43cda38b8b94.zip
riscv-openocd-c96a24a30775689a928d22d30c3c43cda38b8b94.tar.gz
riscv-openocd-c96a24a30775689a928d22d30c3c43cda38b8b94.tar.bz2
Add Digilent JTAG-HS2 cJTAG configuration
Signed-off-by: mrv96 <mrv96@users.noreply.github.com>
-rw-r--r--tcl/interface/ftdi/digilent-hs2-cjtag.cfg19
1 files changed, 19 insertions, 0 deletions
diff --git a/tcl/interface/ftdi/digilent-hs2-cjtag.cfg b/tcl/interface/ftdi/digilent-hs2-cjtag.cfg
new file mode 100644
index 0000000..067f664
--- /dev/null
+++ b/tcl/interface/ftdi/digilent-hs2-cjtag.cfg
@@ -0,0 +1,19 @@
+# this supports JTAG-HS2 (and apparently Nexys4 as well)
+
+adapter driver ftdi
+ftdi device_desc "Digilent Adept USB Device"
+ftdi vid_pid 0x0403 0x6014
+
+ftdi channel 0
+ftdi layout_init 0xc0e8 0xe0eb
+
+reset_config none
+
+# These signals are used for cJTAG escape sequence on initialization only
+ftdi layout_signal TCK -data 0x0001
+ftdi layout_signal TDI -data 0x0002
+ftdi layout_signal TDO -input 0x0004
+ftdi layout_signal TMS -data 0x0008
+ftdi layout_signal JTAG_SEL -ndata 0xc000
+
+ftdi layout_signal TMSC_EN -data 0x0020