aboutsummaryrefslogtreecommitdiff
path: root/tcl
diff options
context:
space:
mode:
authorJae Hyun Yoo <quic_jaehyoo@quicinc.com>2022-01-20 12:07:58 -0800
committerAntonio Borneo <borneo.antonio@gmail.com>2022-08-20 15:30:20 +0000
commitbe2e5c6c35f77fecb4df2a19cec05cceac500ca9 (patch)
tree864921b71e4cfaa00fed334415d0128b5de86078 /tcl
parent9ffeedb5794e5ebe7b3a7d7fd63fde4d7124c0dd (diff)
downloadriscv-openocd-be2e5c6c35f77fecb4df2a19cec05cceac500ca9.zip
riscv-openocd-be2e5c6c35f77fecb4df2a19cec05cceac500ca9.tar.gz
riscv-openocd-be2e5c6c35f77fecb4df2a19cec05cceac500ca9.tar.bz2
tcl/interface: add linuxgpiod cfg for Aspeed AST2600
Add linuxgpiod cfg for Aspeed AST2600 for a case if JTAG master needs to be implemented using linuxgpiod intead of hardware JTAG master mode. These AST2600 GPIOs will be mapped to JTAG/SWD signals. +-----------+-------------+-------------+ | signal | GPIO name | gpio offset | +-----------+-------------+-------------+ | TCK/SWCLK | GPIOI2 | 66 | | TMS/SWDIO | GPIOI3 | 67 | | TDI | GPIOI1 | 65 | | TDO | GPIOI4 | 68 | | nTRST | GPIOI0 | 64 | +-----------+-------------+-------------+ Signed-off-by: Jae Hyun Yoo <quic_jaehyoo@quicinc.com> Change-Id: I19278402b0895be12d38c0ecea8fdbc56fd491b8 Reviewed-on: https://review.openocd.org/c/openocd/+/7112 Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Tested-by: jenkins
Diffstat (limited to 'tcl')
-rw-r--r--tcl/interface/ast2600-gpiod.cfg25
1 files changed, 25 insertions, 0 deletions
diff --git a/tcl/interface/ast2600-gpiod.cfg b/tcl/interface/ast2600-gpiod.cfg
new file mode 100644
index 0000000..5cad02f
--- /dev/null
+++ b/tcl/interface/ast2600-gpiod.cfg
@@ -0,0 +1,25 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+# Use AST2600 GPIO through linuxgpiod
+#
+# +-----------+-------------+-------------+
+# | signal | GPIO name | gpio offset |
+# +-----------+-------------+-------------+
+# | TCK/SWCLK | GPIOI2 | 66 |
+# | TMS/SWDIO | GPIOI3 | 67 |
+# | TDI | GPIOI1 | 65 |
+# | TDO | GPIOI4 | 68 |
+# | nTRST | GPIOI0 | 64 |
+# +-----------+-------------+-------------+
+
+adapter driver linuxgpiod
+
+adapter gpio trst 64 -chip 0
+adapter gpio tdi 65 -chip 0
+adapter gpio tck 66 -chip 0
+adapter gpio swclk 66 -chip 0
+adapter gpio tms 67 -chip 0
+adapter gpio swdio 67 -chip 0
+adapter gpio tdo 68 -chip 0
+
+reset_config trst_only separate trst_push_pull