From 3a6067fbdee184f72cda62d48d6add90022f40ee Mon Sep 17 00:00:00 2001 From: Sam McNally Date: Fri, 24 Feb 2023 18:58:21 +1100 Subject: dibbi: Remove overridden typec_set_source_current_limit(). With a PPC in use, overriding typec_set_source_current_limit() is no longer necessary. The implementation included some remnants of the pre-PPC implementation, causing 3A to map to 1.5A. BUG=b:270077963 TEST=dibbi charges at over 1.75A BRANCH=none Change-Id: I17f9bae3f2c168b9502734d11afc18c4e23a59bf Signed-off-by: Sam McNally Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4290947 Reviewed-by: Peter Marheine Commit-Queue: Peter Marheine --- board/dibbi/board.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/board/dibbi/board.c b/board/dibbi/board.c index 86830d5aa5..34ae317d14 100644 --- a/board/dibbi/board.c +++ b/board/dibbi/board.c @@ -205,19 +205,6 @@ void board_pd_vconn_ctrl(int port, enum usbpd_cc_pin cc_pin, int enabled) */ } -__override void typec_set_source_current_limit(int port, enum tcpc_rp_value rp) -{ - int ilim3A; - - if (port < 0 || port > CONFIG_USB_PD_PORT_MAX_COUNT) - return; - - /* Switch between 1.5A and 3A ILIM values */ - ilim3A = (rp == TYPEC_RP_3A0); - - tcpm_select_rp_value(0, ilim3A); -} - /******************************************************************************/ /* * Since dibbi has no battery, it must source all of its power from either -- cgit v1.2.1