imx21.cfg 792 B

123456789101112131415161718192021222324252627282930313233343536
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. #use combined on interfaces or targets that can't set TRST/SRST separately
  3. #
  4. # Hmmm.... should srst_pulls_trst be used here like i.MX27???
  5. reset_config trst_and_srst
  6. if { [info exists CHIPNAME] } {
  7. set _CHIPNAME $CHIPNAME
  8. } else {
  9. set _CHIPNAME imx21
  10. }
  11. if { [info exists ENDIAN] } {
  12. set _ENDIAN $ENDIAN
  13. } else {
  14. set _ENDIAN little
  15. }
  16. # Note above there is 1 tap
  17. # The CPU tap
  18. if { [info exists CPUTAPID] } {
  19. set _CPUTAPID $CPUTAPID
  20. } else {
  21. set _CPUTAPID 0x0792611f
  22. }
  23. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
  24. # Create the GDB Target.
  25. set _TARGETNAME $_CHIPNAME.cpu
  26. target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME
  27. arm7_9 dcc_downloads enable