diff options
Diffstat (limited to 'common/charger_base.c')
-rw-r--r-- | common/charger_base.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/common/charger_base.c b/common/charger_base.c index af76b1f51c..127229068c 100644 --- a/common/charger_base.c +++ b/common/charger_base.c @@ -21,7 +21,7 @@ #define CPRINTF(format, args...) cprintf(CC_CHARGER, format, ##args) /* Base has responded to one of our commands already. */ -int base_responsive; +static int base_responsive; int charge_base; int prev_charge_base; static int prev_current_base; @@ -642,5 +642,10 @@ DECLARE_CONSOLE_COMMAND(chgdualdebug, command_chgdualdebug, "[charge (auto|<current>)|discharge (auto|<current>)]", "Manually control dual-battery charging algorithm."); +void charger_base_setup(void) +{ + base_responsive = 0; +} + /* Reset the base on S5->S0 transition. */ DECLARE_HOOK(HOOK_CHIPSET_STARTUP, board_base_reset, HOOK_PRIO_DEFAULT); |