You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

53 lines
1.1 KiB

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