tcl/target: add SPDX tag
[fw/openocd] / tcl / target / renesas_rcar_gen2.cfg
index 9f7421d914e2813971cc69f2d25f153734293751..31ba15685777ab51710b4b6b9d814045b9f0c2d2 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 # Renesas R-Car Generation 2 SOCs
 # - There are a combination of Cortex-A15s and Cortex-A7s for each Gen2 SOC
 # - Each SOC can boot through any of the, up to 2, core types that it has
@@ -87,12 +89,14 @@ dap create $_DAPNAME -chain-position $_CHIPNAME.cpu
 set CA15_DBGBASE {0x800B0000 0x800B2000 0x800B4000 0x800B6000}
 set CA7_DBGBASE  {0x800F0000 0x800F2000 0x800F4000 0x800F6000}
 
+set _targets ""
 set smp_targets ""
 
 proc setup_ca {core_name dbgbase num boot} {
        global _CHIPNAME
        global _DAPNAME
        global smp_targets
+       global _targets
        for { set _core 0 } { $_core < $num } { incr _core } {
                set _TARGETNAME $_CHIPNAME.$core_name.$_core
                set _CTINAME $_TARGETNAME.cti
@@ -120,4 +124,7 @@ if { [string equal $_boot_core CA15] } {
        setup_ca a7  $CA7_DBGBASE  $_num_ca7 0
 }
 
+source [find target/renesas_rcar_reset_common.cfg]
+
 eval "target smp $smp_targets"
+targets $_targets