aboutsummaryrefslogtreecommitdiff
path: root/tcl/interface/sysfsgpio-raspberrypi.cfg
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2016-12-31 16:05:55 +0300
committerPaul Fertser <fercerpav@gmail.com>2018-01-30 07:39:24 +0000
commit5a98ff786e11cec4c4ed4f53c69ab2d6de30eac9 (patch)
tree17325e1c4afb8527d891348e89145669328735e6 /tcl/interface/sysfsgpio-raspberrypi.cfg
parent3c9bd7c6f30a34e3930e44dd2e8ce5f5a877b4eb (diff)
downloadriscv-openocd-5a98ff786e11cec4c4ed4f53c69ab2d6de30eac9.zip
riscv-openocd-5a98ff786e11cec4c4ed4f53c69ab2d6de30eac9.tar.gz
riscv-openocd-5a98ff786e11cec4c4ed4f53c69ab2d6de30eac9.tar.bz2
tcl: interface: harmonise RPi configs
Make all configs specify same JTAG and SWD GPIO numbers. Change-Id: I65b09c1671c97f253f0aab88e511de7409d91e0a Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/3932 Tested-by: jenkins
Diffstat (limited to 'tcl/interface/sysfsgpio-raspberrypi.cfg')
-rw-r--r--tcl/interface/sysfsgpio-raspberrypi.cfg14
1 files changed, 12 insertions, 2 deletions
diff --git a/tcl/interface/sysfsgpio-raspberrypi.cfg b/tcl/interface/sysfsgpio-raspberrypi.cfg
index 3636422..9f5b87c 100644
--- a/tcl/interface/sysfsgpio-raspberrypi.cfg
+++ b/tcl/interface/sysfsgpio-raspberrypi.cfg
@@ -14,8 +14,18 @@ interface sysfsgpio
# 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
+# Each of the SWD lines need a gpio number set: swclk swdio
+# Header pin numbers: 23 22
+sysfsgpio_swd_nums 11 25
+
+# If you define trst or srst, use appropriate reset_config
# Header pin numbers: TRST - 26, SRST - 18
-sysfsgpio_trst_num 7
+
+# sysfsgpio_trst_num 7
+# reset_config trst_only
+
# sysfsgpio_srst_num 24
+# reset_config srst_only srst_push_pull
+# or if you have both connected,
+# reset_config trst_and_srst srst_push_pull