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.
 
 
 
 
 
 

50 lines
1.3 KiB

  1. # -*- tcl -*-
  2. # Target configuration for the Samsung s3c6410 system on chip
  3. # Tested on a SMDK6410
  4. # Processor : ARM1176
  5. # Info: JTAG device found: 0x0032409d (Manufacturer: 0x04e, Part: 0x0324, Version: 0x0)
  6. # [Duane Ellis 27/nov/2008: Above 0x0032409d appears to be copy/paste from other places]
  7. # [and I do not believe it to be accurate, hence the 0xffffffff below]
  8. if { [info exists CHIPNAME] } {
  9. set _CHIPNAME $CHIPNAME
  10. } else {
  11. set _CHIPNAME s3c6410
  12. }
  13. if { [info exists ENDIAN] } {
  14. set _ENDIAN $ENDIAN
  15. } else {
  16. # this defaults to a bigendian
  17. set _ENDIAN little
  18. }
  19. if { [info exists BSTAPID ] } {
  20. set _BSTAPID $BSTAPID
  21. } else {
  22. # force an error till we get a good number
  23. set _BSTAPID 0x2b900f0f
  24. }
  25. if { [info exists CPUTAPID ] } {
  26. set _CPUTAPID $CPUTAPID
  27. } else {
  28. # force an error till we get a good number
  29. set _CPUTAPID 0x07b76f0f
  30. }
  31. #jtag scan chain
  32. # I think the "unknown" is the boundry scan tap
  33. jtag newtap $_CHIPNAME unknown -irlen 4 -ircapture 0x1 -irmask 0xe -expected-id $_BSTAPID
  34. jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_CPUTAPID
  35. set _TARGETNAME $_CHIPNAME.cpu
  36. target create $_TARGETNAME arm11 -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm1176
  37. jtag_nsrst_delay 500
  38. jtag_ntrst_delay 500
  39. #reset configuration
  40. reset_config trst_and_srst