diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2020-05-13 18:23:52 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-14 08:38:19 +0000 |
commit | 498b779c94c3306bc7a89a143d5e7394bc360c54 (patch) | |
tree | 0eae4fb54e88716c5484c159e0d7dd74c96d7fb0 | |
parent | 63a8d07fbc74c8a141a8d30f56434846d8e5af08 (diff) | |
download | chrome-ec-498b779c94c3306bc7a89a143d5e7394bc360c54.tar.gz |
ioex: Initialize IO expander for early sysjump
When EFS triggers sysjump, IO expander is currently not initialized.
This patch will make IO expander initialized in RW if sysjump is
triggered by EFS.
IO expander initalization should be skipped only for late sysjump.
BUG=b:156101251, chromium:1072743
BRANCH=none
TEST=Verified the bug is fixed.
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Change-Id: I25b173aa4cae9c3de5ae6bac0d5c40216ef466b6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2200244
Reviewed-by: Edward Hill <ecgh@chromium.org>
-rw-r--r-- | common/ioexpander.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/ioexpander.c b/common/ioexpander.c index 9839671a51..c5c06ee8e1 100644 --- a/common/ioexpander.c +++ b/common/ioexpander.c @@ -175,8 +175,8 @@ int ioex_init(int ioex) int flags = g->flags; if (g->ioex == ioex && g->mask && !(flags & GPIO_DEFAULT)) { - /* SysJump should not set the output levels */ - if (system_jumped_to_this_image()) + /* Late-sysJump should not set the output levels */ + if (system_jumped_late()) flags &= ~(GPIO_LOW | GPIO_HIGH); drv->set_flags_by_mask(g->ioex, g->port, |