imx6ul.cfg 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. #
  3. # Freescale i.MX6UltraLite series: 6UL 6ULL 6ULZ
  4. #
  5. if { [info exists CHIPNAME] } {
  6. set _CHIPNAME $CHIPNAME
  7. } else {
  8. set _CHIPNAME imx6ul
  9. }
  10. # CoreSight Debug Access Port
  11. if { [info exists DAP_TAPID] } {
  12. set _DAP_TAPID $DAP_TAPID
  13. } else {
  14. set _DAP_TAPID 0x4ba00477
  15. }
  16. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x01 -irmask 0x0f \
  17. -expected-id $_DAP_TAPID
  18. # SDMA / no IDCODE
  19. jtag newtap $_CHIPNAME sdma -irlen 4 -ircapture 0x00 -irmask 0x0f
  20. # System JTAG Controller
  21. set _SJC_TAPID_6UL 0x0891d01d
  22. set _SJC_TAPID_6ULL 0x0891e01d
  23. set _SJC_TAPID_6ULZ 0x1891e01d
  24. # Allow external override of the first SJC TAPID
  25. if { [info exists SJC_TAPID] } {
  26. set _SJC_TAPID $SJC_TAPID
  27. } else {
  28. set _SJC_TAPID $_SJC_TAPID_6UL
  29. }
  30. jtag newtap $_CHIPNAME sjc -irlen 5 -ircapture 0x01 -irmask 0x1f \
  31. -ignore-version \
  32. -expected-id $_SJC_TAPID \
  33. -expected-id $_SJC_TAPID_6ULL \
  34. -expected-id $_SJC_TAPID_6ULZ \
  35. # Create DAP
  36. dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
  37. # Main AHB bus
  38. target create $_CHIPNAME.ahb mem_ap -dap $_CHIPNAME.dap -ap-num 0
  39. # Cortex-A7 single core
  40. set _TARGETNAME $_CHIPNAME.cpu
  41. target create $_TARGETNAME cortex_a -dap $_CHIPNAME.dap -dbgbase 0x82130000