aboutsummaryrefslogtreecommitdiff
path: root/tcl/cpld/xilinx-xcf-s.cfg
diff options
context:
space:
mode:
authorbarthess <barthess@yandex.ru>2016-12-11 15:11:41 +0300
committerPaul Fertser <fercerpav@gmail.com>2018-01-13 09:13:14 +0000
commitdc28a6e593cc53117ba9b8e6e7ab9d20f49c5e4b (patch)
treee2a1e5936832b4201c091fbf38d79d9c2a0b1799 /tcl/cpld/xilinx-xcf-s.cfg
parent99b03d3bfbde879f07b02990c9d8bec3b0ee3927 (diff)
downloadriscv-openocd-dc28a6e593cc53117ba9b8e6e7ab9d20f49c5e4b.zip
riscv-openocd-dc28a6e593cc53117ba9b8e6e7ab9d20f49c5e4b.tar.gz
riscv-openocd-dc28a6e593cc53117ba9b8e6e7ab9d20f49c5e4b.tar.bz2
XCF (Xilinx platfrom flash) support.
Change-Id: I4ee6db5f0abdb9fd279cc0edd13f71952a9d295d Signed-off-by: Uladzimir Pylinski <barthess@yandex.ru> Reviewed-on: http://openocd.zylin.com/3914 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Diffstat (limited to 'tcl/cpld/xilinx-xcf-s.cfg')
-rw-r--r--tcl/cpld/xilinx-xcf-s.cfg18
1 files changed, 18 insertions, 0 deletions
diff --git a/tcl/cpld/xilinx-xcf-s.cfg b/tcl/cpld/xilinx-xcf-s.cfg
new file mode 100644
index 0000000..a3c79a3
--- /dev/null
+++ b/tcl/cpld/xilinx-xcf-s.cfg
@@ -0,0 +1,18 @@
+if { [info exists CHIPNAME] } {
+ set _CHIPNAME $CHIPNAME
+} else {
+ set _CHIPNAME xcf
+}
+
+# IDs acquired from Xilinx's DS123.pdf
+# XCF01S <v>5044093
+# XCF02S <v>5045093
+# XCF04S <v>5046093
+# The 4 top bits (28:31) are the device revision. Ignore it.
+jtag newtap $_CHIPNAME flash -irlen 8 -ignore-version \
+ -expected-id 0x05044093 \
+ -expected-id 0x05045093 \
+ -expected-id 0x05046093
+
+target create xcf.flash testee -chain-position $_CHIPNAME.flash
+flash bank XCF_S xcf 0 0 0 0 xcf.flash