summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Hurst <shurst@google.com>2022-05-13 14:56:04 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-05-17 00:35:33 +0000
commitcb836efa6f2564634a16c243690e44bba09ccb52 (patch)
treea1a49b8c38dba92213e19002646de3ed0176ac4f
parentf902bdfe07603c0c414dcebc2b48c764bdf4b327 (diff)
downloadchrome-ec-cb836efa6f2564634a16c243690e44bba09ccb52.tar.gz
Zephyr: npcx: Disable SHI on AP power suspend
Disable SHI on AP power suspend complete instead of AP power shutdown complete. BUG=b:216831450 BRANCH=none TEST=Verified that shi_disable was called on AP suspend complete. zmake testall Signed-off-by: Sam Hurst <shurst@google.com> Change-Id: Ic3f73bf52bc49aaf4b1beb467d8caa81181f724b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3646961 Reviewed-by: Wai-Hong Tam <waihong@google.com>
-rw-r--r--zephyr/shim/chip/npcx/shi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/shim/chip/npcx/shi.c b/zephyr/shim/chip/npcx/shi.c
index 044343c7a8..9e52228e37 100644
--- a/zephyr/shim/chip/npcx/shi.c
+++ b/zephyr/shim/chip/npcx/shi.c
@@ -83,7 +83,7 @@ static void shi_init(void)
ap_power_ev_init_callback(&cb, shi_power_change,
#if CONFIG_PLATFORM_EC_CHIPSET_RESUME_INIT_HOOK
AP_POWER_RESUME_INIT |
- AP_POWER_SHUTDOWN_COMPLETE
+ AP_POWER_SUSPEND_COMPLETE
#else
AP_POWER_RESUME |
AP_POWER_SUSPEND