1 if { [info exists CHIPNAME] } {
2 set _CHIPNAME $CHIPNAME
7 if { [info exists ENDIAN] } {
14 # This appears to be a "Version 1" arm7tdmi.
15 if { [info exists CPUTAPID] } {
16 set _CPUTAPID $CPUTAPID
18 set _CPUTAPID 0x1f0f0f0f
20 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
22 set _TARGETNAME $_CHIPNAME.cpu
23 target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME