diff options
author | Alexandru M Stan <amstan@chromium.org> | 2015-01-15 13:51:59 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-01-16 20:37:07 +0000 |
commit | fe294979d6cc80a7ab71c2997502bfa2abd2912a (patch) | |
tree | a322c36b20cf7d8ef1f895f35d84de5deb32f03b /chip/npcx/i2c.c | |
parent | 7893715cb7ef471002893ed128c241a8e8dfdacb (diff) | |
download | chrome-ec-fe294979d6cc80a7ab71c2997502bfa2abd2912a.tar.gz |
I2C: Increase priority of i2c_init
Chipset sometimes needs I2C, therefore i2c_init should have a higher priority
than power_common_init so i2c is available by the time the chipset might be
talking to the battery.
BUG=chrome-os-partner:35502, chrome-os-partner:35173
TEST=There is no "battery not responding" message at startup on veyron
TEST=EC boot takes less than 1 second on veyron
BRANCH=none
Change-Id: Ib10b653decc7703e706d4dd1976abf0fdbc25ac2
Signed-off-by: Alexandru M Stan <amstan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/241102
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'chip/npcx/i2c.c')
-rw-r--r-- | chip/npcx/i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/npcx/i2c.c b/chip/npcx/i2c.c index 1e71ed6c7b..e09bda30b6 100644 --- a/chip/npcx/i2c.c +++ b/chip/npcx/i2c.c @@ -589,4 +589,4 @@ static void i2c_init(void) task_enable_irq(i2c_irqs[port]); } } -DECLARE_HOOK(HOOK_INIT, i2c_init, HOOK_PRIO_DEFAULT); +DECLARE_HOOK(HOOK_INIT, i2c_init, HOOK_PRIO_INIT_I2C); |