pxa270.cfg 1.4 KB

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