summaryrefslogtreecommitdiff
path: root/tcl
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-08-19 16:06:45 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-08-19 16:06:45 +0200
commit5c98e063b9827ec96194375f383a54cdff31883f (patch)
tree262d8e9edfc3a910101da997407f2cfdba0b7a8a /tcl
parent2c4ef30b11f459028c20185f41320e856db8c3a1 (diff)
downloadopenocd_libswd-5c98e063b9827ec96194375f383a54cdff31883f.tar.gz
openocd_libswd-5c98e063b9827ec96194375f383a54cdff31883f.tar.bz2
openocd_libswd-5c98e063b9827ec96194375f383a54cdff31883f.tar.xz
openocd_libswd-5c98e063b9827ec96194375f383a54cdff31883f.zip
imx35pdk: fix clock and reset delays
Use rclk and 100ms delay on ntrst Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'tcl')
-rw-r--r--tcl/board/imx35pdk.cfg4
-rw-r--r--tcl/target/imx35.cfg1
2 files changed, 5 insertions, 0 deletions
diff --git a/tcl/board/imx35pdk.cfg b/tcl/board/imx35pdk.cfg
index e5891c8b..73fa6331 100644
--- a/tcl/board/imx35pdk.cfg
+++ b/tcl/board/imx35pdk.cfg
@@ -3,6 +3,10 @@ source [find target/imx35.cfg]
source [find target/imx.cfg]
$_TARGETNAME configure -event reset-init { imx35pdk_init }
+# Stick to *really* low clock rate or reset will fail
+# without RTCK / RCLK
+jtag_rclk 10
+
proc imx35pdk_init { } {
imx3x_reset
diff --git a/tcl/target/imx35.cfg b/tcl/target/imx35.cfg
index d47abdc6..30cb3863 100644
--- a/tcl/target/imx35.cfg
+++ b/tcl/target/imx35.cfg
@@ -2,6 +2,7 @@
#
reset_config trst_and_srst srst_gates_jtag
+jtag_ntrst_delay 100
if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME