summaryrefslogtreecommitdiff
path: root/include/usb_pd_tcpm.h
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2020-11-16 17:52:40 -0700
committerCommit Bot <commit-bot@chromium.org>2020-11-18 00:13:24 +0000
commitef1ebb6ee64a3e070057c50d87046a095971ccc5 (patch)
tree23ac0ce48a3a92b60e583fcf9b4cd4828a0d7cfc /include/usb_pd_tcpm.h
parent4ffec8ecbdf9eef45daf8de1adbdf556d5d2688e (diff)
downloadchrome-ec-ef1ebb6ee64a3e070057c50d87046a095971ccc5.tar.gz
tcpc: Cleanup usage of tcpci_set_role_ctrl()
Cleanup arguments for tcpci_set_role_ctrl(). BUG=b:171430855 BRANCH=firmware-volteer-13521.B-master TEST=make buildall Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: Ib58defb5f9bcd3c3fe3d7de4239aa19e5545b778 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2544802 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'include/usb_pd_tcpm.h')
-rw-r--r--include/usb_pd_tcpm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h
index 54122fdc5e..bd4b29ddba 100644
--- a/include/usb_pd_tcpm.h
+++ b/include/usb_pd_tcpm.h
@@ -47,6 +47,12 @@ enum tcpc_rp_value {
TYPEC_RP_RESERVED = 3,
};
+/* DRP (dual-role-power) setting */
+enum tcpc_drp {
+ TYPEC_NO_DRP = 0,
+ TYPEC_DRP = 1,
+};
+
/**
* Returns whether the polarity without the DTS extension
*/