summaryrefslogtreecommitdiff
path: root/driver/charger/isl923x.c
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2020-06-25 11:42:28 -0700
committerCommit Bot <commit-bot@chromium.org>2020-06-26 04:07:08 +0000
commit62c32d5010d8d12ca53ac9205d7172300f9f22ea (patch)
tree7b03d8ac9f4123df4fe7e34c42a0c32a0ea8e524 /driver/charger/isl923x.c
parentee378a97e26eff37577144d0166d4a0398a9ae7d (diff)
downloadchrome-ec-62c32d5010d8d12ca53ac9205d7172300f9f22ea.tar.gz
Swap system_jumped_to_this_image with _late for common code
EFS2 boards need to call system_jumped_late in HOOK_INIT to avoid running init code twice per boot. system_jumped_to_this_image and system_jumped_late are functionally equivalent for non EFS2 boards. BUG=chromium:1072743 BRANCH=none TEST=buildall Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Change-Id: Iecfd4f6d3e9d43cea535cfd503d6bcf7b79bc4fa Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2267684 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'driver/charger/isl923x.c')
-rw-r--r--driver/charger/isl923x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/charger/isl923x.c b/driver/charger/isl923x.c
index 67ef8b80a7..ce2d6bfc69 100644
--- a/driver/charger/isl923x.c
+++ b/driver/charger/isl923x.c
@@ -516,7 +516,7 @@ static void isl923x_init(int chgnum)
* No need to proceed with the rest of init if we sysjump'd to
* this image as the input current limit has already been set.
*/
- if (system_jumped_to_this_image())
+ if (system_jumped_late())
return;
/*