You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
925 B

  1. # Found on the 'TinCanTools' Hammer board.
  2. if { [info exists CHIPNAME] } {
  3. set _CHIPNAME $CHIPNAME
  4. } else {
  5. set _CHIPNAME s3c2410
  6. }
  7. if { [info exists ENDIAN] } {
  8. set _ENDIAN $ENDIAN
  9. } else {
  10. # This config file was defaulting to big endian..
  11. set _ENDIAN little
  12. }
  13. if { [info exists CPUTAPID] } {
  14. set _CPUTAPID $CPUTAPID
  15. } else {
  16. set _CPUTAPID 0xffffffff
  17. }
  18. #use combined on interfaces or targets that cannot set TRST/SRST separately
  19. reset_config trst_and_srst
  20. #jtag scan chain
  21. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
  22. set _TARGETNAME $_CHIPNAME.cpu
  23. target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm920t
  24. $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x30800000 -work-area-size 0x20000 -work-area-backup 0
  25. # speed up memory downloads
  26. arm7_9 fast_memory_access enable
  27. arm7_9 dcc_downloads enable