diff options
author | Vic Yang <victoryang@chromium.org> | 2013-05-02 01:43:39 +0800 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-05-01 13:19:20 -0700 |
commit | 73194806034d24594a0ca86fb10867050eba02cc (patch) | |
tree | d7345c2a94d294f87d065efee472311f8ff0b2fd /include | |
parent | 7de52688be2f1b06a2cbd61da0f86b5b0c489b7e (diff) | |
download | chrome-ec-73194806034d24594a0ca86fb10867050eba02cc.tar.gz |
Rename REINIT to IDLE0 in TPS65090 charge state machine
The state REINIT in TPS65090 charge state machine is more like IDLE0
state in charge_state.h. Rename it so that it's less confusing and
easier to merge the two state machines in the future. Also move the
state name definition to the header file.
BUG=chrome-os-partner:18914
TEST=Boot Spring
BRANCH=None
Change-Id: I116438fedc46ff188dfb6a3964795715b5af4d1f
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/49732
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/pmu_tpschrome.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/pmu_tpschrome.h b/include/pmu_tpschrome.h index 744e15c634..58e2288ee6 100644 --- a/include/pmu_tpschrome.h +++ b/include/pmu_tpschrome.h @@ -12,8 +12,8 @@ /* Non-SBS charging states */ enum charging_state { + ST_IDLE0, ST_IDLE, - ST_REINIT, ST_BAD_COND, ST_PRE_CHARGING, ST_CHARGING, @@ -21,6 +21,21 @@ enum charging_state { ST_DISCHARGING, }; +/* Debugging constants, in the same order as enum power_state. This string + * table was moved here to sync with enum above. + */ +#define POWER_STATE_NAME_TABLE \ + { \ + "idle0", \ + "idle", \ + "bad cond", \ + "pre-charging", \ + "charging", \ + "charging error", \ + "discharging" \ + } + /* End of POWER_STATE_NAME_TABLE macro */ + /* JEITA temperature threshold */ enum TPS_TEMPERATURE { TSET_T1, |