omap5912.cfg 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. # TI OMAP5912 dual core processor
  3. # http://focus.ti.com/docs/prod/folders/print/omap5912.html
  4. if { [info exists CHIPNAME] } {
  5. set _CHIPNAME $CHIPNAME
  6. } else {
  7. set _CHIPNAME omap5912
  8. }
  9. if { [info exists CPUTAPID] } {
  10. set _CPUTAPID $CPUTAPID
  11. } else {
  12. # NOTE: validated with XOMAP5912 part
  13. set _CPUTAPID 0x0692602f
  14. }
  15. adapter srst delay 100
  16. # NOTE: presumes irlen 38 is the C55x DSP, matching BSDL for
  17. # its standalone siblings (like TMS320VC5502) of the same era
  18. #jtag scan chain
  19. jtag newtap $_CHIPNAME dsp -irlen 38 -expected-id 0x03df1d81
  20. jtag newtap $_CHIPNAME arm -irlen 4 -expected-id $_CPUTAPID
  21. jtag newtap $_CHIPNAME unknown -irlen 8
  22. set _TARGETNAME $_CHIPNAME.arm
  23. target create $_TARGETNAME arm926ejs -chain-position $_TARGETNAME
  24. proc omap5912_reset {} {
  25. #
  26. # halt target
  27. #
  28. poll
  29. sleep 1
  30. halt
  31. wait_halt
  32. #
  33. # disable wdt
  34. #
  35. mww 0xfffec808 0x000000f5
  36. mww 0xfffec808 0x000000a0
  37. mww 0xfffeb048 0x0000aaaa
  38. sleep 500
  39. mww 0xfffeb048 0x00005555
  40. sleep 500
  41. }
  42. # omap5912 lcd frame buffer as working area
  43. $_TARGETNAME configure -work-area-phys 0x20000000 \
  44. -work-area-size 0x3e800 -work-area-backup 0