tcl/target: add SPDX tag
[fw/openocd] / tcl / target / samsung_s3c2450.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 # Target configuration for the Samsung 2450 system on chip
4 # Processor       : ARM926ejs (wb) rev 0 (v4l)
5 # Info:   JTAG tap: s3c2450.cpu tap/device found: 0x07926F0F
6
7
8 # FIX!!! what to use here?
9 #
10 # RCLK?
11 #
12 # adapter speed 0
13 #
14 # Really low clock during reset?
15 #
16 # adapter speed 1
17
18 if { [info exists CHIPNAME] } {
19   set _CHIPNAME $CHIPNAME
20 } else {
21   set _CHIPNAME s3c2450
22 }
23
24 if { [info exists ENDIAN] } {
25   set _ENDIAN $ENDIAN
26 } else {
27  # this defaults to a bigendian
28   set _ENDIAN little
29 }
30
31 if { [info exists CPUTAPID] } {
32   set _CPUTAPID $CPUTAPID
33 } else {
34   set _CPUTAPID 0x07926f0f
35 }
36
37 #jtag scan chain
38 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0xE -irmask 0x0f -expected-id $_CPUTAPID
39
40 set _TARGETNAME $_CHIPNAME.cpu
41 target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME
42
43 # FIX!!!!! should this really use srst_pulls_trst?
44 # With srst_pulls_trst "reset halt" will not reset into the
45 # halted mode, but rather "reset run" and then halt the target.
46 #
47 # However, without "srst_pulls_trst", then "reset halt" produces weird
48 # errors:
49 # WARNING: unknown debug reason: 0x0
50 reset_config trst_and_srst