versaloon: Finish support for serial number matching
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>
Mon, 25 Nov 2013 22:50:37 +0000 (23:50 +0100)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Tue, 17 Dec 2013 22:55:31 +0000 (22:55 +0000)
commit255301fb507519b5cd022cfdb465d4963d186c5a
tree871d55e661465e1cfba583e040ac98d925ff27c2
parent871b34cf2cd667e1001729ce435d1fb0013762ff
versaloon: Finish support for serial number matching

Add a command to specify the serial string and pass it to the find helper.
Actual matching was already supported for both serial and product but was
using hard coded string indices. Instead use the indices from the device
descriptor.

Change-Id: I17c7538e5ad301ef41eace1ee70a202adab23bb4
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/1816
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/jtag/drivers/vsllink.c