aboutsummaryrefslogtreecommitdiff
path: root/tcl/fpga
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2021-03-14 18:19:06 +0100
committerOleksij Rempel <linux@rempel-privat.de>2021-08-25 03:47:50 +0000
commit76ba25a8a570d5e465e9ed3afdd36cf837fcb6a1 (patch)
tree978ba4e75b6ee3b9d7218ff0d1849a4b61a84239 /tcl/fpga
parent3f1c15d2a718c9d417c859172f2b1736a769d822 (diff)
downloadriscv-openocd-76ba25a8a570d5e465e9ed3afdd36cf837fcb6a1.zip
riscv-openocd-76ba25a8a570d5e465e9ed3afdd36cf837fcb6a1.tar.gz
riscv-openocd-76ba25a8a570d5e465e9ed3afdd36cf837fcb6a1.tar.bz2
tcl: add lattice ECP5 family support
Add support for ECP5 FPGA targets and board based on this chips: Radiona ULX3S and Lambdaconcept ECPIX-5 Change-Id: I932fc6e2458cda7d63ac21579acddea5b53410bc Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Reviewed-on: https://review.openocd.org/c/openocd/+/6112 Tested-by: jenkins Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
Diffstat (limited to 'tcl/fpga')
-rw-r--r--tcl/fpga/lattice_ecp5.cfg28
1 files changed, 28 insertions, 0 deletions
diff --git a/tcl/fpga/lattice_ecp5.cfg b/tcl/fpga/lattice_ecp5.cfg
new file mode 100644
index 0000000..a94ada7
--- /dev/null
+++ b/tcl/fpga/lattice_ecp5.cfg
@@ -0,0 +1,28 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+if { [info exists CHIPNAME] } {
+ set _CHIPNAME $_CHIPNAME
+} else {
+ set _CHIPNAME ecp5
+}
+
+# Lattice ECP5 family
+# TAP IDs are extracted from BSDL files found on this page:
+# https://www.latticesemi.com/Products/FPGAandCPLD/ECP5
+#
+# 0x01111043 - LAE5UM_25F/LFE5UM_25F
+# 0x01112043 - LAE5UM_45F/LFE5UM_45F
+# 0x01113043 - LAE5UM_85F/LFE5UM_85
+# 0x21111043 - LFE5U_12F
+# 0x41111043 - LFE5U_25F
+# 0x41112043 - LFE5U_45F
+# 0x41113043 - LFE5U_85F
+# 0x81111043 - LFE5UM5G-25
+# 0x81112043 - LFE5UM5G-45
+# 0x81113043 - LFE5UM5G-85
+
+jtag newtap $_CHIPNAME tap -irlen 8 -irmask 0x83 -ircapture 0x1 \
+ -expected-id 0x01111043 -expected-id 0x01112043 -expected-id 0x01113043 \
+ -expected-id 0x21111043 -expected-id 0x41111043 -expected-id 0x41112043 \
+ -expected-id 0x41113043 -expected-id 0x81111043 -expected-id 0x81112043 \
+ -expected-id 0x81113043