diff options
author | Denis Brockus <dbrockus@google.com> | 2020-06-23 20:07:46 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-06-24 19:49:47 +0000 |
commit | 7c3980117e84cf3557a909806bddb376dfb74817 (patch) | |
tree | c58569df148219f9d4edf7c0a75ea6d472c43ed6 /include | |
parent | 7a100e971ad453dbbdfc30736d0e276b16067abc (diff) | |
download | chrome-ec-7c3980117e84cf3557a909806bddb376dfb74817.tar.gz |
tcpm: add attached_wait decision to common after auto-toggle
Need to verify auto toggle connections and non auto
toggle connections still work. I will verify on
trembyle
BUG=b:159736927
BRANCH=none
TEST=check basic functionality
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: I378ddf520026591d8129986078875ce46f1e0ad8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2264472
Tested-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Commit-Queue: Jett Rink <jettrink@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb_common.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/usb_common.h b/include/usb_common.h index 09957e6191..078f4b0029 100644 --- a/include/usb_common.h +++ b/include/usb_common.h @@ -12,7 +12,9 @@ enum pd_drp_next_states { DRP_TC_DEFAULT, DRP_TC_UNATTACHED_SNK, + DRP_TC_ATTACHED_WAIT_SNK, DRP_TC_UNATTACHED_SRC, + DRP_TC_ATTACHED_WAIT_SRC, DRP_TC_DRP_AUTO_TOGGLE }; @@ -25,11 +27,16 @@ enum pd_drp_next_states { * @param drp_state dual role states * @param cc1 value of CC1 set by tcpm_get_cc * @param cc2 value of CC2 set by tcpm_get_cc + * @param auto_toggle_supported indicates hardware auto toggle support. + * Hardware auto toggle support will perform the + * unattached to attached debouncing before notifying + * us of a connection. * */ enum pd_drp_next_states drp_auto_toggle_next_state(uint64_t *drp_sink_time, enum pd_power_role power_role, enum pd_dual_role_states drp_state, - enum tcpc_cc_voltage_status cc1, enum tcpc_cc_voltage_status cc2); + enum tcpc_cc_voltage_status cc1, enum tcpc_cc_voltage_status cc2, + bool auto_toggle_supported); enum pd_pref_type { /* prefer voltage larger than or equal to pd_pref_config.mv */ |