tcl/target: add SPDX tag
[fw/openocd] / tcl / target / renesas_s7g2.cfg
index a09377b2d2ce3da7f37d187a9a1243c0f483da58..fa9c579755b5e7f92343a3444525aa069c7f591f 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 #
 # Renesas Synergy S7 G2 w/ ARM Cortex-M4 @ 240 MHz
 #
@@ -29,9 +31,10 @@ if { [using_jtag] } {
 }
 
 swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPU_TAPID
+dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
 
 set _TARGETNAME $_CHIPNAME.cpu
-target create $_TARGETNAME cortex_m -chain-position $_TARGETNAME
+target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap
 
 if { [info exists WORKAREASIZE] } {
        set _WORKAREASIZE $WORKAREASIZE
@@ -47,4 +50,4 @@ if { ![using_hla] } {
        cortex_m reset_config sysresetreq
 }
 
-adapter_khz 1000
+adapter speed 1000