tcl/target: add SPDX tag
[fw/openocd] / tcl / target / samsung_s3c2410.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 # Found on the 'TinCanTools' Hammer board.
4
5 if { [info exists CHIPNAME] } {
6    set _CHIPNAME $CHIPNAME
7 } else {
8    set _CHIPNAME s3c2410
9 }
10
11 if { [info exists ENDIAN] } {
12    set _ENDIAN $ENDIAN
13 } else {
14   # This config file was defaulting to big endian..
15    set _ENDIAN little
16 }
17
18 if { [info exists CPUTAPID] } {
19    set _CPUTAPID $CPUTAPID
20 } else {
21    # Force an error until we get a good number.
22    set _CPUTAPID 0xffffffff
23 }
24
25 #use combined on interfaces or targets that cannot set TRST/SRST separately
26 reset_config trst_and_srst
27
28 #jtag scan chain
29 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
30
31 set _TARGETNAME $_CHIPNAME.cpu
32 target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME
33
34 $_TARGETNAME configure -work-area-phys 0x30800000 -work-area-size 0x20000 -work-area-backup 0
35
36 # speed up memory downloads
37 arm7_9 fast_memory_access enable
38 arm7_9 dcc_downloads enable