This is an automated email from Gerrit.

Oleksij Rempel (li...@rempel-privat.de) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/4632

-- gerrit

commit b75229049c93dd164a6df177ec2471ae1b2a5ad0
Author: Oleksij Rempel <o.rem...@pengutronix.de>
Date:   Sat Aug 4 08:13:08 2018 +0200

    add INTERFACE_USB_LOCATION to some of interface configs
    
    Each interface has own command to set interface location.
    To make it more common, we need a common global variable.
    
    Change-Id: If9e1f337666fafde10e230787c3aa63f4e1c3483
    Signed-off-by: Oleksij Rempel <o.rem...@pengutronix.de>

diff --git a/tcl/interface/altera-usb-blaster2.cfg 
b/tcl/interface/altera-usb-blaster2.cfg
index f453ebd..b2ee7ec 100644
--- a/tcl/interface/altera-usb-blaster2.cfg
+++ b/tcl/interface/altera-usb-blaster2.cfg
@@ -10,3 +10,8 @@ interface usb_blaster
 usb_blaster_vid_pid 0x09fb 0x6010 0x09fb 0x6810
 usb_blaster_lowlevel_driver ublast2
 usb_blaster_firmware $USB_BLASTER2_FIRMWARE_PATH
+
+if { [info exists INTERFACE_USB_LOCATION] } {
+       echo "Set device location to $INTERFACE_USB_LOCATION"
+       usb_blaster_location $INTERFACE_USB_LOCATION
+}
diff --git a/tcl/interface/jlink.cfg b/tcl/interface/jlink.cfg
index a4f9ddd..fc0afc5 100644
--- a/tcl/interface/jlink.cfg
+++ b/tcl/interface/jlink.cfg
@@ -12,3 +12,8 @@ interface jlink
 # Example: Select J-Link with serial number 123456789
 #
 # jlink serial 123456789
+
+if { [info exists INTERFACE_USB_LOCATION] } {
+       echo "Set device location to $INTERFACE_USB_LOCATION"
+       jlink usb_location $INTERFACE_USB_LOCATION
+}

-- 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to