summaryrefslogtreecommitdiff
path: root/board/mchpevb1
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-03-17 18:39:23 -0600
committerCommit Bot <commit-bot@chromium.org>2021-03-20 00:07:30 +0000
commit7badef3bb2620762b119d9d8662aaf0a19c55778 (patch)
tree2c6978e3ce5876af34314b32df82e595d94f96a5 /board/mchpevb1
parent4d1058bf105fb8c424ae1c9d55cd365ba61c9d7a (diff)
downloadchrome-ec-7badef3bb2620762b119d9d8662aaf0a19c55778.tar.gz
charge_state: provide stub definition of charge_want_shutdown
Common power sequencing code (e.g., sc7180 power sequencing) calls charge_want_shutdown() to check there is enough battery. If the charger hasn't been enabled, the power sequencing code is expected to never call charge_want_shutdown (this has already been implemented for intel x86, for example). However, there's a bunch of ARM power sequencing code which does not guard the calls, and adding a bunch of ifdefs or IS_ENABLED to them would look bad. Provide a stub definition which indicates the charger never wants a shutdown if there's no charging enabled. BUG=b:183054226 BRANCH=none TEST=compile sc7180 without charger Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I1429be4262c005752be49668aeb7274e540d8342 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2774361 Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/mchpevb1')
-rw-r--r--board/mchpevb1/board.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/board/mchpevb1/board.c b/board/mchpevb1/board.c
index 00bab0fbc2..96529cf3d7 100644
--- a/board/mchpevb1/board.c
+++ b/board/mchpevb1/board.c
@@ -609,11 +609,6 @@ void board_set_charge_limit(int port, int supplier, int charge_ma,
* TODO HACK providing functions from common/charge_state_v2.c
* which is not compiled in when no charger
*/
-int charge_want_shutdown(void)
-{
- return 0;
-}
-
int charge_prevent_power_on(int power_button_pressed)
{
return 0;