diff options
author | Mulin Chao <mlchao@nuvoton.com> | 2021-03-31 20:42:23 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-14 17:47:39 +0000 |
commit | 41324a98518ae2f67352bac2110212e40f2b9fd7 (patch) | |
tree | 75f6a16ae4eadae054df08097d6518b0569f005a /zephyr/projects/trogdor/lazor | |
parent | f33381b0485662264cda1986a2427a7170a8d6c4 (diff) | |
download | chrome-ec-41324a98518ae2f67352bac2110212e40f2b9fd7.tar.gz |
zephyr: npcx: Add non-psl hibernate implementation
Implements non-psl hibernate mechanism for cros_system driver. First,
we plan a little hibernate function locates in the last 32K ram block
in npcx7 series. Then power down the other ram blocks and go to deep
sleep mode for better power consumptions.
Please notice do not use global or call the other functions in this
hibernate utility since we have turned off the other ram blocks.
BUG=b:177904393, b:183745774
BRANCH=none
TEST=zmake testall
TEST=All wake-up GPIOs can wake-up ec from hibernating on npcx7 evb.
Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: I48f95b0e616ad27f77a6d0ada8251ec438427741
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2821116
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/projects/trogdor/lazor')
-rw-r--r-- | zephyr/projects/trogdor/lazor/gpio.dts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zephyr/projects/trogdor/lazor/gpio.dts b/zephyr/projects/trogdor/lazor/gpio.dts index c5f95a1fd1..5e91c23d57 100644 --- a/zephyr/projects/trogdor/lazor/gpio.dts +++ b/zephyr/projects/trogdor/lazor/gpio.dts @@ -131,6 +131,7 @@ }; ec_rst_odl { gpios = <&gpio0 2 GPIO_INPUT>; + enum-name = "GPIO_EC_RST_ODL"; label = "EC_RST_ODL"; }; ec_entering_rw { |