whitespace fix
Added bootstrap procedure of submodules/libswd. When there is no configure script for libswd (i.e. when working on a master branch) then autogen.sh is executed to generate it.

Change-Id: I3d572dc2fcdbaa0770a188a51a927048240f7b13
Signed-off-by: Tomek CEDRO <cederom@tlen.pl>
Added LibSWD to autoconf scripts and the --disable-internal-libswd switch that can disable build of internal libswd submodule just in the same way as JimTCL integration works.

Change-Id: I9c1a90dbc595ad51047aa6e77feb1af083b77e34
Signed-off-by: Tomek CEDRO <cederom@tlen.pl>
whitespace fix
Introducing interface/ folder dedicated to the interface infrastructure and drivers. Introducing interface_signal infrastructure to perform operations on interface port pins - this will create good abstraction layer for pin state operations at runtime and it is necessary to implement buffer configuration routines for SWD transport.

Change-Id: I275599437d0086c39a4bd7d33baa72ff5cf9303c
Signed-off-by: Tomek CEDRO <cederom@tlen.pl>
various style fixes
Added swd_only transport definition. It will be used by swd interface driver.

Change-Id: Ife4d44d18a3ebc228ab66b36db6e8ca3d2bd2bc1
Signed-off-by: Tomek CEDRO <cederom@tlen.pl>
Minor comments/description modification. No functional/code changes.

Change-Id: I41fff9e4959a904c2606b82be99265ba9b01bf7a
Signed-off-by: Tomek CEDRO <cederom@tlen.pl>
whitespace fix
Extending jtag_interface driver structure with following fields: *transport, *transfer, *bitbang, *signal, *target. These function and data pointers will be used by swd driver implementation and allows any other generic transport implementation.

Change-Id: Ie4e39bf1da9abbbeef71de57be977cd82efe6c6e
Signed-off-by: Tomek CEDRO <cederom@tlen.pl>
whitespace fix
Extended ft2232_layout structure with bitbang_deny field that will define port pins that are not allowed to manipulate by user (i.e. to avoid hardware damage). Minor comment updates.

Change-Id: If81824afd102d44ed5d739c168f077155d3f28ad
Signed-off-by: Tomek CEDRO <cederom@tlen.pl>
various style fixes
Added ft2232_transfer() and ft2232_bitbang() implementation. New interface routines (interface signal handling) are now part of the build process (required by ft2232 transfer and bitbang functions). Extended ft2232 based jtag driver with existing ft2232_bitbang function.

Change-Id: I934933a8724f0b4c4c57b841f0ae07e9f52b9dff
Signed-off-by: Tomek CEDRO <cederom@tlen.pl>
various style fixes
Added ft2232_interface_swd driver declaration with default transport set to swd_only. It is based on existing ft2232 and jtag_interface. It contains ft2232_transfer and ft2232_bitbang functions by default, thus it will work only with ft2232 devices for now. This will be the first interface type to work with LibSWD.

Change-Id: I7593ced156cd3cb108b332a191adbd47245bb6d6
Signed-off-by: Tomek CEDRO <cederom@tlen.pl>
Small reorganization of interface includes. interface/interface.h now includes jtag/interface.h until we separate current openocd interface drivers from jtag specific code.

Change-Id: Id48a45a0a997286a7f0b0de457d8de568e4bfa45
Signed-off-by: Tomek CEDRO <cederom@tlen.pl>
Implemented TCL interface to interface_signal infrastructure.

Change-Id: I4a302ae49d27a455121efd1a05fc9ea58ffb0282
Signed-off-by: Tomek CEDRO <cederom@tlen.pl>
various style fixes
Added example interface_signal LED,SRST,SRSTin definitions to KT-LINK interface for testing.

Change-Id: I44be1d35394ab2894fc6b365466e3d51583797d4
Signed-off-by: Tomek CEDRO <cederom@tlen.pl>