aboutsummaryrefslogtreecommitdiff
path: root/tcl
diff options
context:
space:
mode:
authorMarc Reilly <marc@cpdesign.com.au>2012-08-20 09:46:07 +1000
committerFreddie Chopin <freddie.chopin@gmail.com>2012-09-26 16:16:17 +0000
commitfe52282c37cc0c4ab9863e95ef6970e6fad540b4 (patch)
tree62fe800ed0fac86ad3d286774b61be2b48cca8fa /tcl
parenta4830e7a6ad0c6bf954184894a0dbec74075306b (diff)
downloadriscv-openocd-fe52282c37cc0c4ab9863e95ef6970e6fad540b4.zip
riscv-openocd-fe52282c37cc0c4ab9863e95ef6970e6fad540b4.tar.gz
riscv-openocd-fe52282c37cc0c4ab9863e95ef6970e6fad540b4.tar.bz2
drivers: new jtag bitbang driver using sysfs gpio
This driver implements a bitbang jtag interface using gpio lines exported via sysfs. The aim of this driver implementation is to use system GPIOs but to avoid the need for an additional kernel driver. A config suitable for RaspberryPi is included. Change-Id: Ib2acf720247a219768d1cbfeebd88057ed2d7b8b Signed-off-by: Marc Reilly <marc@cpdesign.com.au> Reviewed-on: http://openocd.zylin.com/762 Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk> Tested-by: jenkins Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Diffstat (limited to 'tcl')
-rw-r--r--tcl/interface/sysfsgpio-raspberrypi.cfg24
1 files changed, 24 insertions, 0 deletions
diff --git a/tcl/interface/sysfsgpio-raspberrypi.cfg b/tcl/interface/sysfsgpio-raspberrypi.cfg
new file mode 100644
index 0000000..105173c
--- /dev/null
+++ b/tcl/interface/sysfsgpio-raspberrypi.cfg
@@ -0,0 +1,24 @@
+#
+# Config for using RaspberryPi's expansion header
+#
+# This is best used with a fast enough buffer but also
+# is suitable for direct connection if the target voltage
+# matches RPi's 3.3V
+#
+# Do not forget the GND connection, pin 6 of the expansion header.
+#
+
+interface sysfsgpio
+
+# This has no effect on the driver, but is required
+adapter_khz 100
+
+# Each of the JTAG lines need a gpio number set: tck tms tdi tdo
+# Header pin numbers: 23 22 19 21
+sysfsgpio_jtag_nums 11 25 10 9
+
+# At least one of srst or trst needs to be specified
+# Header pin numbers: TRST - 26, SRST - 18
+sysfsgpio_trst_num 7
+# sysfsgpio_srst_num 24
+