update zy1000 to svn head jtag api
[fw/openocd] / src / target / target / s3c2440.cfg
1 # Target configuration for the Samsung 2440 system on chip
2 # Tested on a S3C2440 Evaluation board
3 # Processor       : ARM920Tid(wb) rev 0 (v4l)
4 # Info:   JTAG device found: 0x0032409d (Manufacturer: 0x04e, Part: 0x0324, Version: 0x0)
5 # [Duane Ellis 27/nov/2008: Above 0x0032409d appears to be copy/paste from other places]
6 # [and I do not believe it to be accurate, hence the 0xffffffff below]
7
8 if { [info exists CHIPNAME] } { 
9    set  _CHIPNAME $CHIPNAME    
10 } else {         
11    set  _CHIPNAME s3c2440
12 }
13
14 if { [info exists ENDIAN] } {   
15    set  _ENDIAN $ENDIAN    
16 } else {         
17   # this defaults to a bigendian
18    set  _ENDIAN little
19 }
20
21 if { [info exists CPUTAPID ] } {
22    set _CPUTAPID $CPUTAPID
23 } else {
24   # force an error till we get a good number
25    set _CPUTAPID 0xFFFFFFFF
26 }
27
28 #jtag scan chain
29 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0x0f -expected-id $_CPUTAPID
30
31 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
32 target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm920t
33 $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x200000 -work-area-size 0x4000 -work-area-backup 1
34
35 #reset configuration
36 reset_config trst_and_srst
37