target.cfg: TAP id for Hilscher netX 500
[fw/openocd] / tcl / target / netx500.cfg
1 #Hilscher netX 500 CPU
2
3 if { [info exists CHIPNAME] } {
4    set  _CHIPNAME $CHIPNAME
5 } else {
6    set  _CHIPNAME netx500
7 }
8
9 if { [info exists ENDIAN] } {
10    set  _ENDIAN $ENDIAN
11 } else {
12    set  _ENDIAN little
13 }
14
15 if { [info exists CPUTAPID ] } {
16    set _CPUTAPID $CPUTAPID
17 } else {
18    set _CPUTAPID 0x07926021
19 }
20
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
25
26 # jtag scan chain
27 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
28
29 # that TAP is associated with a target
30 set _TARGETNAME $_CHIPNAME.cpu
31 target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME
32