diff options
author | Mary Ruthven <mruthven@chromium.org> | 2016-03-30 16:24:37 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-04-07 13:00:39 -0700 |
commit | 8264b91a5b6769d3ed42849befcdcb4e3cbe3448 (patch) | |
tree | e61e57669ecd962f89c86abc051c4950ecd7de8c /board/cr50 | |
parent | fa643a9fc754e6a5c18181ecb928fa9a5c12e7ae (diff) | |
download | chrome-ec-8264b91a5b6769d3ed42849befcdcb4e3cbe3448.tar.gz |
cr50: export AP and EC UART through USB
Add support for exporting the EC and AP UARTs to USB.
BUG=chrome-os-partner:50702
BRANCH=none
TEST=Verify the EC and AP UARTs are forwarded to the EC and AP endpoints
Change-Id: Icaeb7929dbaaf71a40f0752aa6cb5a2319373651
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/336317
Tested-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'board/cr50')
-rw-r--r-- | board/cr50/board.c | 2 | ||||
-rw-r--r-- | board/cr50/board.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/board/cr50/board.c b/board/cr50/board.c index 3f951e8b41..702e35f84d 100644 --- a/board/cr50/board.c +++ b/board/cr50/board.c @@ -116,6 +116,8 @@ const void * const usb_strings[] = { [USB_STR_CONSOLE_NAME] = USB_STRING_DESC("Shell"), [USB_STR_BLOB_NAME] = USB_STRING_DESC("Blob"), [USB_STR_HID_NAME] = USB_STRING_DESC("PokeyPokey"), + [USB_STR_AP_NAME] = USB_STRING_DESC("AP"), + [USB_STR_EC_NAME] = USB_STRING_DESC("EC"), }; BUILD_ASSERT(ARRAY_SIZE(usb_strings) == USB_STR_COUNT); #endif diff --git a/board/cr50/board.h b/board/cr50/board.h index 83a370b23e..5781e9a22b 100644 --- a/board/cr50/board.h +++ b/board/cr50/board.h @@ -70,6 +70,8 @@ enum usb_strings { USB_STR_CONSOLE_NAME, USB_STR_BLOB_NAME, USB_STR_HID_NAME, + USB_STR_AP_NAME, + USB_STR_EC_NAME, USB_STR_COUNT }; @@ -89,8 +91,6 @@ enum usb_strings { /* UART indexes (use define rather than enum to expand them) */ #define UART_CR50 0 -#define UART_AP 1 -#define UART_EC 2 #define UARTN UART_CR50 |