From 8390f7142870f353a10138440adccf24bc7f1c96 Mon Sep 17 00:00:00 2001 From: Paul Fertser Date: Thu, 14 Aug 2014 20:12:01 +0400 Subject: [PATCH] tcl/interface/ftdi: auto-select SWD from converters' configs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- tcl/interface/ftdi/olimex-arm-jtag-swd.cfg | 2 ++ tcl/interface/ftdi/rowley-cc-arm-swd.cfg | 2 ++ tcl/interface/ftdi/swd-resistor-hack.cfg | 2 ++ 3 files changed, 6 insertions(+) diff --git a/tcl/interface/ftdi/olimex-arm-jtag-swd.cfg b/tcl/interface/ftdi/olimex-arm-jtag-swd.cfg index ee7cdaecd..2153fd65f 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 579561eb4..9a96dbd92 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 a6f3a26c5..784887522 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