tcl/target: add SPDX tag
[fw/openocd] / tcl / target / samsung_s3c6410.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 # -*- tcl -*-
4 # Target configuration for the Samsung s3c6410 system on chip
5 # Tested on a SMDK6410
6 # Processor       : ARM1176
7 # Info:   JTAG device found: 0x0032409d (Manufacturer: 0x04e, Part: 0x0324, Version: 0x0)
8 # [Duane Ellis 27/nov/2008: Above 0x0032409d appears to be copy/paste from other places]
9 # [and I do not believe it to be accurate, hence the 0xffffffff below]
10
11 if { [info exists CHIPNAME] } {
12    set _CHIPNAME $CHIPNAME
13 } else {
14    set _CHIPNAME s3c6410
15 }
16
17 if { [info exists ENDIAN] } {
18    set _ENDIAN $ENDIAN
19 } else {
20   # this defaults to a bigendian
21    set _ENDIAN little
22 }
23
24 # trace buffer
25 if { [info exists ETBTAPID] } {
26    set _ETBTAPID $ETBTAPID
27 } else {
28    set _ETBTAPID 0x2b900f0f
29 }
30
31 if { [info exists CPUTAPID] } {
32    set _CPUTAPID $CPUTAPID
33 } else {
34    set _CPUTAPID 0x07b76f0f
35 }
36
37 #jtag scan chain
38
39 jtag newtap $_CHIPNAME etb -irlen 4 -expected-id $_ETBTAPID
40 jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_CPUTAPID
41
42 set _TARGETNAME $_CHIPNAME.cpu
43 target create $_TARGETNAME arm11 -endian $_ENDIAN -chain-position $_TARGETNAME
44
45 adapter srst delay 500
46 jtag_ntrst_delay 500
47
48 #reset configuration
49 reset_config trst_and_srst
50
51 # trace setup ... NOTE, "normal full" mode fudges the real ETMv3.1 mode
52 etm config $_TARGETNAME 16 normal full etb
53 etb config $_TARGETNAME $_CHIPNAME.etb