From: Paul Fertser Date: Thu, 14 Aug 2014 16:12:01 +0000 (+0400) Subject: tcl/interface/ftdi: auto-select SWD from converters' configs X-Git-Tag: v0.9.0-rc1~305 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8390f7142870f353a10138440adccf24bc7f1c96;p=openocd tcl/interface/ftdi: auto-select SWD from converters' configs When you source a JTAG-SWD converter config, any other transport doesn't make any sense, so just autoselect it right there. Change-Id: I6c098740905a0d4007473fc19cc07e11cbcc9369 Suggested-by: Хайруллин Эльдар Signed-off-by: Paul Fertser Reviewed-on: http://openocd.zylin.com/2248 Tested-by: jenkins Reviewed-by: Spencer Oliver Reviewed-by: Eldar Khayrullin --- diff --git a/tcl/interface/ftdi/olimex-arm-jtag-swd.cfg b/tcl/interface/ftdi/olimex-arm-jtag-swd.cfg index ee7cdaec..2153fd65 100644 --- a/tcl/interface/ftdi/olimex-arm-jtag-swd.cfg +++ b/tcl/interface/ftdi/olimex-arm-jtag-swd.cfg @@ -3,5 +3,7 @@ # https://www.olimex.com/Products/ARM/JTAG/ARM-JTAG-SWD/ # +transport select swd + ftdi_layout_signal SWD_EN -nalias nTRST ftdi_layout_signal SWDIO_OE -alias TMS diff --git a/tcl/interface/ftdi/rowley-cc-arm-swd.cfg b/tcl/interface/ftdi/rowley-cc-arm-swd.cfg index 579561eb..9a96dbd9 100644 --- a/tcl/interface/ftdi/rowley-cc-arm-swd.cfg +++ b/tcl/interface/ftdi/rowley-cc-arm-swd.cfg @@ -4,5 +4,7 @@ # https://drive.google.com/file/d/0Bzv7UpKpOQhnTUNNdzI5OUR4WGs/edit?usp=sharing # +transport select swd + ftdi_layout_signal SWD_EN -nalias nTRST ftdi_layout_signal SWDIO_OE -alias TMS diff --git a/tcl/interface/ftdi/swd-resistor-hack.cfg b/tcl/interface/ftdi/swd-resistor-hack.cfg index a6f3a26c..78488752 100644 --- a/tcl/interface/ftdi/swd-resistor-hack.cfg +++ b/tcl/interface/ftdi/swd-resistor-hack.cfg @@ -4,4 +4,6 @@ # connect TDO directly to SWDIO. # +transport select swd + ftdi_layout_signal SWD_EN -data 0