summaryrefslogtreecommitdiff
path: root/board/damu
diff options
context:
space:
mode:
Diffstat (limited to 'board/damu')
-rw-r--r--board/damu/board.c8
-rw-r--r--board/damu/board.h1
2 files changed, 8 insertions, 1 deletions
diff --git a/board/damu/board.c b/board/damu/board.c
index 717276e768..ddc8885e22 100644
--- a/board/damu/board.c
+++ b/board/damu/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;
diff --git a/board/damu/board.h b/board/damu/board.h
index 16e03cf45c..49875e6883 100644
--- a/board/damu/board.h
+++ b/board/damu/board.h
@@ -28,7 +28,6 @@
#define CONFIG_BATTERY_HW_PRESENT_CUSTOM
#define CONFIG_CHARGER_PSYS
-#define CONFIG_CHARGER_INPUT_CURRENT_DERATE_PCT 5
#define CONFIG_CHARGER_RUNTIME_CONFIG