diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2020-01-30 12:45:28 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-02-04 04:07:50 +0000 |
commit | 49d2557199a851138c5c3e8842aa6d2fe7563fc3 (patch) | |
tree | 639274668691a74a8c9e9c086008e3362ecfc38f /include/usb_pd.h | |
parent | 0978c5b16a2e459f29beb1256b1ae5f2e3025768 (diff) | |
download | chrome-ec-49d2557199a851138c5c3e8842aa6d2fe7563fc3.tar.gz |
TCPMv1/v2: Move pd_dfp_enter_mode() to common file
BUG=b:148528713
BRANCH=none
TEST=make buildall -j
Change-Id: Id1d3e8bc27d895a53b53a77cf1c8fd36c69b47dc
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2032156
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'include/usb_pd.h')
-rw-r--r-- | include/usb_pd.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h index 3c84564243..ebb5343abe 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -1728,6 +1728,22 @@ bool consume_sop_prime_prime_repeat_msg(int port, uint8_t msg_id); */ bool is_transmit_msg_sop_prime(int port); +/* + * Return the pointer to PD alternate mode policy + * + * @param port USB-C port number + * @return pointer to PD alternate mode policy + */ +struct pd_policy *pd_get_am_policy(int port); + +/** + * Set DFP enter mode flags if available + * + * @param port USB-C port number + * @param set If true set the flag else clear + */ +void pd_set_dfp_enter_mode_flag(int port, bool set); + /** * Returns the status of cable flag - CABLE_FLAGS_SOP_PRIME_PRIME_ENABLE * |