summaryrefslogtreecommitdiff
path: root/board/coral
diff options
context:
space:
mode:
authorAseda Aboagye <aaboagye@google.com>2017-11-01 09:59:08 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-11-01 16:47:21 -0700
commit7bf1696711c37d829b4663fa4dfce5e35b4d237e (patch)
treeead615c45021e6f986c7d4bcb744e3c4c53beaf4 /board/coral
parent030e44309461552a18427ef1924e193bfc660106 (diff)
downloadchrome-ec-7bf1696711c37d829b4663fa4dfce5e35b4d237e.tar.gz
chg_ramp: Add charge_is_consuming_full_input_current().
Most boards had an identical implementation for this function, previously known as board_is_consuming_full_charge(). To reduce copy paste, let's just move it to common code. Boards that charge ramp without a battery will have to define their own implementation, but there probably won't be any boards like that in the near future. BUG=None BRANCH=None TEST=make -j buildall Change-Id: Ic99a378ac26dfd35d7d718bf9376eacfa8609166 Signed-off-by: Aseda Aboagye <aaboagye@google.com> Reviewed-on: https://chromium-review.googlesource.com/748919 Commit-Ready: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/coral')
-rw-r--r--board/coral/board.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/board/coral/board.c b/board/coral/board.c
index 9fe3aaae78..650b89d317 100644
--- a/board/coral/board.c
+++ b/board/coral/board.c
@@ -663,16 +663,6 @@ void board_set_charge_limit(int port, int supplier, int charge_ma,
}
/**
- * Return if board is consuming full amount of input current
- */
-int board_is_consuming_full_charge(void)
-{
- int chg_perc = charge_get_percent();
-
- return chg_perc > 2 && chg_perc < 95;
-}
-
-/**
* Return if VBUS is sagging too low
*/
int board_is_vbus_too_low(int port, enum chg_ramp_vbus_state ramp_state)