summaryrefslogtreecommitdiff
path: root/board/gingerbread
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2021-06-22 13:04:01 -0700
committerCommit Bot <commit-bot@chromium.org>2021-07-09 19:27:42 +0000
commit54207d9ee79bd58fb8ba0cab8e7b164f08ba93e2 (patch)
tree5c32e9becb7f0c5819801eb93e14c4a71f757e06 /board/gingerbread
parentafc5702f258b1a4cd88f46145f30cfa0de9f4bc9 (diff)
downloadchrome-ec-54207d9ee79bd58fb8ba0cab8e7b164f08ba93e2.tar.gz
gingerbread: Account for port C1 1.5A current limit
This CL adds an override function for typec_get_default_current_limit_rp() for gingerbread. This allows port C0 to have a 3.0A current limit as desired, and still limit C1 to 1.5A. A new macro BOARD_C1_1A5_LIMIT was added to allow this feature to be used for honeybuns variants. This macro is also used to adjust the USB-PD SRC CAP current limit to 1.5A BUG=b:191793195 BRANCH=quiche TEST=verfied on Gingerbread that Rp = 3.0A is selected for C0 and Rp = 1.5A is selected for port C1. C0: > ucpd info cc1 = Rp cc2 = Open Rp = Rp_3.0 cc1_v = 2 cc2_v = 0 rx_en = 1 pol = 0 C1: > tcpc 1 dump ROLE_CTRL (0x1a) = 0x15 Signed-off-by: Scott Collyer <scollyer@google.com> Change-Id: I2853ddcbc7b1d76320e480bd4c11ad555dd52bad Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2980440 Commit-Queue: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'board/gingerbread')
-rw-r--r--board/gingerbread/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/gingerbread/board.h b/board/gingerbread/board.h
index eb2eb934cb..cf447db7ff 100644
--- a/board/gingerbread/board.h
+++ b/board/gingerbread/board.h
@@ -36,6 +36,7 @@
#define CONFIG_USB_MUX_TUSB1064
#define CONFIG_USB_PD_VBUS_DETECT_TCPC
#define BOARD_C1_NO_PPC
+#define BOARD_C1_1A5_LIMIT
#define CONFIG_USB_PID 0x5049
#define CONFIG_USB_BCD_DEV 0x0001 /* v 0.01 */