summaryrefslogtreecommitdiff
path: root/util/openocd
diff options
context:
space:
mode:
authorMyles Watson <mylesgw@chromium.org>2015-07-17 12:29:40 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-07-20 22:09:34 +0000
commitd737517db79287a3861fe8f8ab566b88211fed15 (patch)
tree4de93de25e030e45a3ed4f5fc8afe42d39bbcc13 /util/openocd
parenta3c990236fb1c492e3f00ae4955d3c1d2066c3b0 (diff)
downloadchrome-ec-d737517db79287a3861fe8f8ab566b88211fed15.tar.gz
flash_ec: openocd-related fix for npcx.cfg
using_jtag is now a helper function, not a global variable. BUG=none BRANCH=none TEST=flash the npcx evaluation board sudo servod --vendor 0x18d1 --product 0x5002 ./util/flash_ec –port=9999 –board=npcx_evb Change-Id: Ied2c0808b2a12d18b8350e68d5825703b71edc5e Signed-off-by: Myles Watson <mylesgw@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/286531 Reviewed-by: Todd Broch <tbroch@chromium.org>
Diffstat (limited to 'util/openocd')
-rw-r--r--util/openocd/npcx.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/openocd/npcx.cfg b/util/openocd/npcx.cfg
index cd00715d72..d42580a907 100644
--- a/util/openocd/npcx.cfg
+++ b/util/openocd/npcx.cfg
@@ -46,7 +46,7 @@ target create $_TARGETNAME cortex_m -endian $_ENDIAN -chain-position \
adapter_khz 100
adapter_nsrst_delay 100
-if {$using_jtag} {
+if {[using_jtag]} {
jtag_ntrst_delay 100
}