summaryrefslogtreecommitdiff
path: root/zephyr/boards
diff options
context:
space:
mode:
authorWealian Liao <whliao@nuvoton.corp-partner.google.com>2021-08-02 18:04:14 +0800
committerCommit Bot <commit-bot@chromium.org>2021-08-05 02:33:27 +0000
commit2dc04680f63d8f27cd8354e6ce6d2185fba4e9da (patch)
treed171349d5fb0ca834af49d0fde7673398c8b8479 /zephyr/boards
parented0b953282d7f01c5e7bbfe4a8bd5a0bc6592479 (diff)
downloadchrome-ec-2dc04680f63d8f27cd8354e6ce6d2185fba4e9da.tar.gz
zephyr: npcx_evb: Enable power management
This CL enables power management for npcx7/9_evb BUG=none BRANCH=none TEST=Check evb can enter sleep by 'idlestats' console command Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: I3ef9776f492388b2943a42d99686de952c7def05 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3068843 Reviewed-by: Yuval Peress <peress@chromium.org>
Diffstat (limited to 'zephyr/boards')
-rw-r--r--zephyr/boards/arm/npcx_evb/npcx7_evb_defconfig6
-rw-r--r--zephyr/boards/arm/npcx_evb/npcx9_evb_defconfig6
2 files changed, 12 insertions, 0 deletions
diff --git a/zephyr/boards/arm/npcx_evb/npcx7_evb_defconfig b/zephyr/boards/arm/npcx_evb/npcx7_evb_defconfig
index dcfed07291..bad16f240d 100644
--- a/zephyr/boards/arm/npcx_evb/npcx7_evb_defconfig
+++ b/zephyr/boards/arm/npcx_evb/npcx7_evb_defconfig
@@ -43,3 +43,9 @@ CONFIG_ADC_SHELL=n
# PWM
CONFIG_PWM=y
CONFIG_PWM_SHELL=n
+
+# Power Management
+CONFIG_SOC_POWER_MANAGEMENT=y
+CONFIG_PM_POLICY_APP=y
+CONFIG_UART_CONSOLE_INPUT_EXPIRED=y
+CONFIG_SOC_POWER_MANAGEMENT_TRACE=y
diff --git a/zephyr/boards/arm/npcx_evb/npcx9_evb_defconfig b/zephyr/boards/arm/npcx_evb/npcx9_evb_defconfig
index 955aef4c4a..5b58ecd9f2 100644
--- a/zephyr/boards/arm/npcx_evb/npcx9_evb_defconfig
+++ b/zephyr/boards/arm/npcx_evb/npcx9_evb_defconfig
@@ -42,3 +42,9 @@ CONFIG_ADC_SHELL=n
# PWM
CONFIG_PWM=y
CONFIG_PWM_SHELL=n
+
+# Power Management
+CONFIG_SOC_POWER_MANAGEMENT=y
+CONFIG_PM_POLICY_APP=y
+CONFIG_UART_CONSOLE_INPUT_EXPIRED=y
+CONFIG_SOC_POWER_MANAGEMENT_TRACE=y