diff options
author | Kevin K Wong <kevin.k.wong@intel.com> | 2016-09-21 08:57:40 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-11-02 06:42:04 -0700 |
commit | 180ac77e16e1e5a57769a2a20411b6e37d649107 (patch) | |
tree | 7b9d5cb676836a9e368c36aabd004734c8b55f59 /include/usb_pd_tcpm.h | |
parent | dd652accd0c26d56af3511d178507af738912885 (diff) | |
download | chrome-ec-180ac77e16e1e5a57769a2a20411b6e37d649107.tar.gz |
reef: enable tcpc-controlled drp toggle
BUG=chrome-os-partner:54668
BRANCH=none
TEST=Verified SNK is detected in S0 (toggle on), S3 (toggle off),
and S5 (force sink). SRC is detect in S0 only, stays detected when
entered S3, but unplug/plug while in S3 will not re-detect until
system back in S0. When go to S5, SRC will get disconnected until
back in S0, and hotplug SRC in S5 will not get detected. Checked
power role swap with another chromebook in the above scenario also.
Change-Id: I2a487fca5cb04c45524aa3efde84fcd10ff0579e
Signed-off-by: Kevin K Wong <kevin.k.wong@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/396918
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'include/usb_pd_tcpm.h')
-rw-r--r-- | include/usb_pd_tcpm.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h index 912e3bbda2..5960d1b62e 100644 --- a/include/usb_pd_tcpm.h +++ b/include/usb_pd_tcpm.h @@ -184,6 +184,17 @@ struct tcpm_drv { * @param enable Discharge enable or disable */ void (*tcpc_discharge_vbus)(int port, int enable); + +#ifdef CONFIG_USB_PD_DUAL_ROLE_AUTO_TOGGLE + /** + * Enable TCPC auto DRP toggling. + * + * @param port Type-C port number + * + * @return EC_SUCCESS or error + */ + int (*drp_toggle)(int port); +#endif }; enum tcpc_alert_polarity { |