pxa270.cfg 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. #Marvell/Intel PXA270 Script
  3. if { [info exists CHIPNAME] } {
  4. set _CHIPNAME $CHIPNAME
  5. } else {
  6. set _CHIPNAME pxa270
  7. }
  8. if { [info exists ENDIAN] } {
  9. set _ENDIAN $ENDIAN
  10. } else {
  11. set _ENDIAN little
  12. }
  13. #IDs for pxa270. Are there more?
  14. if { [info exists CPUTAPID] } {
  15. set _CPUTAPID $CPUTAPID
  16. } else {
  17. # set useful default
  18. set _CPUTAPID 0x49265013
  19. }
  20. if { [info exists CPUTAPID2] } {
  21. set _CPUTAPID2 $CPUTAPID2
  22. } else {
  23. # set useful default
  24. set _CPUTAPID2 0x79265013
  25. }
  26. if { [info exists CPUTAPID3] } {
  27. set _CPUTAPID2 $CPUTAPID3
  28. } else {
  29. # set useful default
  30. set _CPUTAPID3 0x89265013
  31. }
  32. # set adapter srst delay to the delay introduced by your reset circuit
  33. # the rest of the needed delays are built into the openocd program
  34. adapter srst delay 260
  35. # set the jtag_ntrst_delay to the delay introduced by a reset circuit
  36. # the rest of the needed delays are built into the openocd program
  37. jtag_ntrst_delay 250
  38. set _TARGETNAME $_CHIPNAME.cpu
  39. jtag newtap $_CHIPNAME cpu -irlen 7 -ircapture 0x1 -irmask 0x7f -expected-id $_CPUTAPID -expected-id $_CPUTAPID2 -expected-id $_CPUTAPID3
  40. target create $_TARGETNAME xscale -endian $_ENDIAN -chain-position $_TARGETNAME
  41. # maps to PXA internal RAM. If you are using a PXA255
  42. # you must initialize SDRAM or leave this option off
  43. $_TARGETNAME configure -work-area-phys 0x5c000000 -work-area-size 0x10000 -work-area-backup 0