summaryrefslogtreecommitdiff
path: root/chip/lm4/i2c.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-10-30 13:26:25 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-11-04 23:15:38 +0000
commit5d672b91a7f0d83e278b6f48dbd29105aabfb897 (patch)
treedfefdebf469d662a5c2b2db6653b3757973d9446 /chip/lm4/i2c.c
parente297b7256344a2365da7f5675eac3340a58f5955 (diff)
downloadchrome-ec-5d672b91a7f0d83e278b6f48dbd29105aabfb897.tar.gz
Clean up hook priorties on LM4
Fan no longer needs a special priority to wait for the host memmap to become available, since LPC inits earlier. I2C and PECI don't need explicit ordering on freq change. Thermal now uses the explicit prio for temp sensors done. Commented hook test. BUG=chromium:314768 BRANCH=none TEST=boot link; enable/disable PLL; verify fanset and temps commands work afterwards. Change-Id: I71766614dff2950dd307acd0635405e6b59e330a Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/175601 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'chip/lm4/i2c.c')
-rw-r--r--chip/lm4/i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/lm4/i2c.c b/chip/lm4/i2c.c
index 44bec4e2f6..5f86f3045f 100644
--- a/chip/lm4/i2c.c
+++ b/chip/lm4/i2c.c
@@ -269,7 +269,7 @@ static void i2c_freq_changed(void)
LM4_I2C_MTPR(i2c_ports[i].port) = tpr;
}
}
-DECLARE_HOOK(HOOK_FREQ_CHANGE, i2c_freq_changed, HOOK_PRIO_DEFAULT + 1);
+DECLARE_HOOK(HOOK_FREQ_CHANGE, i2c_freq_changed, HOOK_PRIO_DEFAULT);
static void i2c_init(void)
{