summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2014-10-16 13:58:40 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-10-17 05:52:40 +0000
commitfd709edf12dfdfb7ee4cf443c4df8bd1461e7b41 (patch)
tree8a4f9994d97357b127f29c3c75ffe0516dd269f4
parent66d75af8776a54ed4905aacc197696a520c8e73b (diff)
downloadchrome-ec-fd709edf12dfdfb7ee4cf443c4df8bd1461e7b41.tar.gz
pd: fix VDM commands numbering
In structured VDMs, the ACK command is b01 and the NAK command is b10, update the defines accordingly. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=samus BUG=none TEST=interoperability test with another power source. Change-Id: I8050ae262dc5ab538d973f802111c2874358ea37 Reviewed-on: https://chromium-review.googlesource.com/223725 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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index a6acd834b8..99e0271a58 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -192,8 +192,8 @@ struct pd_policy {
#define VDO_CMDT_MASK VDO_CMDT(0x3)
#define CMDT_INIT 0
-#define CMDT_RSP_NAK 1
-#define CMDT_RSP_ACK 2
+#define CMDT_RSP_ACK 1
+#define CMDT_RSP_NAK 2
#define CMDT_RSP_BUSY 3