summaryrefslogtreecommitdiff
path: root/board/lantis
diff options
context:
space:
mode:
authorPeter Marheine <pmarheine@chromium.org>2022-11-14 11:53:32 +1100
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-11-24 01:50:11 +0000
commit43b53e004573a56a255ca57d4a6d04ac4bed44d7 (patch)
treea2e3e5c0d4d30055fbdcf0535282de2d314fcd8f /board/lantis
parent667d7d7129a1d3d7b33046755030ec5fdce1ac32 (diff)
downloadchrome-ec-43b53e004573a56a255ca57d4a6d04ac4bed44d7.tar.gz
Add default implementation of board_set_charge_limit
The majority of boards simply call charge_set_input_current_limit() from board_set_charge_limit() now that the minimum current limit and derating are available as config options. Make this the default behavior of the charge manager, overridable by boards as needed. Boards that have existing custom behavior retain it, with their versions of board_set_charge_limit() marked as __override as necessary. BUG=b:163093572 TEST=make buildall; zmake build -a BRANCH=none Signed-off-by: Peter Marheine <pmarheine@chromium.org> Change-Id: I72475ca0e8381596cafbcda4b042c7f884ae0432 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4022857 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/lantis')
-rw-r--r--board/lantis/board.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/board/lantis/board.c b/board/lantis/board.c
index 8d20b61673..9917231474 100644
--- a/board/lantis/board.c
+++ b/board/lantis/board.c
@@ -719,16 +719,6 @@ uint16_t tcpc_get_alert_status(void)
return status;
}
-void board_set_charge_limit(int port, int supplier, int charge_ma, int max_ma,
- int charge_mv)
-{
- /*
- * TODO(b/151955431): Characterize the input current limit in case a
- * scaling needs to be applied here
- */
- charge_set_input_current_limit(charge_ma, charge_mv);
-}
-
int board_set_active_charge_port(int port)
{
int is_valid_port = (port >= 0 && port < board_get_usb_pd_port_count());