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