summaryrefslogtreecommitdiff
path: root/include/usb_pd.h
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2016-08-31 15:32:40 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-09-13 22:21:31 -0700
commit9229c795b0c4c262092c754620bf1b2bf8a9f8d7 (patch)
treee7ce284eb81e91b79fd7e922d5d3e2be14320a21 /include/usb_pd.h
parenta04a2cb9af4c71773cfa0ea1b7aa9528cc1dc62f (diff)
downloadchrome-ec-9229c795b0c4c262092c754620bf1b2bf8a9f8d7.tar.gz
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 <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/379475 Commit-Ready: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Tested-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'include/usb_pd.h')
-rw-r--r--include/usb_pd.h8
1 files changed, 8 insertions, 0 deletions
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
@@ -937,6 +937,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.
*
* @param port USB-C port number