summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2020-11-11 12:57:41 -0700
committerCommit Bot <commit-bot@chromium.org>2020-11-12 22:35:51 +0000
commitb193d52653b025c416bca44b2e44d69ae1301c48 (patch)
tree40d015cc9a55c54bf32c5a7f7cf746224748b323
parent3df23034159b6e89658c75770c51acac8dc88224 (diff)
downloadchrome-ec-b193d52653b025c416bca44b2e44d69ae1301c48.tar.gz
halvor: Enabling sourcing of 6A on type-C ports
To support USB4, source a total of 6A on the type-C ports. This ensures that if the first device requests 3A (15W), the chromebook continues to source 3A even after a second device is connected. BUG=none BRANCH=firmware-volteer-13521.B-master TEST=make buildall Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I22bd1f0cd645b74587479ee4b18181ef82ffcb87 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2533492 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
-rw-r--r--board/halvor/board.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/halvor/board.h b/board/halvor/board.h
index 850ffd7f43..09ae5baee5 100644
--- a/board/halvor/board.h
+++ b/board/halvor/board.h
@@ -65,6 +65,12 @@
#define USBC_PORT_C0_BB_RETIMER_I2C_ADDR 0x40
#define USBC_PORT_C1_BB_RETIMER_I2C_ADDR 0x41
#define USBC_PORT_C2_BB_RETIMER_I2C_ADDR 0x42
+/*
+ * For USB4, set the total budget for source current to 6A so that the first
+ * connected port is allowed to source 3A while sourcing 1.5A on other type-C
+ * ports.
+ */
+#define CONFIG_USB_PD_MAX_TOTAL_SOURCE_CURRENT 6000
/* USB Type A Features */