This is an automated email from Gerrit.

"Jose Borja Castillo Sanchez <joscas...@uma.es>" just uploaded a new patch set 
to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/6865

-- gerrit

commit ccc65af8a4ff936d3aa0fb891ac9f5ad7652e3ee
Author: Jose Borja Castillo <joscas...@uma.es>
Date:   Wed Mar 2 14:47:58 2022 +0100

    Added XVC (TCP) driver
    
    Added new XVC TCP driver based on Xilinx's specs. Coding style is
    heavily influenced by bitbang.c and jlink.c, credits to the corresponding 
authors.
    This protocol is intended to be used for bitbanging remote JTAG devices 
while
    using pre-defined messages, like 'shift'.
    
    Signed-off-by: Jose Borja Castillo <joscas...@uma.es>
    Change-Id: I29a40ef96caf1c6161ed33e0d4e2f467820900f1

diff --git a/configure.ac b/configure.ac
index 68fff45c1f..b40a1f70dc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -111,6 +111,7 @@ m4_define([ADAPTER_OPT], [m4_translit(ADAPTER_ARG($1), [_], 
[-])])
 m4_define([USB1_ADAPTERS],
        [[[ftdi], [MPSSE mode of FTDI based devices], [FTDI]],
        [[stlink], [ST-Link Programmer], [HLADAPTER_STLINK]],
+       [[xvc], [XVC Driver], [xvc]],
        [[ti_icdi], [TI ICDI JTAG Programmer], [HLADAPTER_ICDI]],
        [[ulink], [Keil ULINK JTAG Programmer], [ULINK]],
        [[usb_blaster_2], [Altera USB-Blaster II Compatible], [USB_BLASTER_2]],
@@ -363,6 +364,10 @@ AC_ARG_ENABLE([remote-bitbang],
   AS_HELP_STRING([--enable-remote-bitbang], [Enable building support for the 
Remote Bitbang jtag driver]),
   [build_remote_bitbang=$enableval], [build_remote_bitbang=no])
 
+AC_ARG_ENABLE([xvc],
+  AS_HELP_STRING([--enable-xvc], [Enable building support for the XVC jtag 
driver]),
+  [build_xvc=$enableval], [build_xvc=yes])
+
 AS_CASE(["${host_cpu}"],
   [i?86|x86*], [],
   [
@@ -563,6 +568,13 @@ AS_IF([test "x$build_remote_bitbang" = "xyes"], [
   AC_DEFINE([BUILD_REMOTE_BITBANG], [0], [0 if you don't want the Remote 
Bitbang JTAG driver.])
 ])
 
+AS_IF([test "x$build_xvc" = "xyes"], [
+  build_bitbang=yes
+  AC_DEFINE([BUILD_XVC], [1], [1 if you want the XVC driver.])
+], [
+  AC_DEFINE([BUILD_XVC], [0], [0 if you don't want the XVC driver.])
+])
+
 AS_IF([test "x$build_sysfsgpio" = "xyes"], [
   build_bitbang=yes
   AC_DEFINE([BUILD_SYSFSGPIO], [1], [1 if you want the SysfsGPIO driver.])
@@ -720,6 +732,7 @@ AM_CONDITIONAL([USE_HIDAPI], [test "x$use_hidapi" = "xyes"])
 AM_CONDITIONAL([USE_LIBJAYLINK], [test "x$use_libjaylink" = "xyes"])
 AM_CONDITIONAL([RSHIM], [test "x$build_rshim" = "xyes"])
 AM_CONDITIONAL([HAVE_CAPSTONE], [test "x$enable_capstone" != "xno"])
+AM_CONDITIONAL([XVC], [test "x$build_xvc" = "xyes"])
 
 AM_CONDITIONAL([INTERNAL_JIMTCL], [test "x$use_internal_jimtcl" = "xyes"])
 AM_CONDITIONAL([INTERNAL_LIBJAYLINK], [test "x$use_internal_libjaylink" = 
"xyes"])
diff --git a/src/jtag/drivers/Makefile.am b/src/jtag/drivers/Makefile.am
index 887f99bcd2..06597493e7 100644
--- a/src/jtag/drivers/Makefile.am
+++ b/src/jtag/drivers/Makefile.am
@@ -185,6 +185,9 @@ endif
 if XDS110
 DRIVERFILES += %D%/xds110.c
 endif
+if XVC
+DRIVERFILES += %D%/xvc.c
+endif
 
 DRIVERHEADERS = \
        %D%/bitbang.h \
diff --git a/src/jtag/interfaces.c b/src/jtag/interfaces.c
index ddf70cc240..b062fa929f 100644
--- a/src/jtag/interfaces.c
+++ b/src/jtag/interfaces.c
@@ -150,6 +150,9 @@ extern struct adapter_driver stlink_dap_adapter_driver;
 #if BUILD_RSHIM == 1
 extern struct adapter_driver rshim_dap_adapter_driver;
 #endif
+#if BUILD_XVC
+extern struct adapter_driver xvc_driver;
+#endif
 
 /**
  * The list of built-in JTAG interfaces, containing entries for those
@@ -263,6 +266,9 @@ struct adapter_driver *adapter_drivers[] = {
 #endif
 #if BUILD_RSHIM == 1
                &rshim_dap_adapter_driver,
+#endif
+#if BUILD_XVC == 1
+               &xvc_driver,
 #endif
                NULL,
        };

-- 

Reply via email to