diff options
author | Philip Chen <philipchen@google.com> | 2018-02-22 17:13:51 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-02-26 16:27:25 -0800 |
commit | 7ee410c14d42998899a741b939f4d0ddf4a44c10 (patch) | |
tree | 13de65e9766f359a48aadabfd4e86711b8820a9f /driver | |
parent | c3deceae6aefd783aa1f1686c446ff6d2f228a95 (diff) | |
download | chrome-ec-7ee410c14d42998899a741b939f4d0ddf4a44c10.tar.gz |
charger/rt946x: Initialize earlier
Thermal protection is by default enabled on rt946x, but we
disable it in rt946x_init() and only rely on the fuel gauge
to do thermal measurement.
Thus when we init rt946x too late, rt946x could trigger thermal
protection during boot and brown out the fuel gauge temporarily.
BUG=b:72697658
BRANCH=scarlet
TEST=boot scarlet rev3 w/o battery on AC and don't see VBAT drops
Change-Id: I54eadd80bd4fd8a6e47309b13c4d46ee01dec04a
Signed-off-by: Philip Chen <philipchen@google.com>
Reviewed-on: https://chromium-review.googlesource.com/933703
Commit-Ready: Philip Chen <philipchen@chromium.org>
Tested-by: Philip Chen <philipchen@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r-- | driver/charger/rt946x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/charger/rt946x.c b/driver/charger/rt946x.c index 9fb08a03c2..c934d346de 100644 --- a/driver/charger/rt946x.c +++ b/driver/charger/rt946x.c @@ -781,7 +781,7 @@ static void rt946x_init(void) } CPRINTF("RT946X init succeeded\n"); } -DECLARE_HOOK(HOOK_INIT, rt946x_init, HOOK_PRIO_LAST); +DECLARE_HOOK(HOOK_INIT, rt946x_init, HOOK_PRIO_INIT_I2C + 1); /* Non-standard interface functions */ |