From fe294979d6cc80a7ab71c2997502bfa2abd2912a Mon Sep 17 00:00:00 2001 From: Alexandru M Stan Date: Thu, 15 Jan 2015 13:51:59 -0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/241102 Reviewed-by: Randall Spangler --- chip/npcx/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chip/npcx/i2c.c') 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); -- cgit v1.2.1