diff options
author | Scott Collyer <scollyer@google.com> | 2021-02-16 13:38:33 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-24 23:33:07 +0000 |
commit | 2cee0e2eb293cea2ccc1ae782de85480dc04d808 (patch) | |
tree | af410ddfd0b033f7029aafadc8de03effbb65e67 /include/usb_pd_vdo.h | |
parent | 1403ddcbbdea6a55db88465659af5f0cc79ace82 (diff) | |
download | chrome-ec-2cee0e2eb293cea2ccc1ae782de85480dc04d808.tar.gz |
honeybuns: Add full usb-pd support for C0
This CL adds config options and board level structs to fully support
USB-PD on port C0 for both gingerbread and quiche.
This includes all the svdm response functions required for support of
DP Alt-mode as a UFP_D. This also includes honeybuns specific version
of usb-pd policy functions.
BUG=b:175660576
BRANCH=None
TEST=Verify that C0 port can establish PD contract, enter ALT-DP mode
and extend display over DP/HDMI connectors.
Signed-off-by: Scott Collyer <scollyer@google.com>
Change-Id: I11edee85e63381f00114e9fbe012a37fd8174279
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2699455
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Scott Collyer <scollyer@chromium.org>
Diffstat (limited to 'include/usb_pd_vdo.h')
-rw-r--r-- | include/usb_pd_vdo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/usb_pd_vdo.h b/include/usb_pd_vdo.h index b146fde179..9f6e35e117 100644 --- a/include/usb_pd_vdo.h +++ b/include/usb_pd_vdo.h @@ -133,9 +133,9 @@ struct product_vdo { #define PD_PRODUCT_IS_USB4(vdo) ((vdo) >> 24 & BIT(3)) #define PD_PRODUCT_IS_TBT3(vdo) ((vdo) >> 3 & BIT(0)) -/* UFP VDO Version 1.1; update the value when UFP VDO version changes */ +/* UFP VDO Version 1.2; update the value when UFP VDO version changes */ #define VDO_UFP1(cap, ctype, alt, speed) \ - ((0x1) << 29 | ((cap) & 0xf) << 24 \ + ((0x2) << 29 | ((cap) & 0xf) << 24 \ | ((ctype) & 0x3) << 22 | ((alt) & 0x7) << 3 | ((speed) & 0x7)) /* UFP VDO 1 Alternate Modes */ |