diff options
author | Mulin Chao <mlchao@nuvoton.com> | 2021-03-22 20:46:06 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-31 02:59:44 +0000 |
commit | 1ca55af90536a83deb22e8ad85da78f5c3c30deb (patch) | |
tree | 3437ab9edeedec5eabd75cedd86b68ca5c58d451 /zephyr/Kconfig.system | |
parent | 98dcf8f4b48d7e3b956914bc9cb25468a56a05eb (diff) | |
download | chrome-ec-1ca55af90536a83deb22e8ad85da78f5c3c30deb.tar.gz |
zephyr: npcx: add hibernate callback implementation for cros_system.
This CL uses soc-specific functions for supporting hibernating.
It includes:
1. npcx_pinctrl_psl_input_configure() - Used to configure PSL input pads
from "psl-in-pads" property which detect the wake-up events. After ec
received them, PSL_OUT will be set to active level and the related
circuit will turn on core power supply (VCC1) from standby power state
(ultra-low-power mode) later.
2. npcx_pinctrl_psl_output_set_inactive() - Used to set PSL output pad
to inactive level. When PSL_OUT is in inactive level, VCC1 is turned off
for entering standby power state (ultra-low-power mode).
Use EC_SYSTEM_HIBERNATE_PSL to turn on this feature.
BUG=b:173787365
BRANCH=none
TEST=zmake testall, Press 'hibernate' on console and each
PSL input can wake-up ec from hibernating on volteer.
Cq-Depend: chromium:2793324
Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: I0fe3a9eb0c56e679c56bcb8abc1c6353ec46b5c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2794206
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.system')
-rw-r--r-- | zephyr/Kconfig.system | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/zephyr/Kconfig.system b/zephyr/Kconfig.system index d8ae87b149..4fb681acc7 100644 --- a/zephyr/Kconfig.system +++ b/zephyr/Kconfig.system @@ -4,6 +4,14 @@ if PLATFORM_EC +config PLATFORM_EC_HIBERNATE_PSL + bool "System hibernating with PSL (Power Switch Logic) mechanism" + depends on SOC_FAMILY_NPCX + help + Use PSL (Power Switch Logic) for hibernating. It turns off VCC power + rail for ultra-low power consumption and uses PSL inputs rely on VSBY + power rail to wake up ec and the whole system. + config PLATFORM_EC_SYSTEM_PRE_INIT_PRIORITY int "System pre-initialization priority" default 20 |