flash: New Spansion FM4 flash driver
[openocd.git] / tcl / target / is5114.cfg
blob31f1aa1aa0b66f6d5c01056e1a242568e36f2608
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
7 } else {
8    set _CHIPNAME is5114
11 if { [info exists ENDIAN] } {
12    set _ENDIAN $ENDIAN
13 } else {
14   # this defaults to a little endian
15    set _ENDIAN little
18 if { [info exists CPUTAPID] } {
19    set _CPUTAPID $CPUTAPID
20 } else {
21    # Force an error until we get a good number.
22    set _CPUTAPID 0xffffffff
25 # jtag speed. We need to stick to 16kHz until we've finished reset.
26 adapter_khz 16
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
37 #arm946e-s and
38 set _TARGETNAME $_CHIPNAME.cpu
39 target create $_TARGETNAME arm966e -endian $_ENDIAN -chain-position $_TARGETNAME
41 $_TARGETNAME configure -event reset-start { adapter_khz 16 }
42 $_TARGETNAME configure -event reset-init {
43         # We can increase speed now that we know the target is halted.
44         adapter_khz 3000
46 $_TARGETNAME configure -work-area-phys 0x50000000 -work-area-size 16384 -work-area-backup 1