diff options
author | Ting Shen <phoenixshen@chromium.org> | 2019-09-11 01:17:49 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-09-12 07:34:13 +0000 |
commit | 614bfa8ed0066866f6e8136b186b552f57f67ea9 (patch) | |
tree | 1097a56383d4d68167a9f30cae521cc700b72cd7 /board/kukui | |
parent | f46a9ad3aa23db4b4044c1f47015e3684730d9a7 (diff) | |
download | chrome-ec-614bfa8ed0066866f6e8136b186b552f57f67ea9.tar.gz |
kukui: move board_set_charge_limit to baseboard
The function is shared across all mt6370 users, move it to a common
place.
BUG=b:140156596
TEST=make
BRANCH=master
Change-Id: I7a9dafa5aafd078d997afe82fe7e0c555ecb5006
Signed-off-by: Ting Shen <phoenixshen@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1797196
Tested-by: Xiong Huang <xiong.huang@bitland.corp-partner.google.com>
Reviewed-by: Yilun Lin <yllin@chromium.org>
Reviewed-by: Xiong Huang <xiong.huang@bitland.corp-partner.google.com>
Commit-Queue: Zhuohao Lee <zhuohao@chromium.org>
Diffstat (limited to 'board/kukui')
-rw-r--r-- | board/kukui/board.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/board/kukui/board.c b/board/kukui/board.c index a19b92d6cb..b25bd3c07f 100644 --- a/board/kukui/board.c +++ b/board/kukui/board.c @@ -180,18 +180,6 @@ 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) -{ - /* b/134227872: Limit input current to 2A in S0 to prevent overheat */ - if (power_get_state() == POWER_S0) - charge_set_input_current_limit(MIN(charge_ma, 2000), charge_mv); - else - charge_set_input_current_limit( - MAX(charge_ma, CONFIG_CHARGER_INPUT_CURRENT), - charge_mv); -} - int board_discharge_on_ac(int enable) { int ret, port; |