imx7.cfg 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. if { [info exists CHIPNAME] } {
  3. set _CHIPNAME $CHIPNAME
  4. } else {
  5. set _CHIPNAME imx7
  6. }
  7. # CoreSight Debug Access Port
  8. if { [info exists DAP_TAPID] } {
  9. set _DAP_TAPID $DAP_TAPID
  10. } else {
  11. set _DAP_TAPID 0x5ba00477
  12. }
  13. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x01 -irmask 0x0f \
  14. -expected-id $_DAP_TAPID
  15. #
  16. # Cortex-A7 target
  17. #
  18. # GDB target: Cortex-A7, using DAP, configuring only one core
  19. # Base addresses of cores:
  20. # core 0 - 0x80070000
  21. # core 1 - 0x80072000
  22. set _TARGETNAME $_CHIPNAME.cpu_a7
  23. dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
  24. target create $_TARGETNAME.0 cortex_a -dap $_CHIPNAME.dap \
  25. -coreid 0 -dbgbase 0x80070000
  26. target create $_TARGETNAME.1 cortex_a -dap $_CHIPNAME.dap \
  27. -coreid 1 -dbgbase 0x80072000 -defer-examine
  28. #
  29. # Cortex-M4 target
  30. #
  31. set _TARGETNAME_2 $_CHIPNAME.cpu_m4
  32. target create $_TARGETNAME_2 cortex_m -dap $_CHIPNAME.dap -ap-num 4 \
  33. -defer-examine
  34. #
  35. # AHB mem-ap target
  36. #
  37. target create $_CHIPNAME.ahb mem_ap -dap $_CHIPNAME.dap -ap-num 0
  38. targets $_TARGETNAME.0