tcl/target: add SPDX tag
[fw/openocd] / tcl / target / ti-ar7.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 #
4 # Texas Instruments AR7 SOC - used in many adsl modems.
5 # http://www.linux-mips.org/wiki/AR7
6 #
7
8 if { [info exists CHIPNAME] } {
9     set _CHIPNAME $CHIPNAME
10 } else {
11     set _CHIPNAME ti-ar7
12 }
13
14 if { [info exists ENDIAN] } {
15     set _ENDIAN $ENDIAN
16 } else {
17     set _ENDIAN little
18 }
19
20 if { [info exists CPUTAPID] } {
21     set _CPUTAPID $CPUTAPID
22 } else {
23     set _CPUTAPID 0x0000100f
24 }
25
26 jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id $_CPUTAPID
27
28 set _TARGETNAME $_CHIPNAME.cpu
29 target create $_TARGETNAME mips_m4k -endian $_ENDIAN -chain-position $_CHIPNAME.cpu
30
31 # use onboard 4k sram as working area
32 $_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 0x00001000