From 9229c795b0c4c262092c754620bf1b2bf8a9f8d7 Mon Sep 17 00:00:00 2001 From: Shawn Nematbakhsh Date: Wed, 31 Aug 2016 15:32:40 -0700 Subject: charger: bd99955: Enable VBUS discharge when appropriate Use a custom VBUS threshold of 3.9V for enable / disable of our VBUS discharge circuit. BUG=chrome-os-partner:55584 BRANCH=None TEST=Plug Apple charge-thru accessory into kevin, plug zinger into accessory, verify charging occurs at PD-negotiated current / voltage. Change-Id: I25f6f68cfe55e8bae2071cda39618b2bfadcb355 Signed-off-by: Shawn Nematbakhsh Reviewed-on: https://chromium-review.googlesource.com/379475 Commit-Ready: Aseda Aboagye Tested-by: Vijay P Hiremath Tested-by: Aseda Aboagye Reviewed-by: Vijay P Hiremath Reviewed-by: Aseda Aboagye --- include/usb_pd.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/usb_pd.h') diff --git a/include/usb_pd.h b/include/usb_pd.h index 28a94efdb3..ef2cb73512 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -936,6 +936,14 @@ void pd_transition_voltage(int idx); */ void pd_power_supply_reset(int port); +/** + * Enable or disable VBUS discharge for a given port. + * + * @param port USB-C port number + * @enable 1 if enabling discharge, 0 if disabling + */ +void pd_set_vbus_discharge(int port, int enable); + /** * Enable the power supply output after the ready delay. * -- cgit v1.2.1