diff options
author | Iurii Berezhanskyi <Iurii.Berezhanskyi@infineon.corp-partner.google.com> | 2021-05-24 12:49:24 +0300 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-26 22:40:23 +0000 |
commit | 70d25ba53e492bd0f542a6e7e11f7035bb1b82ba (patch) | |
tree | 89d8802ee6de3f45ab7aad3faf97b0cbe7817d05 | |
parent | 6f5fdb09efe0bcad3cf7782ac7ffc65132aa78fe (diff) | |
download | chrome-ec-70d25ba53e492bd0f542a6e7e11f7035bb1b82ba.tar.gz |
CCGXXF: Enable Auto Discharge Disconnect
Enable Auto Discharge functionality in TCPM driver by hooking
tcpci_tcpc_enable_auto_discharge_disconnect() wrapper
into tcpci_tcpm_drv structure.
BUG=none
BRANCH=none
TEST=Tested on ADLRVP, USB4 with TCPCI works as expected
Change-Id: I87af20b031ce58e74f9fa7e9b4a8b5eee0002d72
Signed-off-by: Iurii Berezhanskyi <iurii.berezhanskyi@infineon.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2914973
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
-rw-r--r-- | driver/tcpm/tcpci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/driver/tcpm/tcpci.c b/driver/tcpm/tcpci.c index df499351f1..7c6fe6be10 100644 --- a/driver/tcpm/tcpci.c +++ b/driver/tcpm/tcpci.c @@ -1779,6 +1779,8 @@ const struct tcpm_drv tcpci_tcpm_drv = { #ifdef CONFIG_USB_PD_DISCHARGE_TCPC .tcpc_discharge_vbus = &tcpci_tcpc_discharge_vbus, #endif + .tcpc_enable_auto_discharge_disconnect = + &tcpci_tcpc_enable_auto_discharge_disconnect, #ifdef CONFIG_USB_PD_DUAL_ROLE_AUTO_TOGGLE .drp_toggle = &tcpci_tcpc_drp_toggle, #endif |