aboutsummaryrefslogtreecommitdiff
path: root/tcl/target/icepick.cfg
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2015-03-19 12:59:44 -0500
committerPaul Fertser <fercerpav@gmail.com>2015-04-14 11:22:07 +0100
commitb6cb48c212680b8b8598227f4e3bab6c6b5a4cd4 (patch)
tree28813052c2506ec922fda98bb12075684c110c3a /tcl/target/icepick.cfg
parent1d8c36e16a0112f8778658f3472936dc25e7b347 (diff)
downloadriscv-openocd-b6cb48c212680b8b8598227f4e3bab6c6b5a4cd4.zip
riscv-openocd-b6cb48c212680b8b8598227f4e3bab6c6b5a4cd4.tar.gz
riscv-openocd-b6cb48c212680b8b8598227f4e3bab6c6b5a4cd4.tar.bz2
target: icepick: switch over to icepick_c_router
Reusing what's already there to ease maintainability. Change-Id: I2030581669c644e2d9d9f9968075ab6344445d04 Signed-off-by: Felipe Balbi <balbi@ti.com> Reviewed-on: http://openocd.zylin.com/2622 Tested-by: jenkins Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Diffstat (limited to 'tcl/target/icepick.cfg')
-rw-r--r--tcl/target/icepick.cfg3
1 files changed, 1 insertions, 2 deletions
diff --git a/tcl/target/icepick.cfg b/tcl/target/icepick.cfg
index 13a6a51..3a0afde 100644
--- a/tcl/target/icepick.cfg
+++ b/tcl/target/icepick.cfg
@@ -116,8 +116,7 @@ proc icepick_d_tapenable {jrc port} {
icepick_c_connect $jrc
# Select the port
- irscan $jrc [CONST IR_ROUTER] -endstate IRPAUSE
- drscan $jrc 32 [expr 0xa0002108 + ($port << 24)] -endstate DRPAUSE
+ icepick_c_router $jrc 1 0x2 $port 0x2108
# Set 4 bit core ID to the Cortex-A
irscan $jrc [CONST IR_ROUTER] -endstate IRPAUSE