diff options
author | Tim Lin <tim2.lin@ite.corp-partner.google.com> | 2022-01-05 11:39:19 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-01-06 22:55:45 +0000 |
commit | 4a4fa52f07789adc04717a40f12529e0890fe5dc (patch) | |
tree | 5f6b2f50648dc13dad9fbc843e12040adfbc50cf | |
parent | b8aa097b7369d751604065883844350b8f9412c6 (diff) | |
download | chrome-ec-4a4fa52f07789adc04717a40f12529e0890fe5dc.tar.gz |
zephyr: it8xxx2_evb: enable power management configuration
Enable power management configuration.
BUG=b:192354255
BRANCH=none
TEST=zmake testall
TEST=measure the current value of it8xxx2_evb:
Doze: ~5mA
Deep doze: ~0.3mA
Hibernate: ~0.05mA
Note: To achieve this measurement current, the following configuration
is required.
1. Enable CONFIG_PLATFORM_EC_KEYBOARD(KSO and KSI are internal pulled
up in cros_kb_raw_ite_init).
2. The setting mentioned in CL:3367358 commit message is necessary.
Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
Change-Id: If644af086cf1f9aafeec71518f725589f0a6b406
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3162475
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
-rw-r--r-- | zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb_defconfig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb_defconfig b/zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb_defconfig index 1d91a7130a..a85e6fd500 100644 --- a/zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb_defconfig +++ b/zephyr/boards/riscv/it8xxx2_evb/it8xxx2_evb_defconfig @@ -64,6 +64,11 @@ CONFIG_SYS_CLOCK_TICKS_PER_SEC=32768 # Flash CONFIG_SOC_FLASH_ITE_IT8XXX2=y +# Power Management +CONFIG_PM=y +CONFIG_PM_DEVICE=y +CONFIG_PM_POLICY_APP=y + # Code RAM base for IT8XXX2 CONFIG_CROS_EC_PROGRAM_MEMORY_BASE=0x80000000 CONFIG_CROS_EC_RAM_BASE=0x80100000 |