tcl/board: add SPDX tag
[fw/openocd] / tcl / board / tocoding_poplar.cfg
index fd6615605d7e117bc05df3b3defdcef0d298d9ca..5f9dba43b01f48a15a69a411a554a939a494352b 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 #
 # board configuration for Tocoding Poplar
 #
@@ -5,15 +7,12 @@
 # board does not feature anything but JTAG
 transport select jtag
 
-adapter_khz 10000
+adapter speed 10000
 
 # SRST-only reset configuration
 reset_config srst_only srst_push_pull
 
-source [find tcl/target/hi3798.cfg]
-
-# halt the cores when gdb attaches
-${_TARGETNAME}0 configure -event gdb-attach "halt"
+source [find target/hi3798.cfg]
 
 # make sure the default target is the boot core
 targets ${_TARGETNAME}0
@@ -22,7 +21,7 @@ proc core_up { args } {
        global _TARGETNAME
 
        # examine remaining cores
-       foreach _core [set args] {
+       foreach _core $args {
                ${_TARGETNAME}$_core arp_examine
        }
 }