tcl: add SPDX tag
[fw/openocd] / tcl / cpld / xilinx-xcf-p.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 # XCF08P <v>5057093
11 # XCF16P <v>5058093
12 # XCF32P <v>5059093
13 # The 4 top bits (28:31) are the device revision. Ignore it.
14 jtag newtap $_CHIPNAME flash -irlen 16 -ignore-version \
15         -expected-id 0x05057093 \
16         -expected-id 0x05058093 \
17         -expected-id 0x05059093
18
19 target create xcf.flash testee -chain-position $_CHIPNAME.flash
20 flash bank XCF_P xcf 0 0 0 0 xcf.flash