jtag newtap change & huge manual update
[fw/openocd] / src / target / target / is5114.cfg
1 # script for Insilica IS-5114
2 # AKA: Atmel AT76C114 - an ARM946 chip
3 # ATMEL sold his product line to Insilica...
4
5 if { [info exists CHIPNAME] } { 
6    set  _CHIPNAME $CHIPNAME    
7 } else {         
8    set  _CHIPNAME is5114
9 }
10
11 if { [info exists ENDIAN] } {   
12    set  _ENDIAN $ENDIAN    
13 } else {         
14   # this defaults to a little endian
15    set  _ENDIAN little
16 }
17
18 if { [info exists CPUTAPID ] } {
19    set _CPUTAPID $CPUTAPID
20 } else {
21   # force an error till we get a good number
22    set _CPUTAPID 0xffffffff
23 }
24
25 # jtag speed. We need to stick to 16kHz until we've finished reset.
26 jtag_rclk 16
27
28 reset_config trst_and_srst
29
30 # Do not specify a tap id here...
31 #OLD SYNTAX: jtag_device 8 0x1 0x1 0xfe
32 jtag newtap $_CHIPNAME unknown1 -irlen 8 -ircapture 0x01 -irmask 1 
33 #OLD SYNTAX: jtag_device 4 0x1 0xf 0xe
34 # This is the "arm946" chip.
35 jtag newtap $_CHIPNAME cpu      -irlen 4 -ircapture 0x0e -irmask 0xf
36 #OLD SYNTAX: jtag_device 5 0x1 0x1 0x1e
37 jtag newtap $_CHIPNAME unknown2 -irlen 5 -ircapture 1 -irmask 1
38
39
40 #arm946e-s and 
41 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
42 target create $_TARGETNAME arm966e -endian $_ENDIAN  -chain-position $_TARGETNAME  -varient arm966e
43
44 $_TARGETNAME configure -event reset-start { jtag_rclk 16 }
45 $_TARGETNAME configure -event reset-init {
46         # We can increase speed now that we know the target is halted.
47         jtag_rclk 3000
48 }
49 $_TARGETNAME configure -work-area-phys 0x50000000 -work-area-virt 0x50000000 -work-area-size 16384 -work-area-backup 1