diff options
author | Denis Brockus <dbrockus@google.com> | 2020-05-06 14:54:46 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-08 23:23:53 +0000 |
commit | bed715eea6e2d64a2de64793d9521e0d4e6fa7ee (patch) | |
tree | edb9d7d2817b33e4f482c9cfa51a30ae35a926b3 /include/usb_pd_tcpm.h | |
parent | 726ca5624f1de3aed6e5e89d8bc18c8ae49bf373 (diff) | |
download | chrome-ec-bed715eea6e2d64a2de64793d9521e0d4e6fa7ee.tar.gz |
tcpmv2: get USB CCD working on servo_v4 with trembyle
Change AutoDischargeDisconnects to handle Debug
Accessory CCD devices. Repair Try.SRC on an initial
SNK connection path. Repair power swap path.
Auto Discharge was still in the wrong places and
faults pointed that there was a problem but finding
the correct location is not quite as simple. This
at least is working better than before.
BUG=b:154590730
BRANCH=none
TEST=servo_v4 charge through
TEST=servo_v4 connected to USB stick when SNK and SRC
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: I9638b873a7243028a230d6d997c060d0bf2616e3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2185871
Tested-by: Denis Brockus <dbrockus@chromium.org>
Tested-by: Edward Hill <ecgh@chromium.org>
Reviewed-by: Edward Hill <ecgh@chromium.org>
Commit-Queue: Edward Hill <ecgh@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'include/usb_pd_tcpm.h')
-rw-r--r-- | include/usb_pd_tcpm.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h index 6cc53209a1..a98d8e3000 100644 --- a/include/usb_pd_tcpm.h +++ b/include/usb_pd_tcpm.h @@ -333,12 +333,14 @@ struct tcpm_drv { * @param port Type-C port number * @param pull enum tcpc_cc_pull of CC lines * @param connect Connect(1) or Disconnect(0) + * @param prev_drp optional output of previous DRP value * * @return EC_SUCCESS or error */ int (*set_connection)(int port, enum tcpc_cc_pull pull, - int connect); + int connect, + int *prev_drp); #ifdef CONFIG_USB_PD_DUAL_ROLE_AUTO_TOGGLE /** |