tcl/fpga: add Lattice MachXO3 family support
[fw/openocd] / tcl / board / or1k_generic.cfg
index e7588f9e03b0b7092429bfcb3fc83a0c9b7bd3d7..915a0de249feea7beda8a54fcefd5345a99bb758 100644 (file)
@@ -1,17 +1,25 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 # If you want to use the VJTAG TAP or the XILINX BSCAN,
 # you must set your FPGA TAP ID here
 
 set FPGATAPID 0x020b30dd
 
 # Choose your TAP core (VJTAG , MOHOR or XILINX_BSCAN)
-set TAP_TYPE VJTAG
+if { [info exists TAP_TYPE] == 0} {
+   set TAP_TYPE VJTAG
+}
+
 # Set your chip name
 set CHIPNAME or1200
 
 source [find target/or1k.cfg]
 
+# Set the servers polling period to 1ms (needed to JSP Server)
+poll_period 1
+
 # Set the adapter speed
-adapter_khz 3000
+adapter speed 3000
 
 # Enable the target description feature
 gdb_target_description enable