1 # script for Insilica IS-5114
2 # AKA: Atmel AT76C114 - an ARM946 chip
3 # ATMEL sold his product line to Insilica...
5 if { [info exists CHIPNAME] } {
6 set _CHIPNAME $CHIPNAME
11 if { [info exists ENDIAN] } {
14 # this defaults to a little endian
18 if { [info exists CPUTAPID ] } {
19 set _CPUTAPID $CPUTAPID
21 # force an error till we get a good number
22 set _CPUTAPID 0xffffffff
25 # jtag speed. We need to stick to 16kHz until we've finished reset.
28 reset_config trst_and_srst
30 # Do not specify a tap id here...
31 jtag newtap $_CHIPNAME unknown1 -irlen 8 -ircapture 0x01 -irmask 1
32 # This is the "arm946" chip.
33 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x0e -irmask 0xf
34 jtag newtap $_CHIPNAME unknown2 -irlen 5 -ircapture 1 -irmask 1
38 set _TARGETNAME $_CHIPNAME.cpu
39 target create $_TARGETNAME arm966e -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm966e
41 $_TARGETNAME configure -event reset-start { jtag_rclk 16 }
42 $_TARGETNAME configure -event reset-init {
43 # We can increase speed now that we know the target is halted.
46 $_TARGETNAME configure -work-area-phys 0x50000000 -work-area-size 16384 -work-area-backup 1