tcl/target: add SPDX tag
[fw/openocd] / tcl / target / imx21.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 #use combined on interfaces or targets that can't set TRST/SRST separately
4 #
5 # Hmmm.... should srst_pulls_trst be used here like i.MX27???
6 reset_config trst_and_srst
7
8 if { [info exists CHIPNAME] } {
9    set _CHIPNAME $CHIPNAME
10 } else {
11    set _CHIPNAME imx21
12 }
13
14 if { [info exists ENDIAN] } {
15    set _ENDIAN $ENDIAN
16 } else {
17    set _ENDIAN little
18 }
19
20
21 # Note above there is 1 tap
22
23 # The CPU tap
24 if { [info exists CPUTAPID] } {
25    set _CPUTAPID $CPUTAPID
26 } else {
27    set _CPUTAPID 0x0792611f
28 }
29 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
30
31
32 # Create the GDB Target.
33 set _TARGETNAME $_CHIPNAME.cpu
34 target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME
35
36 arm7_9 dcc_downloads enable