summaryrefslogtreecommitdiff
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
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>
-rw-r--r--zephyr/boards/arm/npcx_evb/npcx7_evb_defconfig6
-rw-r--r--zephyr/boards/arm/npcx_evb/npcx9_evb_defconfig6
-rw-r--r--zephyr/projects/npcx_evb/npcx7/prj.conf3
-rw-r--r--zephyr/projects/npcx_evb/npcx9/prj.conf3
4 files changed, 18 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
diff --git a/zephyr/projects/npcx_evb/npcx7/prj.conf b/zephyr/projects/npcx_evb/npcx7/prj.conf
index 57b2a7959a..8523b49ce0 100644
--- a/zephyr/projects/npcx_evb/npcx7/prj.conf
+++ b/zephyr/projects/npcx_evb/npcx7/prj.conf
@@ -39,3 +39,6 @@ CONFIG_LOG=y
# Avoid underflow info from tachometer
CONFIG_SENSOR_LOG_LEVEL_ERR=y
+
+# Avoid info storm from power management
+CONFIG_SOC_LOG_LEVEL_ERR=y
diff --git a/zephyr/projects/npcx_evb/npcx9/prj.conf b/zephyr/projects/npcx_evb/npcx9/prj.conf
index b9c8b61efd..fd96658fea 100644
--- a/zephyr/projects/npcx_evb/npcx9/prj.conf
+++ b/zephyr/projects/npcx_evb/npcx9/prj.conf
@@ -43,3 +43,6 @@ CONFIG_LOG=y
# Avoid underflow info from tachometer
CONFIG_SENSOR_LOG_LEVEL_ERR=y
+
+# Avoid info storm from power management
+CONFIG_SOC_LOG_LEVEL_ERR=y