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.
 
 
 
 
 
 

51 lines
1.3 KiB

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