summaryrefslogtreecommitdiff
path: root/include/charge_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/charge_state.h')
-rw-r--r--include/charge_state.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/charge_state.h b/include/charge_state.h
index 182a99f703..5f90de36fd 100644
--- a/include/charge_state.h
+++ b/include/charge_state.h
@@ -1,9 +1,9 @@
-/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
+/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
- *
*/
+#include "battery_pack.h"
#include "timer.h"
#ifndef __CROS_EC_CHARGE_STATE_H
@@ -44,8 +44,10 @@
enum power_state {
/* Meta-state; unchanged from previous time through task loop */
PWR_STATE_UNCHANGE = 0,
- /* (Re-)initalizing charge state machine */
+ /* Initializing charge state machine at boot */
PWR_STATE_INIT,
+ /* Re-initializing charge state machine */
+ PWR_STATE_REINIT,
/* Just transitioned from init to idle */
PWR_STATE_IDLE0,
/* Idle; AC present */
@@ -67,6 +69,7 @@ enum power_state {
{ \
"unchange", \
"init", \
+ "reinit", \
"idle0", \
"idle", \
"discharge", \