This is an automated email from Gerrit.

emard ([email protected]) just uploaded a new patch set to Gerrit, which you can 
find at http://openocd.zylin.com/4790

-- gerrit

commit 735cc62767cf814adf5d0d20e28bc1357f0655b0
Author: emard <[email protected]>
Date:   Thu Dec 6 11:21:30 2018 +0100

    topic: ft232r configs for interfaces on ULX2S and ULX3S boards
    
    ULX2S has FT232R and ULX3S has FT231X onboard USB-serial chip which can work
    as JTAG adapter using openocd ft232r driver. USB-serial chip should work as
    normal serial port when openocd is not in use.
    
    Config files represent the pinout, a part of board schematics converted to
    the list of RS232 control lines connected to JTAG bus. All RS232 control 
lines
    used as JTAG on ULX2S and ULX3S boards are INPUTs by default at power up and
    when used as RS232 serial port.
    
    The openocd ft232r driver should read config file and change appropriate
    lines to OUTPUTs and use them as JTAG. After openocd exits, lines should be
    reset to default state so serial port will continue to work when kernel
    USB-serial driver reattaches.
    
    Change-Id: I7ccf3f10714df82b30f400776a93d93238eeea21
    Signed-off-by: emard <[email protected]>

diff --git a/tcl/interface/ft232r/ulx2s.cfg b/tcl/interface/ft232r/ulx2s.cfg
new file mode 100644
index 0000000..4e22a19
--- /dev/null
+++ b/tcl/interface/ft232r/ulx2s.cfg
@@ -0,0 +1,16 @@
+#
+# ULX2S with FT232R onboard chip using ft232r driver
+#
+
+interface ft232r
+# ft232r_vid_pid 0x0403 0x6001
+# ft232r_serial_desc 123456
+ft232r_tms_num RI
+ft232r_tdo_num DCD
+ft232r_tdi_num CTS
+ft232r_tck_num DSR
+ft232r_trst_num RTS
+ft232r_srst_num DTR
+# after exit from openocd, restore serial port:
+# ft232r_restore_serial 0x0015
+adapter_khz 1000
diff --git a/tcl/interface/ft232r/ulx3s.cfg b/tcl/interface/ft232r/ulx3s.cfg
new file mode 100644
index 0000000..1889e16
--- /dev/null
+++ b/tcl/interface/ft232r/ulx3s.cfg
@@ -0,0 +1,16 @@
+#
+# ULX3S with FT231X onboard chip using ft232r driver
+#
+
+interface ft232r
+ft232r_vid_pid 0x0403 0x6015
+# ft232r_serial_desc 123456
+ft232r_tck_num DSR
+ft232r_tms_num DCD
+ft232r_tdi_num RI
+ft232r_tdo_num CTS
+ft232r_trst_num RTS
+ft232r_srst_num DTR
+# after exit from openocd, restore serial port:
+ft232r_restore_serial 0x15
+adapter_khz 1000

-- 


_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to