This is an automated email from Gerrit. Andreas Fritiofson ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/1899
-- gerrit commit 9bbc5651fe9dc6f7ca6c38fe804ae41ca96d3dbb Author: Andreas Fritiofson <[email protected]> Date: Sat Jan 25 20:50:22 2014 +0100 ft2232: Mark interface driver as deprecated Change-Id: I5ebc924ab66c86f1902942bebc203a34d97abc64 Signed-off-by: Andreas Fritiofson <[email protected]> diff --git a/configure.ac b/configure.ac index 73f7bef..2359120 100644 --- a/configure.ac +++ b/configure.ac @@ -388,11 +388,11 @@ AC_ARG_ENABLE([parport_giveio], [parport_use_giveio=$enableval], [parport_use_giveio=]) AC_ARG_ENABLE([ft2232_libftdi], - AS_HELP_STRING([--enable-ft2232_libftdi], [Enable building support for FT2232 based devices using the libftdi driver, opensource alternate of FTD2XX]), + AS_HELP_STRING([--enable-ft2232_libftdi], [(DEPRECATED) Enable building support for FT2232 based devices using the libftdi driver, opensource alternate of FTD2XX]), [build_ft2232_libftdi=$enableval], [build_ft2232_libftdi=no]) AC_ARG_ENABLE([ft2232_ftd2xx], - AS_HELP_STRING([--enable-ft2232_ftd2xx], [Enable building support for FT2232 based devices using the FTD2XX driver from ftdichip.com]), + AS_HELP_STRING([--enable-ft2232_ftd2xx], [(DEPRECATED) Enable building support for FT2232 based devices using the FTD2XX driver from ftdichip.com]), [build_ft2232_ftd2xx=$enableval], [build_ft2232_ftd2xx=no]) AC_ARG_ENABLE([jtag_vpi], @@ -1320,3 +1320,7 @@ m4_foreach([adapter], [USB1_ADAPTERS, USB_ADAPTERS, USB0_ADAPTERS, HIDAPI_ADAPTE esac ]) echo + +if test \( $build_ft2232_libftdi = yes -o $build_ft2232_ftd2xx = yes \) -a $enable_ftdi = no; then + AC_MSG_WARN([--enable-ft2232_* is deprecated. You are recommended to use --enable-ftdi instead.]) +fi diff --git a/src/jtag/drivers/ft2232.c b/src/jtag/drivers/ft2232.c index e07e513..4448a33 100644 --- a/src/jtag/drivers/ft2232.c +++ b/src/jtag/drivers/ft2232.c @@ -2340,6 +2340,11 @@ static int ft2232_init(void) int retval; uint32_t bytes_written; + LOG_WARNING("Using DEPRECATED interface driver 'ft2232'"); +#if BUILD_FTDI + LOG_INFO("Consider using the 'ftdi' interface driver, with configuration files in interface/ftdi/..."); +#endif + if (tap_get_tms_path_len(TAP_IRPAUSE, TAP_IRPAUSE) == 7) LOG_DEBUG("ft2232 interface using 7 step jtag state transitions"); else -- ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
