tcl/target: add SPDX tag
[fw/openocd] / tcl / target / armada370.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 #
4 # armada370 -- support for the Marvell Armada/370 CPU family
5 #
6 # gerg@uclinux.org, OCT-2013
7 #
8
9 if { [info exists CHIPNAME] } {
10    set _CHIPNAME $CHIPNAME
11 } else {
12    set _CHIPNAME armada370
13 }
14
15 if { [info exists CPUTAPID] } {
16    set _CPUTAPID $CPUTAPID
17 } else {
18    set _CPUTAPID 0x4ba00477
19 }
20
21 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
22
23 set _TARGETNAME $_CHIPNAME.cpu
24 dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
25 target create $_TARGETNAME cortex_a -dap $_CHIPNAME.dap
26
27 proc armada370_dbginit {target} {
28      cortex_a dbginit
29 }
30
31 $_TARGETNAME configure -event reset-assert-post "armada370_dbginit $_TARGETNAME"
32
33 dap apsel 1