]> git.sur5r.net Git - openocd/blob - src/tcl/target/samsung_s3c2410.cfg
Move TCL script files -- Step 1 of 2:
[openocd] / src / tcl / target / samsung_s3c2410.cfg
1 # Found on the 'TinCanTools' Hammer board.
2
3 if { [info exists CHIPNAME] } { 
4    set  _CHIPNAME $CHIPNAME    
5 } else {         
6    set  _CHIPNAME s3c2410
7 }
8
9 if { [info exists ENDIAN] } {   
10    set  _ENDIAN $ENDIAN    
11 } else {         
12   # This config file was defaulting to big endian..
13    set  _ENDIAN little
14 }
15
16 if { [info exists CPUTAPID] } { 
17    set  _CPUTAPID $CPUTAPID    
18 } else {         
19    set  _CPUTAPID 0xffffffff
20 }
21
22 #use combined on interfaces or targets that cannot set TRST/SRST separately
23 reset_config trst_and_srst
24
25 #jtag scan chain
26 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
27
28 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
29 target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm920t
30
31 $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x30800000 -work-area-size 0x20000 -work-area-backup 0
32
33 # speed up memory downloads
34 arm7_9 fast_memory_access enable
35 arm7_9 dcc_downloads enable