mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-16 01:51:11 +00:00
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 <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1031115 Reviewed-by: Edward Hill <ecgh@chromium.org> Reviewed-by: Raul E Rangel <rrangel@chromium.org>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user