summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2015-06-03 12:39:28 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-06-04 19:33:05 +0000
commitf64945d8d12a061bc8ce2ba31077c9fc3cac8947 (patch)
treef8a5477da0acb2edb4eb0b6e736b4e6fee7d4f67
parent45d19984ec35bc47e8e921269ec4b65ee055f772 (diff)
downloadchrome-ec-f64945d8d12a061bc8ce2ba31077c9fc3cac8947.tar.gz
Cr50: Enable USB blob handler (and disable USB console)
This enables the USB blob interface. Due to partner issue 40693, we have to disable one of the other interfaces, instead of just adding this one. BUG=chrome-os-partner:40969 BRANCH=none TEST=make buildall Also, connect to the Cr50 via USB and run cd extra/usb_console make ./usb_console -p 5014 -e 1 Strings typed into this application will be case-swapped and returned. Change-Id: If94006490ec9c6033e8520297aa42ed623d4daf6 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/275132 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--board/cr50/board.h6
-rw-r--r--board/cr50/ec.tasklist1
2 files changed, 4 insertions, 3 deletions
diff --git a/board/cr50/board.h b/board/cr50/board.h
index fa0d5f7010..2263f7fa9c 100644
--- a/board/cr50/board.h
+++ b/board/cr50/board.h
@@ -19,8 +19,8 @@
/* USB configuration */
#define CONFIG_USB
-#define CONFIG_USB_CONSOLE
#define CONFIG_USB_HID
+#define CONFIG_USB_BLOB
#define CONFIG_USB_PID 0x5014
@@ -60,13 +60,13 @@ enum usb_strings {
#endif /* !__ASSEMBLER__ */
/* USB interface indexes (use define rather than enum to expand them) */
-#define USB_IFACE_CONSOLE 0
+#define USB_IFACE_BLOB 0
#define USB_IFACE_HID 1
#define USB_IFACE_COUNT 2
/* USB endpoint indexes (use define rather than enum to expand them) */
#define USB_EP_CONTROL 0
-#define USB_EP_CONSOLE 1
+#define USB_EP_BLOB 1
#define USB_EP_HID 2
#define USB_EP_COUNT 3
diff --git a/board/cr50/ec.tasklist b/board/cr50/ec.tasklist
index 8ff4e8234b..961b7750bd 100644
--- a/board/cr50/ec.tasklist
+++ b/board/cr50/ec.tasklist
@@ -18,4 +18,5 @@
*/
#define CONFIG_TASK_LIST \
TASK_ALWAYS(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \
+ TASK_ALWAYS(BLOB, blob_task, NULL, TASK_STACK_SIZE) \
TASK_ALWAYS(CONSOLE, console_task, NULL, TASK_STACK_SIZE)