summaryrefslogtreecommitdiff
path: root/board/plankton
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-09-18 17:01:21 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-09-18 20:57:39 -0700
commitf46c115a28161a81ce17449201c0e8b29a7ef13f (patch)
tree97c610165f93ea69e028f8ef4ceab2d7ad5065fd /board/plankton
parentc7eaa0a81c25de7cad906e482c197432aa7dcbf7 (diff)
downloadchrome-ec-f46c115a28161a81ce17449201c0e8b29a7ef13f.tar.gz
pd: set USB communications capable flag in PDO
Set USB communications capable flag in source/sink capabilities PDO on boards that support USB. This signals to other side that we are capable of communication over D+/D- or SS Tx/Rx. BUG=chrome-os-partner:34982 BRANCH=samus,smaug TEST=load on samus, use twinkie to sniff traffic, verify that USB comms capable bit is set in source cap packet Change-Id: I0f49cf19eb141512298c3439a4708c53101d674f Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/300637 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/plankton')
-rw-r--r--board/plankton/usb_pd_policy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/plankton/usb_pd_policy.c b/board/plankton/usb_pd_policy.c
index 691f8bff6c..ab8eb6c978 100644
--- a/board/plankton/usb_pd_policy.c
+++ b/board/plankton/usb_pd_policy.c
@@ -22,7 +22,8 @@
/* Acceptable margin between requested VBUS and measured value */
#define MARGIN_MV 400 /* mV */
-#define PDO_FIXED_FLAGS (PDO_FIXED_DATA_SWAP | PDO_FIXED_EXTERNAL)
+#define PDO_FIXED_FLAGS (PDO_FIXED_DATA_SWAP | PDO_FIXED_EXTERNAL |\
+ PDO_FIXED_COMM_CAP)
/* Source PDOs */
const uint32_t pd_src_pdo[] = {