1fea3fa37245b858b047b75510e98b9f62201f2e
[fw/openocd] / tcl / target / imx28.cfg
1 # i.MX28 config file.
2 # based off of the imx21.cfg file.
3
4 reset_config trst_and_srst
5
6 #jtag nTRST and nSRST delay
7 adapter srst delay 100
8 jtag_ntrst_delay 100
9
10 if { [info exists CHIPNAME] } {
11    set  _CHIPNAME $CHIPNAME
12 } else {
13    set  _CHIPNAME imx28
14 }
15
16 if { [info exists ENDIAN] } {
17    set  _ENDIAN $ENDIAN
18 } else {
19    set  _ENDIAN little
20 }
21
22
23 # Note above there is 1 tap
24
25 # The CPU tap
26 if { [info exists CPUTAPID] } {
27    set _CPUTAPID $CPUTAPID
28 } else {
29    set _CPUTAPID 0x079264f3
30 }
31 jtag newtap $_CHIPNAME cpu  -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
32
33
34 # Create the GDB Target.
35 set _TARGETNAME $_CHIPNAME.cpu
36 target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME
37
38 arm7_9 dcc_downloads enable