summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/boten/board.c5
-rw-r--r--board/madoo/board.c6
-rw-r--r--board/magolor/board.c5
-rw-r--r--board/metaknight/board.c5
-rw-r--r--board/waddledoo/board.c5
5 files changed, 16 insertions, 10 deletions
diff --git a/board/boten/board.c b/board/boten/board.c
index 0e82934373..1b6d1a8080 100644
--- a/board/boten/board.c
+++ b/board/boten/board.c
@@ -203,9 +203,10 @@ void board_set_charge_limit(int port, int supplier, int charge_ma, int max_ma,
int icl = MAX(charge_ma, CONFIG_CHARGER_INPUT_CURRENT);
/*
- * TODO(b/151955431): Characterize the input current limit in case a
- * scaling needs to be applied here
+ * b/147463641: The charger IC seems to overdraw ~4%, therefore we
+ * reduce our target accordingly.
*/
+ icl = icl * 96 / 100;
charge_set_input_current_limit(icl, charge_mv);
}
diff --git a/board/madoo/board.c b/board/madoo/board.c
index b1198b28a4..390b6bf5c6 100644
--- a/board/madoo/board.c
+++ b/board/madoo/board.c
@@ -292,9 +292,11 @@ void board_set_charge_limit(int port, int supplier, int charge_ma,
int icl = MAX(charge_ma, CONFIG_CHARGER_INPUT_CURRENT);
/*
- * TODO(b:147463641): Characterize the input current limit in case that
- * a scaling needs to be applied here.
+ * b/147463641: The charger IC seems to overdraw ~4%, therefore we
+ reduce
+ * our target accordingly.
*/
+ icl = icl * 96 / 100;
charge_set_input_current_limit(icl, charge_mv);
}
diff --git a/board/magolor/board.c b/board/magolor/board.c
index 8f3485b121..9a2c19cf1c 100644
--- a/board/magolor/board.c
+++ b/board/magolor/board.c
@@ -320,9 +320,10 @@ void board_set_charge_limit(int port, int supplier, int charge_ma,
int icl = MAX(charge_ma, CONFIG_CHARGER_INPUT_CURRENT);
/*
- * TODO(b:147463641): Characterize the input current limit in case that
- * a scaling needs to be applied here.
+ * b/147463641: The charger IC seems to overdraw ~4%, therefore we
+ * reduce our target accordingly.
*/
+ icl = icl * 96 / 100;
charge_set_input_current_limit(icl, charge_mv);
}
diff --git a/board/metaknight/board.c b/board/metaknight/board.c
index 79347ead32..45496c2992 100644
--- a/board/metaknight/board.c
+++ b/board/metaknight/board.c
@@ -346,9 +346,10 @@ void board_set_charge_limit(int port, int supplier, int charge_ma,
int icl = MAX(charge_ma, CONFIG_CHARGER_INPUT_CURRENT);
/*
- * TODO(b:147463641): Characterize the input current limit in case that
- * a scaling needs to be applied here.
+ * b/147463641: The charger IC seems to overdraw ~4%, therefore we
+ * reduce our target accordingly.
*/
+ icl = icl * 96 / 100;
charge_set_input_current_limit(icl, charge_mv);
}
diff --git a/board/waddledoo/board.c b/board/waddledoo/board.c
index 1e658d65f2..4ce4deff8f 100644
--- a/board/waddledoo/board.c
+++ b/board/waddledoo/board.c
@@ -340,9 +340,10 @@ void board_set_charge_limit(int port, int supplier, int charge_ma,
int icl = MAX(charge_ma, CONFIG_CHARGER_INPUT_CURRENT);
/*
- * TODO(b:147463641): Characterize the input current limit in case that
- * a scaling needs to be applied here.
+ * b/147463641: The charger IC seems to overdraw ~4%, therefore we
+ * reduce our target accordingly.
*/
+ icl = icl * 96 / 100;
charge_set_input_current_limit(icl, charge_mv);
}