From 487c7a98cf73afdddeef2b63de2fe09320a140f0 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 26 Apr 2018 15:30:02 -0600 Subject: [PATCH] grunt: Drop the unnecessary charge-current limit Our maximum power is 45W so we don't need to keep this limit. Also we can drop the TODO since we have a bug to track that work. BUG=b:69683178 BRANCH=none TEST=emerge-grunt chromeos-ec Change-Id: Ie40847e3e88653225dc228563c1ac89cc0970316 Signed-off-by: Simon Glass Reviewed-on: https://chromium-review.googlesource.com/1031115 Reviewed-by: Edward Hill Reviewed-by: Raul E Rangel --- board/grunt/board.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/board/grunt/board.c b/board/grunt/board.c index 9c26df0e4a..e522751ea1 100644 --- a/board/grunt/board.c +++ b/board/grunt/board.c @@ -458,14 +458,6 @@ int board_set_active_charge_port(int port) void board_set_charge_limit(int port, int supplier, int charge_ma, int max_ma, int charge_mv) { - /* TODO(ecgh): check limits */ - /* - * To protect the charge inductor, at voltages above 18V we should - * set the current limit to 2.7A. - */ - if (charge_mv > 18000) - charge_ma = MIN(2700, charge_ma); - charge_set_input_current_limit(MAX(charge_ma, CONFIG_CHARGER_INPUT_CURRENT), charge_mv);