diff options
author | Wealian Liao <whliao@nuvoton.corp-partner.google.com> | 2021-04-26 17:17:35 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-27 01:02:24 +0000 |
commit | 1221d6fbe3d38141604c44f120c307d5b1f12bda (patch) | |
tree | e9c31729509f3831a74dd56142a3548230a0b8ca /zephyr/drivers | |
parent | a9e2234713340cdb90650a1e78e503f8f3187971 (diff) | |
download | chrome-ec-1221d6fbe3d38141604c44f120c307d5b1f12bda.tar.gz |
zephyr: npcx: Fix PSL hibernate
NPCX uses wrong config to switch hibernate PSL & disable RAM so volteer
doesn't enter hibernate PSL after disable RAM submitted. Change to use
CONFIG_PLATFORM_EC_HIBERNATE_PSL to fix it.
BRANCH=none
BUG=none
TEST=Check EC can wakeup by powerbtn on lazor(disable RAM) &
volteer(PSL).
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: Iad44d68789705e9b9e729e98b1e054eae298ceb8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2850305
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/drivers')
-rw-r--r-- | zephyr/drivers/cros_system/cros_system_npcx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/drivers/cros_system/cros_system_npcx.c b/zephyr/drivers/cros_system/cros_system_npcx.c index ba8abe65a2..d814a8967f 100644 --- a/zephyr/drivers/cros_system/cros_system_npcx.c +++ b/zephyr/drivers/cros_system/cros_system_npcx.c @@ -505,7 +505,7 @@ static int cros_system_npcx_hibernate(const struct device *dev, system_npcx_watchdog_stop(); /* Enter hibernate mode */ - if (IS_ENABLED(CONFIG_PLATFORM_EC_SYSTEM_HIBERNATE_PSL)) { + if (IS_ENABLED(CONFIG_PLATFORM_EC_HIBERNATE_PSL)) { system_npcx_hibernate_by_psl(dev, seconds, microseconds); } else { system_npcx_hibernate_by_disable_ram(dev, seconds, |