diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2014-10-16 13:43:38 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-10-17 01:14:03 +0000 |
commit | e0f5bca27d9e61d8600f34537b7b0aee15fc0a12 (patch) | |
tree | f8f3ca0e992d2e919b080197fada3ed5e9e1e5bd | |
parent | 9953322dafe847ed1602617e8a442579e7cfecf8 (diff) | |
download | chrome-ec-e0f5bca27d9e61d8600f34537b7b0aee15fc0a12.tar.gz |
pd: update standard revision field
USB Power Delivery standard for the BMC variant was finally rev'ed to
2.0 : update the revision field in the PD packets.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=samus
BUG=none
TEST=dump packet with the PD protocol analyzer
Change-Id: I218861d74da61da388bed10e070c9faf6f81fd00
Reviewed-on: https://chromium-review.googlesource.com/223757
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r-- | include/usb_pd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h index 8f74e3dd13..a6acd834b8 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -490,6 +490,7 @@ enum pd_data_msg_type { /* Protocol revision */ #define PD_REV10 0 +#define PD_REV20 1 /* BMC-supported bit : we are using the baseband variant of the protocol */ #define PD_BMC_SUPPORTED (1 << 15) @@ -500,7 +501,7 @@ enum pd_data_msg_type { /* build message header */ #define PD_HEADER(type, role, id, cnt) \ - ((type) | (PD_REV10 << 6) | \ + ((type) | (PD_REV20 << 6) | \ ((role) << 8) | ((id) << 9) | ((cnt) << 12) | \ PD_BMC_SUPPORTED) |