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.
 
 
 
 
 
 

35 lines
939 B

  1. # Target configuration for the Samsung 2440 system on chip
  2. # Tested on a S3C2440 Evaluation board by keesj
  3. # Processor : ARM920Tid(wb) rev 0 (v4l)
  4. # Info: JTAG tap: s3c2440.cpu tap/device found: 0x0032409d (Manufacturer: 0x04e, Part: 0x0324, Version: 0x0)
  5. if { [info exists CHIPNAME] } {
  6. set _CHIPNAME $CHIPNAME
  7. } else {
  8. set _CHIPNAME s3c2440
  9. }
  10. if { [info exists ENDIAN] } {
  11. set _ENDIAN $ENDIAN
  12. } else {
  13. # this defaults to a bigendian
  14. set _ENDIAN little
  15. }
  16. if { [info exists CPUTAPID] } {
  17. set _CPUTAPID $CPUTAPID
  18. } else {
  19. set _CPUTAPID 0x0032409d
  20. }
  21. #jtag scan chain
  22. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0x0f -expected-id $_CPUTAPID
  23. set _TARGETNAME $_CHIPNAME.cpu
  24. target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME
  25. $_TARGETNAME configure -work-area-phys 0x200000 -work-area-size 0x4000 -work-area-backup 1
  26. #reset configuration
  27. reset_config trst_and_srst