1 # SPDX-License-Identifier: GPL-2.0-or-later
3 # Script for freescale DSP56321
6 if { [info exists CHIPNAME] } {
7 set _CHIPNAME $CHIPNAME
12 if { [info exists ENDIAN] } {
15 # this defaults to a big endian
19 if { [info exists CPUTAPID] } {
20 set _CPUTAPID $CPUTAPID
22 set _CPUTAPID 0x1181501d
29 reset_config srst_only
32 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0x1 -expected-id $_CPUTAPID
35 set _TARGETNAME $_CHIPNAME.cpu
36 target create $_TARGETNAME dsp563xx -endian $_ENDIAN -chain-position $_TARGETNAME
38 #working area at base of ram
39 $_TARGETNAME configure -work-area-virt 0