aboutsummaryrefslogtreecommitdiff
path: root/tcl/cpld/altera-maxii.cfg
diff options
context:
space:
mode:
authorDaniel Anselmi <danselmi@gmx.ch>2022-12-12 09:49:51 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2023-04-30 14:54:38 +0000
commitdb0609aeb4d5c8dec607afb1e07f5083d3b242c3 (patch)
treec391f7b7cea74cd31410ebf44905078e1575b900 /tcl/cpld/altera-maxii.cfg
parent7c6d44644082eb33d91af62091c37ba1384555ad (diff)
downloadriscv-openocd-db0609aeb4d5c8dec607afb1e07f5083d3b242c3.zip
riscv-openocd-db0609aeb4d5c8dec607afb1e07f5083d3b242c3.tar.gz
riscv-openocd-db0609aeb4d5c8dec607afb1e07f5083d3b242c3.tar.bz2
pld: add support for altera/intel devices
Change-Id: I7977d39c9037ae71139f78c8d381f5f925dc3489 Signed-off-by: Daniel Anselmi <danselmi@gmx.ch> Reviewed-on: https://review.openocd.org/c/openocd/+/7355 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'tcl/cpld/altera-maxii.cfg')
-rw-r--r--tcl/cpld/altera-maxii.cfg21
1 files changed, 21 insertions, 0 deletions
diff --git a/tcl/cpld/altera-maxii.cfg b/tcl/cpld/altera-maxii.cfg
new file mode 100644
index 0000000..2dee37f
--- /dev/null
+++ b/tcl/cpld/altera-maxii.cfg
@@ -0,0 +1,21 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+# Altera MAXII CPLD
+
+if { [info exists CHIPNAME] } {
+ set _CHIPNAME $CHIPNAME
+} else {
+ set _CHIPNAME maxii
+}
+
+# see MAX II Device Handbook
+# Table 3-3: 32-Bit MAX II Device IDCODE
+# Version Part Number Manuf. ID LSB
+# 0000 0010 0000 1010 0001 000 0110 1110 1
+jtag newtap $_CHIPNAME tap -irlen 10 \
+ -expected-id 0x020a10dd \
+ -expected-id 0x020a20dd \
+ -expected-id 0x020a30dd \
+ -expected-id 0x020a40dd \
+ -expected-id 0x020a50dd \
+ -expected-id 0x020a60dd