summaryrefslogtreecommitdiff
path: root/board/munna/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/munna/board.c')
-rw-r--r--board/munna/board.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/munna/board.c b/board/munna/board.c
index 6d7b35da1c..f6996b8460 100644
--- a/board/munna/board.c
+++ b/board/munna/board.c
@@ -236,6 +236,14 @@ int board_set_active_charge_port(int charge_port)
return EC_SUCCESS;
}
+void board_set_charge_limit(int port, int supplier, int charge_ma, int max_ma,
+ int charge_mv)
+{
+ charge_ma = (charge_ma * 95) / 100;
+ charge_set_input_current_limit(
+ MAX(charge_ma, CONFIG_CHARGER_INPUT_CURRENT), charge_mv);
+}
+
int board_discharge_on_ac(int enable)
{
int ret, port;