diff options
author | Andrew McRae <amcrae@google.com> | 2022-10-27 16:51:29 +1100 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-11-10 00:16:34 +0000 |
commit | 7c7c12e53d64c6c9f88020e7257247d9c9c828df (patch) | |
tree | 1b6cd2e4c3dd4359e20b2d9e14c7d4674f43b239 /zephyr/CMakeLists.txt | |
parent | eecd4959ca079103f76fca139626c071679a210b (diff) | |
download | chrome-ec-7c7c12e53d64c6c9f88020e7257247d9c9c828df.tar.gz |
Reland "hibernate: Add hibernate support to ap power code"
This is a reland of commit 16c8fce71986d50d9e10ea089d9d9352818129ad
Reworked Kconfig handling.
Original change's description:
> hibernate: Add hibernate support to ap power code
>
> Add hibernate support to the AP power sequence code.
>
> The smart discharge system isn't supported yet.
>
> The system will hibernate after a delay when the AP is in G3
> and there is no external power connected.
>
> v2: add tests
BUG=b:246643307
TEST=build and run on nivviks
BRANCH=none
Change-Id: I7f4e5633d05ca545e63ad9784a410284ef83e2b7
Signed-off-by: Andrew McRae <amcrae@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4019012
Reviewed-by: Keith Short <keithshort@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'zephyr/CMakeLists.txt')
-rw-r--r-- | zephyr/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index 65f5c5b92d..ec88fa7e43 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -361,6 +361,9 @@ zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_POWERSEQ_SC7180 "${PLATFORM_EC}/power/qcom.c") zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_POWERSEQ_SC7280 "${PLATFORM_EC}/power/qcom.c") +if (CONFIG_PLATFORM_EC_HIBERNATE AND CONFIG_AP_PWRSEQ) + zephyr_library_sources( "${PLATFORM_EC}/power/hibernate.c") +endif () zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_PANIC "${PLATFORM_EC}/common/panic_output.c") zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_SHA256_SW |