tcl: add SPDX tag
[fw/openocd] / tcl / cpld / xilinx-xcf-s.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 if { [info exists CHIPNAME] } {
4         set _CHIPNAME $CHIPNAME
5 } else {
6         set _CHIPNAME xcf
7 }
8
9 # IDs acquired from Xilinx's DS123.pdf
10 # XCF01S <v>5044093
11 # XCF02S <v>5045093
12 # XCF04S <v>5046093
13 # The 4 top bits (28:31) are the device revision. Ignore it.
14 jtag newtap $_CHIPNAME flash -irlen 8 -ignore-version \
15         -expected-id 0x05044093 \
16         -expected-id 0x05045093 \
17         -expected-id 0x05046093
18
19 target create xcf.flash testee -chain-position $_CHIPNAME.flash
20 flash bank XCF_S xcf 0 0 0 0 xcf.flash