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.
 
 
 
 
 
 

87 lines
2.4 KiB

  1. # Marvell PXA3xx
  2. if { [info exists CHIPNAME] } {
  3. set _CHIPNAME $CHIPNAME
  4. } else {
  5. set _CHIPNAME pxa3xx
  6. }
  7. if { [info exists ENDIAN] } {
  8. set _ENDIAN $ENDIAN
  9. } else {
  10. set _ENDIAN little
  11. }
  12. # IDs for all currently known PXA3xx chips
  13. if { [info exists CPUTAPID_PXA30X_A0 ] } {
  14. set _CPUTAPID_PXA30X_A0 $CPUTAPID_PXA30X_A0
  15. } else {
  16. set _CPUTAPID_PXA30X_A0 0x0E648013
  17. }
  18. if { [info exists CPUTAPID_PXA30X_A1 ] } {
  19. set _CPUTAPID_PXA30X_A1 $CPUTAPID_PXA30X_A1
  20. } else {
  21. set _CPUTAPID_PXA30X_A1 0x1E648013
  22. }
  23. if { [info exists CPUTAPID_PXA31X_A0 ] } {
  24. set _CPUTAPID_PXA31X_A0 $CPUTAPID_PXA31X_A0
  25. } else {
  26. set _CPUTAPID_PXA31X_A0 0x0E649013
  27. }
  28. if { [info exists CPUTAPID_PXA31X_A1 ] } {
  29. set _CPUTAPID_PXA31X_A1 $CPUTAPID_PXA31X_A1
  30. } else {
  31. set _CPUTAPID_PXA31X_A1 0x1E649013
  32. }
  33. if { [info exists CPUTAPID_PXA31X_A2 ] } {
  34. set _CPUTAPID_PXA31X_A2 $CPUTAPID_PXA31X_A2
  35. } else {
  36. set _CPUTAPID_PXA31X_A2 0x2E649013
  37. }
  38. if { [info exists CPUTAPID_PXA31X_B0 ] } {
  39. set _CPUTAPID_PXA31X_B0 $CPUTAPID_PXA31X_B0
  40. } else {
  41. set _CPUTAPID_PXA31X_B0 0x3E649013
  42. }
  43. if { [info exists CPUTAPID_PXA32X_B1 ] } {
  44. set _CPUTAPID_PXA32X_B1 $CPUTAPID_PXA32X_B1
  45. } else {
  46. set _CPUTAPID_PXA32X_B1 0x5E642013
  47. }
  48. if { [info exists CPUTAPID_PXA32X_B2 ] } {
  49. set _CPUTAPID_PXA32X_B2 $CPUTAPID_PXA32X_B2
  50. } else {
  51. set _CPUTAPID_PXA32X_B2 0x6E642013
  52. }
  53. if { [info exists CPUTAPID_PXA32X_C0 ] } {
  54. set _CPUTAPID_PXA32X_C0 $CPUTAPID_PXA32X_C0
  55. } else {
  56. set _CPUTAPID_PXA32X_C0 0x7E642013
  57. }
  58. # set jtag_nsrst_delay to the delay introduced by your reset circuit
  59. # the rest of the needed delays are built into the openocd program
  60. jtag_nsrst_delay 260
  61. # set the jtag_ntrst_delay to the delay introduced by a reset circuit
  62. # the rest of the needed delays are built into the openocd program
  63. jtag_ntrst_delay 250
  64. set _TARGETNAME $_CHIPNAME.cpu
  65. jtag newtap $_CHIPNAME cpu -irlen 11 -ircapture 0x1 -irmask 0x7f \
  66. -expected-id $_CPUTAPID_PXA30X_A0 \
  67. -expected-id $_CPUTAPID_PXA30X_A1 \
  68. -expected-id $_CPUTAPID_PXA31X_A0 \
  69. -expected-id $_CPUTAPID_PXA31X_A1 \
  70. -expected-id $_CPUTAPID_PXA31X_A2 \
  71. -expected-id $_CPUTAPID_PXA31X_B0 \
  72. -expected-id $_CPUTAPID_PXA32X_B1 \
  73. -expected-id $_CPUTAPID_PXA32X_B2 \
  74. -expected-id $_CPUTAPID_PXA32X_C0
  75. target create $_TARGETNAME xscale -endian $_ENDIAN \
  76. -chain-position $_TARGETNAME -variant pxa3xx
  77. # work area in internal RAM.
  78. $_TARGETNAME configure -work-area-phys 0x5c030000 -work-area-size 0x10000