tcl/target: add SPDX tag
[fw/openocd] / tcl / target / spear3xx.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 # Target configuration for the ST SPEAr3xx family of system on chip
4 # Supported SPEAr300, SPEAr310, SPEAr320
5 # http://www.st.com/spear
6 #
7 # Processor: ARM926ejs
8 # Info:      JTAG tap: spear3xx.cpu tap/device found: 0x07926041
9 # Date:      2009-10-31
10 # Author:    Antonio Borneo <borneo.antonio@gmail.com>
11
12 if { [info exists CHIPNAME] } {
13         set _CHIPNAME $CHIPNAME
14 } else {
15         set _CHIPNAME spear3xx
16 }
17
18 if { [info exists ENDIAN] } {
19         set _ENDIAN $ENDIAN
20 } else {
21         set _ENDIAN little
22 }
23
24 if { [info exists CPUTAPID] } {
25         set _CPUTAPID $CPUTAPID
26 } else {
27         set _CPUTAPID 0x07926041
28 }
29
30 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x01 -irmask 0x03 \
31         -expected-id $_CPUTAPID
32
33 set _TARGETNAME $_CHIPNAME.cpu
34 target create $_TARGETNAME arm926ejs -endian $_ENDIAN \
35         -chain-position $_TARGETNAME
36
37 # SPEAr3xx has a 8K block of sram @ 0xd280.0000
38 # REVISIT: what OS puts virtual address equal to phys?
39 $_TARGETNAME configure \
40         -work-area-virt 0xd2800000 \
41         -work-area-phys 0xd2800000 \
42         -work-area-size 0x2000 \
43         -work-area-backup 0