tcl/fpga: add Lattice MachXO3 family support
[fw/openocd] / tcl / board / crossbow_tech_imote2.cfg
index a7d12156a790c469d3453b41b0cc5416fbef6b9a..07ce8c72732c2ecfd533c63412e112046bae2139 100644 (file)
@@ -1,12 +1,15 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 # Crossbow Technology iMote2
 
 set  CHIPNAME imote2
 source [find target/pxa270.cfg]
 
 # longer-than-normal reset delay
-jtag_nsrst_delay 800
+adapter srst delay 800
 
 reset_config trst_and_srst separate
 
 # works for P30 flash
-flash bank cfi 0x00000000 0x2000000 2 2 $_TARGETNAME
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0x00000000 0x2000000 2 2 $_TARGETNAME