flash: New Spansion FM4 flash driver
[openocd.git] / tcl / target / samsung_s3c6410.cfg
blob88fe966dcd3b42f7c84963ac6ba0227b6d499da2
1 # -*- tcl -*-
2 # Target configuration for the Samsung s3c6410 system on chip
3 # Tested on a SMDK6410
4 # Processor       : ARM1176
5 # Info:   JTAG device found: 0x0032409d (Manufacturer: 0x04e, Part: 0x0324, Version: 0x0)
6 # [Duane Ellis 27/nov/2008: Above 0x0032409d appears to be copy/paste from other places]
7 # [and I do not believe it to be accurate, hence the 0xffffffff below]
9 if { [info exists CHIPNAME] } {
10    set _CHIPNAME $CHIPNAME
11 } else {
12    set _CHIPNAME s3c6410
15 if { [info exists ENDIAN] } {
16    set _ENDIAN $ENDIAN
17 } else {
18   # this defaults to a bigendian
19    set _ENDIAN little
22 # trace buffer
23 if { [info exists ETBTAPID] } {
24    set _ETBTAPID $ETBTAPID
25 } else {
26    set _ETBTAPID 0x2b900f0f
29 if { [info exists CPUTAPID] } {
30    set _CPUTAPID $CPUTAPID
31 } else {
32    set _CPUTAPID 0x07b76f0f
35 #jtag scan chain
37 jtag newtap $_CHIPNAME etb -irlen 4 -expected-id $_ETBTAPID
38 jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_CPUTAPID
40 set _TARGETNAME $_CHIPNAME.cpu
41 target create $_TARGETNAME arm11 -endian $_ENDIAN -chain-position $_TARGETNAME
43 adapter_nsrst_delay 500
44 jtag_ntrst_delay 500
46 #reset configuration
47 reset_config trst_and_srst
49 # trace setup ... NOTE, "normal full" mode fudges the real ETMv3.1 mode
50 etm config $_TARGETNAME 16 normal full etb
51 etb config $_TARGETNAME $_CHIPNAME.etb