Skip to content

Commit a482b78

Browse files
tom-vanborneoa
authored andcommitted
tcl/target: drop more useless reset-start events
These target configs implement neither device clock setting nor boost of adapter speed in reset-init event. Therefore it's not necessary to set back the safe speed in reset-start Change-Id: I7dcd6f6d1a977388c7a0bc45fe46ede955bd45cb Signed-off-by: Tomas Vanek <[email protected]> Reviewed-on: https://review.openocd.org/c/openocd/+/9129 Tested-by: jenkins Reviewed-by: Antonio Borneo <[email protected]>
1 parent c168761 commit a482b78

File tree

6 files changed

+0
-9
lines changed

6 files changed

+0
-9
lines changed

tcl/target/altera_fpgasoc.cfg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,13 @@ dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
4848
target create $_TARGETNAME1 cortex_a -dap $_CHIPNAME.dap \
4949
-coreid 0 -dbgbase 0x80110000
5050

51-
$_TARGETNAME1 configure -event reset-start { adapter speed 1000 }
5251
$_TARGETNAME1 configure -event reset-assert-post "cycv_dbginit $_TARGETNAME1"
5352

5453

5554
# A9 core 1
5655
#target create $_TARGETNAME2 cortex_a -dap $_CHIPNAME.dap \
5756
# -coreid 1 -dbgbase 0x80112000
5857

59-
#$_TARGETNAME2 configure -event reset-start { adapter speed 1000 }
6058
#$_TARGETNAME2 configure -event reset-assert-post "cycv_dbginit $_TARGETNAME2"
6159

6260
proc cycv_dbginit {target} {

tcl/target/imx6.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,5 @@ proc imx6_dbginit {target} {
7878

7979
# Slow speed to be sure it will work
8080
adapter speed 1000
81-
$_TARGETNAME configure -event reset-start { adapter speed 1000 }
8281

8382
$_TARGETNAME configure -event reset-assert-post "imx6_dbginit $_TARGETNAME"

tcl/target/npcx.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ $_TARGETNAME configure -work-area-phys 0x200c0000 -work-area-size $_WORKAREASIZE
4646
# 4MHz / 6 = 666KHz, so use 600KHz for it
4747
adapter speed 600
4848

49-
# For safety purposes, set for the lowest cpu clock configuration
50-
$_TARGETNAME configure -event reset-start {adapter speed 600}
51-
5249
# use sysresetreq to perform a system reset
5350
cortex_m reset_config sysresetreq
5451

tcl/target/omap3530.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ proc omap3_dbginit {target} {
6666
# 16.8MHz/2 = 8.4MHz core clock, even before a bootloader kicks in.
6767
# OK to speed up *after* PLL and clock tree setup.
6868
adapter speed 1000
69-
$_TARGETNAME configure -event "reset-start" { adapter speed 1000 }
7069

7170
# Assume SRST is unavailable (e.g. TI-14 JTAG), so we must assert reset
7271
# ourselves using PRM_RSTCTRL. RST_GS (2) is a warm reset, like ICEpick

tcl/target/omapl138.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ $_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 0x2000
5555
# CLKIN = 20 MHz (best case: 30 MHz) even when no bootloader turns
5656
# on the PLL and starts using it. OK to speed up after clock setup.
5757
adapter speed 1500
58-
$_TARGETNAME configure -event "reset-start" { adapter speed 1500 }
5958

6059
arm7_9 fast_memory_access enable
6160
arm7_9 dcc_downloads enable

tcl/target/pxa255.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ target create $_TARGETNAME xscale -endian $_ENDIAN \
3131
# Until the PLL kicks in, keep the JTAG clock slow enough
3232
# that we get no errors.
3333
adapter speed 300
34-
$_TARGETNAME configure -event "reset-start" { adapter speed 300 }
3534

3635
# both TRST and SRST are *required* for debug
3736
# DCSR is often accessed with SRST active

0 commit comments

Comments
 (0)