8e0a26c6f75dce94361bf39f903df3af705a4eb9
[fw/openocd] / tcl / cpld / xilinx-xcf-p.cfg
1 if { [info exists CHIPNAME] } {
2         set _CHIPNAME $CHIPNAME
3 } else {
4         set _CHIPNAME xcf
5 }
6
7 # IDs acquired from Xilinx's DS123.pdf
8 # XCF08P <v>5057093
9 # XCF16P <v>5058093
10 # XCF32P <v>5059093
11 # The 4 top bits (28:31) are the device revision. Ignore it.
12 jtag newtap $_CHIPNAME flash -irlen 16 -ignore-version \
13         -expected-id 0x05057093 \
14         -expected-id 0x05058093 \
15         -expected-id 0x05059093
16
17 target create xcf.flash testee -chain-position $_CHIPNAME.flash
18 flash bank XCF_P xcf 0 0 0 0 xcf.flash