tcl/interface: add SPDX tag
[fw/openocd] / tcl / interface / ftdi / flyswatter2.cfg
index 7d57e436b9cf1045473891c242cb06c897ff63be..ebc00fe60171b8b3cfccf0ab2c4eb1595f508eaa 100644 (file)
@@ -1,18 +1,16 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 #
-# TinCanTools Flyswatter 2
+# TinCanTools Flyswatter2
 #
-# http://www.tincantools.com/product.php?productid=16134
+# https://www.tincantools.com/product/flyswatter2/
 #
 
-echo "WARNING!"
-echo "This file was not tested with real interface, it is based on code in ft2232.c."
-echo "Please report your experience with this file to openocd-devel mailing list,"
-echo "so it could be marked as working or fixed."
-
-interface ftdi
-ftdi_device_desc "Flyswatter2"
-ftdi_vid_pid 0x0403 0x6010
+adapter driver ftdi
+ftdi device_desc "Flyswatter2"
+ftdi vid_pid 0x0403 0x6010
 
-ftdi_layout_init 0x0818 0x017b
-ftdi_layout_signal nTRST -data 0x0010
-ftdi_layout_signal nSRST -noe 0x0020
+ftdi layout_init 0x0538 0x057b
+ftdi layout_signal LED -ndata 0x0400
+ftdi layout_signal nTRST -data 0x0010
+ftdi layout_signal nSRST -data 0x0020 -noe 0x0100