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.
 
 
 
 
 
 

22 lines
610 B

  1. # Utilities for TI ICEpick-C ... used in DaVinci, OMAP3, and more.
  2. # jrc == TAP name for the ICEpick
  3. # port == a port number, 0..15
  4. proc icepick_c_tapenable {jrc port} {
  5. # NOTE: it's important not to enter RUN/IDLE state until
  6. # done sending these instructions and data to the ICEpick.
  7. # And never to enter RESET, which will disable the TAPs.
  8. # select router
  9. irscan $jrc 7 -endstate IRPAUSE
  10. drscan $jrc 8 0x89 -endstate DRPAUSE
  11. # set ip control
  12. irscan $jrc 2 -endstate IRPAUSE
  13. drscan $jrc 32 [expr 0xa0002108 + ($port << 24)] -endstate DRPAUSE
  14. irscan $jrc 0x3F -endstate RUN/IDLE
  15. runtest 10
  16. }