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.
 
 
 
 
 
 

37 lines
932 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. # Force an error until we get a good number.
  17. set _CPUTAPID 0xffffffff
  18. }
  19. #use combined on interfaces or targets that cannot set TRST/SRST separately
  20. reset_config trst_and_srst
  21. #jtag scan chain
  22. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
  23. set _TARGETNAME $_CHIPNAME.cpu
  24. target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME
  25. $_TARGETNAME configure -work-area-phys 0x30800000 -work-area-size 0x20000 -work-area-backup 0
  26. # speed up memory downloads
  27. arm7_9 fast_memory_access enable
  28. arm7_9 dcc_downloads enable