tcl/target: add SPDX tag
[fw/openocd] / tcl / target / bcm281xx.cfg
index c05682f8795e446dd104c8bd6b35899a5481a1c2..a70a9c5e7dd584f0db881dc21d28bf4bc5b68dc0 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 # BCM281xx
 
 if { [info exists CHIPNAME] } {
@@ -14,20 +16,15 @@ if { [info exists DAP_TAPID] } {
        set _DAP_TAPID 0x4ba00477
 }
 
-jtag newtap $_CHIPNAME dap -expected-id $_DAP_TAPID -irlen 4
+jtag newtap $_CHIPNAME cpu -expected-id $_DAP_TAPID -irlen 4
 
 
-# Dual Cortex A9s
+# Dual Cortex-A9
 set _TARGETNAME0 $_CHIPNAME.cpu0
 set _TARGETNAME1 $_CHIPNAME.cpu1
 
-target create $_TARGETNAME0 cortex_a -chain-position $_CHIPNAME.dap -coreid 0 -dbgbase 0x3fe10000
-target create $_TARGETNAME1 cortex_a -chain-position $_CHIPNAME.dap -coreid 1 -dbgbase 0x3fe12000
-target smp $_TARGETNAME0 $_TARGETNAME1
+dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
 
-$_TARGETNAME0 configure -event gdb-attach {
-       cortex_a dbginit
-}
-$_TARGETNAME1 configure -event gdb-attach {
-       cortex_a dbginit
-}
+target create $_TARGETNAME0 cortex_a -dap $_CHIPNAME.dap -coreid 0 -dbgbase 0x3fe10000
+target create $_TARGETNAME1 cortex_a -dap $_CHIPNAME.dap -coreid 1 -dbgbase 0x3fe12000
+target smp $_TARGETNAME0 $_TARGETNAME1