target.cfg: remove "-work-area-virt 0"
[fw/openocd] / tcl / target / samsung_s3c2440.cfg
1 # Target configuration for the Samsung 2440 system on chip
2 # Tested on a S3C2440 Evaluation board by keesj
3 # Processor       : ARM920Tid(wb) rev 0 (v4l)
4 # Info:   JTAG tap: s3c2440.cpu tap/device found: 0x0032409d (Manufacturer: 0x04e, Part: 0x0324, Version: 0x0)
5
6 if { [info exists CHIPNAME] } {
7    set  _CHIPNAME $CHIPNAME
8 } else {
9    set  _CHIPNAME s3c2440
10 }
11
12 if { [info exists ENDIAN] } {
13    set  _ENDIAN $ENDIAN
14 } else {
15   # this defaults to a bigendian
16    set  _ENDIAN little
17 }
18
19 if { [info exists CPUTAPID ] } {
20    set _CPUTAPID $CPUTAPID
21 } else {
22   # force an error till we get a good number
23    set _CPUTAPID 0x0032409d
24 }
25
26 #jtag scan chain
27 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0x0f -expected-id $_CPUTAPID
28
29 set _TARGETNAME $_CHIPNAME.cpu
30 target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm920t
31
32 $_TARGETNAME configure -work-area-phys 0x200000 -work-area-size 0x4000 -work-area-backup 1
33
34 #reset configuration
35 reset_config trst_and_srst
36