summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Broch <tbroch@chromium.org>2014-11-06 02:00:26 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-11-11 00:11:13 +0000
commit56d92341f39570ea0f3e3ae2600b9710f79b6c3c (patch)
tree065dce9c2c136f6a924b37406ea1989004af5bc6
parentcb1b27ea8c48e1f9a4e9137e466c2cc84b06d283 (diff)
downloadchrome-ec-56d92341f39570ea0f3e3ae2600b9710f79b6c3c.tar.gz
pd: Fix product type in SVDM identity header.
Fix the numberings of the product type of id header. BRANCH=samus BUG=none TEST=manual, compiles AMA == 5 Change-Id: Id0b96e720a79160074dd4547447a192bf224f27d Signed-off-by: Todd Broch <tbroch@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/228110 Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Alec Berg <alecaberg@chromium.org> Commit-Queue: Alec Berg <alecaberg@chromium.org>
-rw-r--r--include/usb_pd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index 0f43e0789f..8b2a7171ec 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -275,9 +275,9 @@ struct pd_policy {
#define IDH_PTYPE_UNDEF 0
#define IDH_PTYPE_HUB 1
#define IDH_PTYPE_PERIPH 2
-#define IDH_PTYPE_ACABLE 4
-#define IDH_PTYPE_PCABLE 5
-#define IDH_PTYPE_AMA 6
+#define IDH_PTYPE_ACABLE 3
+#define IDH_PTYPE_PCABLE 4
+#define IDH_PTYPE_AMA 5
#define VDO_IDH(usbh, usbd, ptype, is_modal, vid) \
((usbh) << 31 | (usbd) << 30 | ((ptype) & 0x7) << 27 \