tcl: update scripts after "jtag_reset" got deprecated

Avoid annoying "deprecated" messages in the scripts
distributed with OpenOCD code.

Change-Id: I82d27cd420db30f0653efbd286a627ef56a8c1fd
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5287
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
Antonio Borneo
2019-08-14 14:53:24 +02:00
committed by Tomas Vanek
parent c07b774e8f
commit 5d08bcb715
6 changed files with 13 additions and 13 deletions

View File

@@ -38,11 +38,11 @@ reset_config trst_and_srst separate srst_nogate
# reset processing that works with PXA
proc init_reset {mode} {
# assert both resets; equivalent to power-on reset
jtag_reset 1 1
adapter assert trst assert srst
# drop TRST after at least 32 cycles
sleep 1
jtag_reset 0 1
adapter deassert trst assert srst
# minimum 32 TCK cycles to wake up the controller
runtest 50
@@ -51,7 +51,7 @@ proc init_reset {mode} {
jtag arp_init
# ... and take it out of reset
jtag_reset 0 0
adapter deassert trst deassert srst
}
proc jtag_init {} {