3 if { [info exists CHIPNAME] } {
4 set _CHIPNAME $CHIPNAME
9 if { [info exists ENDIAN] } {
15 if { [info exists CPUTAPID ] } {
16 set _CPUTAPID $CPUTAPID
18 set _CPUTAPID 0x07926021
21 # FIXME most reset config belongs in board code
22 reset_config trst_and_srst
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