aboutsummaryrefslogtreecommitdiff
path: root/src/jtag/stlink
diff options
context:
space:
mode:
authorMathias K <kesmtp@freenet.de>2012-01-25 09:35:13 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2012-01-27 19:25:41 +0000
commit571db4379129c7f700c71220fa3df5f80e575c89 (patch)
tree100553cddf3474646d4083acec8a3e89c1a2e920 /src/jtag/stlink
parent6bbb1479b316890519da8aa93f115501711d8656 (diff)
STLINK: Test device version (v1/v2) on usb transfers and add sg support
This patch test the device version and differentiate between v1 and v2 devices. Change-Id: Ie79bf2c5534211493b004329fb6d5b9d4ea5453b Signed-off-by: Mathias K <kesmtp@freenet.de> Reviewed-on: http://openocd.zylin.com/396 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/jtag/stlink')
-rw-r--r--src/jtag/stlink/stlink_layout.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/jtag/stlink/stlink_layout.c b/src/jtag/stlink/stlink_layout.c
index 0681d2a6..4ef9b765 100644
--- a/src/jtag/stlink/stlink_layout.c
+++ b/src/jtag/stlink/stlink_layout.c
@@ -67,6 +67,13 @@ static const struct stlink_layout stlink_layouts[] = {
.close = stlink_layout_close,
.api = &stlink_usb_layout_api,
},
+ {
+ .name = "sg",
+ .type = STLINK_LAYOUT_SG,
+ .open = stlink_layout_open,
+ .close = stlink_layout_close,
+ .api = &stlink_usb_layout_api,
+ },
{.name = NULL, /* END OF TABLE */ },
};