summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Hurst <shurst@google.com>2021-03-04 14:20:50 -0800
committerCommit Bot <commit-bot@chromium.org>2021-03-12 20:11:40 +0000
commit1de6b4fbda2bdc60c010c8136bfc02697a3839bb (patch)
treeee7b4f08a61dbe8001c8f6db91658708344803f9
parenta1258ba9944c16dd60080fa69a94bf1b28f8db61 (diff)
downloadchrome-ec-1de6b4fbda2bdc60c010c8136bfc02697a3839bb.tar.gz
TCPMV2: Fix the VPD_VDO returned by VPDs
A device that supports Vconn Powered functionality must reflect this by setting bit0 of its VPD VDO to 1 or 0 if said functionality isn't supported. BUG=b:165934405 BRANCH=none TEST=make runtests Verified that returned VDO from chocodile_vpdmcu was correct. Signed-off-by: Sam Hurst <shurst@google.com> Change-Id: I2f7b6a66c09221f1d5c12831cd2e4b56510aecdd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2748426 Reviewed-by: Diana Z <dzigterman@chromium.org>
-rw-r--r--include/usb_pd_vdo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/usb_pd_vdo.h b/include/usb_pd_vdo.h
index b0773ae7e7..2cb1804a69 100644
--- a/include/usb_pd_vdo.h
+++ b/include/usb_pd_vdo.h
@@ -555,8 +555,8 @@ enum vpd_vbus {
};
enum vpd_cts_support {
- VPD_CTS_SUPPORTED,
VPD_CTS_NOT_SUPPORTED,
+ VPD_CTS_SUPPORTED,
};
#define VPD_VDO_MAX_VBUS(vdo) (((vdo) >> 15) & 0x3)