summaryrefslogtreecommitdiff
path: root/include/hooks.h
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2016-05-26 18:45:21 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-05-28 00:08:38 -0700
commitdc3de2c826fe96c6d45cd72a2135951da4237c74 (patch)
tree6ad17aa97ed7998e194e6e967011959d8c3a06c1 /include/hooks.h
parent52fdd95321cb56094498f358872400969e260f9e (diff)
downloadchrome-ec-dc3de2c826fe96c6d45cd72a2135951da4237c74.tar.gz
reef: Initialize charge suppliers after change manager is initialized
Initialize the charge suppliers after change manager is initialized, otherwise charge supplier current & voltage values will be overwritten to -1 by the charge manager ini function. BUG=chrome-os-partner:53788 BRANCH=None TEST=Observed there are no "CL: p(port) s(supplier) i-1 v-1" prints on the EC console. Change-Id: Id0212c502d5833c016ac79ee15d21304d6d7ceb2 Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/347896 Commit-Ready: Vijay P Hiremath <vijay.p.hiremath@intel.com> Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'include/hooks.h')
-rw-r--r--include/hooks.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hooks.h b/include/hooks.h
index 1eec3b7ff3..ae4bfd9732 100644
--- a/include/hooks.h
+++ b/include/hooks.h
@@ -39,6 +39,8 @@ enum hook_priority {
HOOK_PRIO_INIT_EXTPOWER = HOOK_PRIO_FIRST + 9,
/* Init VBOOT hash later, since it depends on deferred functions */
HOOK_PRIO_INIT_VBOOT_HASH = HOOK_PRIO_FIRST + 10,
+ /* Init charge manager before usage in board init */
+ HOOK_PRIO_CHARGE_MANAGER_INIT = HOOK_PRIO_FIRST + 11,
/* Specific values to lump temperature-related hooks together */
HOOK_PRIO_TEMP_SENSOR = 6000,