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