tcl/target: add SPDX tag
[fw/openocd] / tcl / target / feroceon.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 ######################################
4 # Target:    Marvell Feroceon CPU core
5 ######################################
6
7 if { [info exists CHIPNAME] } {
8    set _CHIPNAME $CHIPNAME
9 } else {
10    set _CHIPNAME feroceon
11 }
12
13 if { [info exists ENDIAN] } {
14    set _ENDIAN $ENDIAN
15 } else {
16    set _ENDIAN little
17 }
18
19 if { [info exists CPUTAPID] } {
20    set _CPUTAPID $CPUTAPID
21 } else {
22    set _CPUTAPID 0x20a023d3
23 }
24
25 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
26
27 set _TARGETNAME $_CHIPNAME.cpu
28 target create $_TARGETNAME feroceon -endian $_ENDIAN -chain-position $_TARGETNAME
29
30 reset_config trst_and_srst
31 adapter srst delay 200
32 jtag_ntrst_delay 200