From 53a852f51049643f480f6d394543e4604b973479 Mon Sep 17 00:00:00 2001 From: Keith Short Date: Wed, 11 Nov 2020 11:04:08 -0700 Subject: volteer: Enabling sourcing of 4.5A on type-C ports To support USB4, source a total of 4.5A 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 TEST=connect device that sinks 15W (5V, 3A), connect a second device and verify PD contract remains at 15W on the first device. Signed-off-by: Keith Short Change-Id: Ibc28a9ce4b445b43ceb55151fb64540a40045798 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2533488 Reviewed-by: Abe Levkoy Commit-Queue: Abe Levkoy --- board/volteer/board.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/board/volteer/board.h b/board/volteer/board.h index d4be115677..56ae1cb0b4 100644 --- a/board/volteer/board.h +++ b/board/volteer/board.h @@ -79,6 +79,12 @@ /* Enabling USB4 mode */ #define CONFIG_USB_PD_USB4 #define USBC_PORT_C1_BB_RETIMER_I2C_ADDR 0x40 +/* + * For USB4, set the total budget for source current to 4.5A 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 4500 /* USB Type A Features */ #define USB_PORT_COUNT 1 -- cgit v1.2.1