summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2018-11-06 16:33:36 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-11-16 05:01:47 -0800
commit88302ce7f21f16f0902fe5da033dd3d3e4091458 (patch)
treef0a5a612da7bf3f2fafe5cd056f5acd280c6d04c /include
parent70d01fabc76b72fe0f83de4a5a3a3b6958e7a9bf (diff)
downloadchrome-ec-88302ce7f21f16f0902fe5da033dd3d3e4091458.tar.gz
USB-PD: Supply power up to 3A + 1.5A
Currently, USB PD ports supply 3A only if there is no other active supplier. We enforce this rule even if the port is actively supplying power. That is, we drop the max current of an active port to 1.5A if a sink device is plugged to another port. This change makes USB PD ports supply 3A if the other ports are not supplying 3A. (P0, P1) and '*' indicates a sink device is plugged. Unplug both: (3A, 3A) Plug P0: (*3A, 1.5A) Plug P1: (*3A, *1.5A) Unplug P0: (1.5A, *3A) Unplug P1: (3A, 3A) Plug P1: (1.5A, *3A) Plug P0: (*1.5A, *3A) Unplug P0: (1.5A, *3A) Unplug P1: (3A, 3A) Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> BUG=b:115291657 BRANCH=none TEST=Performed as shown above and verify current of active port is not affected by the other port. Change-Id: I08fb04da7e0177d5e71f823fb1e47e6945ae12fc Reviewed-on: https://chromium-review.googlesource.com/1322069 Commit-Ready: Daisuke Nojiri <dnojiri@chromium.org> Tested-by: Raymond Chou <raymond_chou@compal.corp-partner.google.com> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/config.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index dd63927933..f29672af09 100644
--- a/include/config.h
+++ b/include/config.h
@@ -3535,6 +3535,15 @@
*/
#undef CONFIG_USB_PD_MAX_SINGLE_SOURCE_CURRENT
+/*
+ * Total current in mA the board can supply to external devices through
+ * USB-C ports
+ *
+ * When a sink device is plugged or unplugged, source current redistribution
+ * occurs. If this macro is defined, redistribution occurs in such a way
+ * that there is no current drop (e.g. 3A -> 1.5A) on active source ports.
+ */
+#undef CONFIG_USB_PD_MAX_TOTAL_SOURCE_CURRENT
/******************************************************************************/
/* stm32f4 dwc usb configs. */