diff options
author | Todd Broch <tbroch@chromium.org> | 2014-12-15 21:28:39 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-12-23 22:10:56 +0000 |
commit | b9b457173ea7f194c13a2d025496c3c49cf05792 (patch) | |
tree | f840953f110167bb9b591887b8c115f065dfcdc8 /board/hoho/board.h | |
parent | dc1a89a70aa27d90f0538a87f1cf20b284563397 (diff) | |
download | chrome-ec-b9b457173ea7f194c13a2d025496c3c49cf05792.tar.gz |
pd: hoho: mcdp28x0 serial driver.
Add initial serial driver for mdcp2850 dp->hdmi converter. Driver
implements 'get information' (cmd:0x40) to provide rudimentary method
to test mcdp for functionality and assert GPIO if successful.
Future CLs may expose more serial functionality if necessary.
Signed-off-by: Todd Broch <tbroch@chromium.org>
BRANCH=samus
BUG=chrome-os-partner:34122
TEST=manual, when compiles with #define MCDP_DEBUG see successful
serial communication and result from get info.
buf:[00]0x04 [01]0x40 [02]0x00 [03]0xbc
...
buf:[00]0x0f [01]0x40 [02]0x00 [03]0x0e
[04]0x00 [05]0x01 [06]0x01 [07]0x00
[08]0x00 [09]0x00 [10]0x00 [11]0x00
[12]0x00 [13]0x00
family:000e chipid:0001 irom:1.0.0 fw:0.0.0
Change-Id: I35f9d9b0437633d1bd6a6c9fa14413bedb12f5c2
Reviewed-on: https://chromium-review.googlesource.com/235930
Trybot-Ready: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Queue: Todd Broch <tbroch@chromium.org>
Diffstat (limited to 'board/hoho/board.h')
-rw-r--r-- | board/hoho/board.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/board/hoho/board.h b/board/hoho/board.h index 1345c4e1b7..1b43a4fe5a 100644 --- a/board/hoho/board.h +++ b/board/hoho/board.h @@ -43,6 +43,11 @@ #define CONFIG_USB_PD_IDENTITY_HW_VERS 1 #define CONFIG_USB_PD_IDENTITY_SW_VERS 1 #define CONFIG_USB_PD_NO_VBUS_DETECT +/* mcdp2850 serial interface */ +#define CONFIG_MCDP28X0 usart3_hw +#define CONFIG_STREAM +#define CONFIG_STREAM_USART +#define CONFIG_STREAM_USART3 #undef CONFIG_WATCHDOG_HELP #undef CONFIG_LID_SWITCH #undef CONFIG_TASK_PROFILING |