summaryrefslogtreecommitdiff
path: root/board/twinkie
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2016-01-15 10:15:03 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-01-19 14:24:39 -0800
commitc21a0b8083506e7f824c7829043ff1978b389a09 (patch)
tree8a7b4fcf67b25a80113fd21734b18520ff78f391 /board/twinkie
parent5496242945e0c37deede4d06f95754be69411ae9 (diff)
downloadchrome-ec-c21a0b8083506e7f824c7829043ff1978b389a09.tar.gz
twinkie: fix USB interfaces count in the 'sink' image
As proposed by e.lam@cirro.nl, update the number of USB interface in the descriptor when we are in 'sink mode' : the vendor interface for the sniffer endpoint is not exported in this mode, so we have only one interface. This should the Windows USB driver used by libusb/Zadig. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=chromium:570287 TEST=./board/twinkie/build_rw_variant Change-Id: I5948643d552030481a52adb8c0937a42e7ae8ae1 Reviewed-on: https://chromium-review.googlesource.com/322371 Commit-Ready: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/twinkie')
-rw-r--r--board/twinkie/board.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/twinkie/board.h b/board/twinkie/board.h
index 72f69972cc..e9c2466aa9 100644
--- a/board/twinkie/board.h
+++ b/board/twinkie/board.h
@@ -127,7 +127,6 @@ enum usb_strings {
/* USB interface indexes (use define rather than enum to expand them) */
#define USB_IFACE_CONSOLE 0
#define USB_IFACE_VENDOR 1
-#define USB_IFACE_COUNT 2
/* USB endpoint indexes (use define rather than enum to expand them) */
#define USB_EP_CONTROL 0
@@ -143,8 +142,11 @@ enum usb_strings {
#ifdef HAS_TASK_SNIFFER
#define USB_EP_SNIFFER 3
#define USB_EP_COUNT 4
+#define USB_IFACE_COUNT 2
#else
#define USB_EP_COUNT 2
+/* No IFACE_VENDOR for the sniffer */
+#define USB_IFACE_COUNT 1
#endif
#endif /* __CROS_EC_BOARD_H */