is5114.cfg 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. # script for Insilica IS-5114
  3. # AKA: Atmel AT76C114 - an ARM946 chip
  4. # ATMEL sold his product line to Insilica...
  5. if { [info exists CHIPNAME] } {
  6. set _CHIPNAME $CHIPNAME
  7. } else {
  8. set _CHIPNAME is5114
  9. }
  10. if { [info exists ENDIAN] } {
  11. set _ENDIAN $ENDIAN
  12. } else {
  13. # this defaults to a little endian
  14. set _ENDIAN little
  15. }
  16. if { [info exists CPUTAPID] } {
  17. set _CPUTAPID $CPUTAPID
  18. } else {
  19. # Force an error until we get a good number.
  20. set _CPUTAPID 0xffffffff
  21. }
  22. # jtag speed. We need to stick to 16kHz until we've finished reset.
  23. adapter speed 16
  24. reset_config trst_and_srst
  25. # Do not specify a tap id here...
  26. jtag newtap $_CHIPNAME unknown1 -irlen 8 -ircapture 0x01 -irmask 1
  27. # This is the "arm946" chip.
  28. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x0e -irmask 0xf
  29. jtag newtap $_CHIPNAME unknown2 -irlen 5 -ircapture 1 -irmask 1
  30. #arm946e-s and
  31. set _TARGETNAME $_CHIPNAME.cpu
  32. target create $_TARGETNAME arm966e -endian $_ENDIAN -chain-position $_TARGETNAME
  33. $_TARGETNAME configure -event reset-start { adapter speed 16 }
  34. $_TARGETNAME configure -event reset-init {
  35. # We can increase speed now that we know the target is halted.
  36. adapter speed 3000
  37. }
  38. $_TARGETNAME configure -work-area-phys 0x50000000 -work-area-size 16384 -work-area-backup 1