4 if { [info exists CHIPNAME] } {
5 set _CHIPNAME $CHIPNAME
10 if { [info exists ENDIAN] } {
16 if { [info exists CPUTAPID ] } {
17 set _CPUTAPID $CPUTAPID
19 set _CPUTAPID 0x07b3601d
22 if { [info exists SDMATAPID ] } {
23 set _SDMATAPID $SDMATAPID
25 set _SDMATAPID 0x0882601d
28 #========================================
29 # The "system jtag controller"
30 # IMX31 reference manual, page 6-28 - figure 6-14
31 if { [info exists SJCTAPID ] } {
32 set _SJCTAPID $SJCTAPID
34 set _SJCTAPID 0x2b900f0f
37 jtag newtap $_CHIPNAME sjc -irlen 4 -ircapture 0x0 -irmask 0x0 -expected-id $_SJCTAPID
39 jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_CPUTAPID
41 # No IDCODE for this TAP
42 jtag newtap $_CHIPNAME whatchacallit -irlen 4 -ircapture 0 -irmask 0x0 -expected-id 0x0
44 jtag newtap $_CHIPNAME smda -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_SDMATAPID
46 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
47 target create $_TARGETNAME arm11 -endian $_ENDIAN -chain-position $_TARGETNAME
49 proc power_restore {} { puts "Sensed power restore. No action." }
50 proc srst_deasserted {} { puts "Sensed nSRST deasserted. No action." }