ARM: ADIv5 export cleanup
[openocd/jflash.git] / tcl / target / netx500.cfg
blob90315afda0212a3195d93bef616459a8288eeded
1 #Hilscher netX 500 CPU
3 if { [info exists CHIPNAME] } {
4    set  _CHIPNAME $CHIPNAME
5 } else {
6    set  _CHIPNAME netx500
9 if { [info exists ENDIAN] } {
10    set  _ENDIAN $ENDIAN
11 } else {
12    set  _ENDIAN little
15 if { [info exists CPUTAPID ] } {
16    set _CPUTAPID $CPUTAPID
17 } else {
18    set _CPUTAPID 0x07926021
21 # FIXME most reset config belongs in board code
22 reset_config trst_and_srst
23 jtag_nsrst_delay 100
24 jtag_ntrst_delay 100
26 # jtag scan chain
27 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
29 # that TAP is associated with a target
30 set _TARGETNAME $_CHIPNAME.cpu
31 target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME