samsung_s3c6410.cfg 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. # -*- tcl -*-
  3. # Target configuration for the Samsung s3c6410 system on chip
  4. # Tested on a SMDK6410
  5. # Processor : ARM1176
  6. # Info: JTAG device found: 0x0032409d (Manufacturer: 0x04e, Part: 0x0324, Version: 0x0)
  7. # [Duane Ellis 27/nov/2008: Above 0x0032409d appears to be copy/paste from other places]
  8. # [and I do not believe it to be accurate, hence the 0xffffffff below]
  9. if { [info exists CHIPNAME] } {
  10. set _CHIPNAME $CHIPNAME
  11. } else {
  12. set _CHIPNAME s3c6410
  13. }
  14. if { [info exists ENDIAN] } {
  15. set _ENDIAN $ENDIAN
  16. } else {
  17. # this defaults to a bigendian
  18. set _ENDIAN little
  19. }
  20. # trace buffer
  21. if { [info exists ETBTAPID] } {
  22. set _ETBTAPID $ETBTAPID
  23. } else {
  24. set _ETBTAPID 0x2b900f0f
  25. }
  26. if { [info exists CPUTAPID] } {
  27. set _CPUTAPID $CPUTAPID
  28. } else {
  29. set _CPUTAPID 0x07b76f0f
  30. }
  31. #jtag scan chain
  32. jtag newtap $_CHIPNAME etb -irlen 4 -expected-id $_ETBTAPID
  33. jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_CPUTAPID
  34. set _TARGETNAME $_CHIPNAME.cpu
  35. target create $_TARGETNAME arm11 -endian $_ENDIAN -chain-position $_TARGETNAME
  36. adapter srst delay 500
  37. jtag_ntrst_delay 500
  38. #reset configuration
  39. reset_config trst_and_srst
  40. # trace setup ... NOTE, "normal full" mode fudges the real ETMv3.1 mode
  41. etm config $_TARGETNAME 16 normal full etb
  42. etb config $_TARGETNAME $_CHIPNAME.etb