omapl138.cfg 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. #
  3. # Texas Instruments DaVinci family: OMAPL138
  4. #
  5. if { [info exists CHIPNAME] } {
  6. set _CHIPNAME $CHIPNAME
  7. } else {
  8. set _CHIPNAME omapl138
  9. }
  10. source [find target/icepick.cfg]
  11. # Subsidiary TAP: ARM ETB11, with scan chain for 4K of ETM trace buffer
  12. if { [info exists ETB_TAPID] } {
  13. set _ETB_TAPID $ETB_TAPID
  14. } else {
  15. set _ETB_TAPID 0x2b900f0f
  16. }
  17. jtag newtap $_CHIPNAME etb -irlen 4 -irmask 0xf -expected-id $_ETB_TAPID -disable
  18. jtag configure $_CHIPNAME.etb -event tap-enable \
  19. "icepick_c_tapenable $_CHIPNAME.jrc 3"
  20. # Subsidiary TAP: ARM926ejs with scan chains for ARM Debug, EmbeddedICE-RT, ETM.
  21. if { [info exists CPU_TAPID] } {
  22. set _CPU_TAPID $CPU_TAPID
  23. } else {
  24. set _CPU_TAPID 0x07926001
  25. }
  26. jtag newtap $_CHIPNAME arm -irlen 4 -irmask 0xf -expected-id $_CPU_TAPID -disable
  27. jtag configure $_CHIPNAME.arm -event tap-enable \
  28. "icepick_c_tapenable $_CHIPNAME.jrc 2"
  29. # Primary TAP: ICEpick-C (JTAG route controller) and boundary scan
  30. if { [info exists JRC_TAPID] } {
  31. set _JRC_TAPID $JRC_TAPID
  32. } else {
  33. set _JRC_TAPID 0x0b7d102f
  34. }
  35. jtag newtap $_CHIPNAME jrc -irlen 6 -irmask 0x3f -expected-id $_JRC_TAPID -ignore-version
  36. jtag configure $_CHIPNAME.jrc -event setup \
  37. "jtag tapenable $_CHIPNAME.etb; jtag tapenable $_CHIPNAME.arm"
  38. ################
  39. # GDB target: the ARM, using SRAM1 for scratch. SRAM0 (also 8K)
  40. # and the ETB memory (4K) are other options, while trace is unused.
  41. # Little-endian; use the OpenOCD default.
  42. set _TARGETNAME $_CHIPNAME.arm
  43. target create $_TARGETNAME arm926ejs -chain-position $_TARGETNAME
  44. $_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 0x2000
  45. # be absolutely certain the JTAG clock will work with the worst-case
  46. # CLKIN = 20 MHz (best case: 30 MHz) even when no bootloader turns
  47. # on the PLL and starts using it. OK to speed up after clock setup.
  48. adapter speed 1500
  49. $_TARGETNAME configure -event "reset-start" { adapter speed 1500 }
  50. arm7_9 fast_memory_access enable
  51. arm7_9 dcc_downloads enable
  52. # trace setup
  53. etm config $_TARGETNAME 16 normal full etb
  54. etb config $_TARGETNAME $_CHIPNAME.etb
  55. gdb_breakpoint_override hard
  56. arm7_9 dbgrq enable