]> git.sur5r.net Git - openocd/commit
ftdi: allow selecting device by usb bus location
authorMatthias Welwarsky <matthias.welwarsky@sysgo.com>
Tue, 2 Feb 2016 16:03:08 +0000 (17:03 +0100)
committerPaul Fertser <fercerpav@gmail.com>
Thu, 24 Mar 2016 08:52:14 +0000 (08:52 +0000)
commit0a97b232b15c4519777f9223da33423379983dc4
tree774ddf1226e656d3e4828e41d09025a31aece828
parent73b676c2fdedcb913f1c20be7de99ea0a94b11cc
ftdi: allow selecting device by usb bus location

This patch adds a 'ftdi_location' command to select an adapter by usb
bus number and port path.

This is helpful if you have a rack full of adapters in a testing or
manufacturing setup where the only constant is the physical usb bus
location of the adapter you want to address. Vid:Pid are not unique,
serial number _may_ be unique (and maybe not with embedded adapters) but
will change when a new target is plugged.

Specifying a location allows to understand instantly which board failed
bringup or testing.

Change-Id: I403c7c6c8e34fe42041b3f967db80f3160a4f1a3
Signed-off-by: Matthias Welwarsky <matthias.welwarsky@sysgo.com>
Reviewed-on: http://openocd.zylin.com/3351
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
doc/openocd.texi
src/jtag/drivers/ftdi.c
src/jtag/drivers/mpsse.c
src/jtag/drivers/mpsse.h