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