sharpen reset_config for imx27 - use both trst & srst. srst pulls trst.
[fw/openocd] / tcl / target / imx21.cfg
1 #use combined on interfaces or targets that can't set TRST/SRST separately
2 #
3 # Hmmm.... should srst_pulls_trst be used here like i.MX27???
4 reset_config trst_and_srst
5
6 if { [info exists CHIPNAME] } { 
7    set  _CHIPNAME $CHIPNAME    
8 } else {         
9    set  _CHIPNAME imx21
10 }
11
12 if { [info exists ENDIAN] } {   
13    set  _ENDIAN $ENDIAN    
14 } else {         
15    set  _ENDIAN little
16 }
17
18
19 # Note above there is 1 tap 
20
21 # The CPU tap
22 if { [info exists CPUTAPID ] } {
23    set _CPUTAPID $CPUTAPID
24 } else {
25    set _CPUTAPID 0x0792611f
26 }
27 jtag newtap $_CHIPNAME cpu  -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
28
29
30 # Create the GDB Target.
31 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
32 target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm926ejs
33
34 arm7_9 dcc_downloads enable