tcl/target: add SPDX tag
[fw/openocd] / tcl / target / dsp56321.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 # Script for freescale DSP56321
4 #
5
6 if { [info exists CHIPNAME] } {
7    set _CHIPNAME $CHIPNAME
8 } else {
9    set _CHIPNAME dsp56321
10 }
11
12 if { [info exists ENDIAN] } {
13    set _ENDIAN $ENDIAN
14 } else {
15   # this defaults to a big endian
16    set _ENDIAN big
17 }
18
19 if { [info exists CPUTAPID] } {
20    set _CPUTAPID $CPUTAPID
21 } else {
22    set _CPUTAPID 0x1181501d
23 }
24
25 #jtag speed
26 adapter speed 4500
27
28 #has only srst
29 reset_config srst_only
30
31 #jtag scan chain
32 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0x1 -expected-id $_CPUTAPID
33
34 #target configuration
35 set _TARGETNAME $_CHIPNAME.cpu
36 target create $_TARGETNAME dsp563xx -endian $_ENDIAN -chain-position $_TARGETNAME
37
38 #working area at base of ram
39 $_TARGETNAME configure -work-area-virt 0