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.
 
 
 
 
 
 

53 lines
1.3 KiB

  1. # imx35 config
  2. #
  3. reset_config trst_and_srst srst_gates_jtag
  4. if { [info exists CHIPNAME] } {
  5. set _CHIPNAME $CHIPNAME
  6. } else {
  7. set _CHIPNAME imx35
  8. }
  9. if { [info exists ENDIAN] } {
  10. set _ENDIAN $ENDIAN
  11. } else {
  12. set _ENDIAN little
  13. }
  14. if { [info exists CPUTAPID ] } {
  15. set _CPUTAPID $CPUTAPID
  16. } else {
  17. set _CPUTAPID 0x07b3601d
  18. }
  19. if { [info exists SDMATAPID ] } {
  20. set _SDMATAPID $SDMATAPID
  21. } else {
  22. set _SDMATAPID 0x0882601d
  23. }
  24. #========================================
  25. # The "system jtag controller"
  26. # IMX31 reference manual, page 6-28 - figure 6-14
  27. if { [info exists SJCTAPID ] } {
  28. set _SJCTAPID $SJCTAPID
  29. } else {
  30. set _SJCTAPID 0x2b900f0f
  31. }
  32. jtag newtap $_CHIPNAME sjc -irlen 4 -ircapture 0x0 -irmask 0x0 -expected-id $_SJCTAPID
  33. jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_CPUTAPID
  34. # No IDCODE for this TAP
  35. jtag newtap $_CHIPNAME whatchacallit -irlen 4 -ircapture 0 -irmask 0x0 -expected-id 0x0
  36. jtag newtap $_CHIPNAME smda -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_SDMATAPID
  37. set _TARGETNAME $_CHIPNAME.cpu
  38. target create $_TARGETNAME arm11 -endian $_ENDIAN -chain-position $_TARGETNAME
  39. proc power_restore {} { puts "Sensed power restore. No action." }
  40. proc srst_deasserted {} { puts "Sensed nSRST deasserted. No action." }