summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWealian Liao <whliao@nuvoton.corp-partner.google.com>2021-08-05 13:56:24 +0800
committerCommit Bot <commit-bot@chromium.org>2021-08-11 08:56:03 +0000
commit78556393c56bc04b166df341cd06f29e7902c405 (patch)
treefd13be0ce2f32a2a9e2976e0935c1ba809c7a60c
parentb1acee1aaaac4ba63a83740ca7d1e2cf7e910843 (diff)
downloadchrome-ec-78556393c56bc04b166df341cd06f29e7902c405.tar.gz
zephyr: npcx_evb: Enable eSPI
This CL enables eSPI for npcx7/9_evb. BUG=none BRANCH=none TEST=Read EC host register by eSPI host emulator. Cq-Depend: chromium:3074381 Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: I9308095eb5cca8fdcd6466fe776d699e3a4a97c0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3077761 Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r--zephyr/projects/npcx_evb/npcx7/gpio.dts1
-rw-r--r--zephyr/projects/npcx_evb/npcx7/prj.conf5
-rw-r--r--zephyr/projects/npcx_evb/npcx9/gpio.dts1
-rw-r--r--zephyr/projects/npcx_evb/npcx9/prj.conf5
4 files changed, 12 insertions, 0 deletions
diff --git a/zephyr/projects/npcx_evb/npcx7/gpio.dts b/zephyr/projects/npcx_evb/npcx7/gpio.dts
index 006fb8fd06..d466e4759d 100644
--- a/zephyr/projects/npcx_evb/npcx7/gpio.dts
+++ b/zephyr/projects/npcx_evb/npcx7/gpio.dts
@@ -38,6 +38,7 @@
};
pch_wake_l {
gpios = <&gpio5 0 GPIO_OUT_HIGH>;
+ enum-name = "GPIO_EC_PCH_WAKE_ODL";
label = "PCH_WAKE_L";
};
gpio_pgood_fan: pgood_fan {
diff --git a/zephyr/projects/npcx_evb/npcx7/prj.conf b/zephyr/projects/npcx_evb/npcx7/prj.conf
index 8523b49ce0..930d38e44b 100644
--- a/zephyr/projects/npcx_evb/npcx7/prj.conf
+++ b/zephyr/projects/npcx_evb/npcx7/prj.conf
@@ -32,6 +32,11 @@ CONFIG_PLATFORM_EC_FAN=y
# Console command
CONFIG_PLATFORM_EC_CONSOLE_CMD_SCRATCHPAD=y
+# eSPI
+CONFIG_ESPI=y
+CONFIG_PLATFORM_EC_ESPI_VW_SLP_S3=y
+CONFIG_PLATFORM_EC_ESPI_VW_SLP_S4=y
+
# Zephyr feature
CONFIG_ASSERT=y
CONFIG_SHELL_MINIMAL=n
diff --git a/zephyr/projects/npcx_evb/npcx9/gpio.dts b/zephyr/projects/npcx_evb/npcx9/gpio.dts
index 006fb8fd06..d466e4759d 100644
--- a/zephyr/projects/npcx_evb/npcx9/gpio.dts
+++ b/zephyr/projects/npcx_evb/npcx9/gpio.dts
@@ -38,6 +38,7 @@
};
pch_wake_l {
gpios = <&gpio5 0 GPIO_OUT_HIGH>;
+ enum-name = "GPIO_EC_PCH_WAKE_ODL";
label = "PCH_WAKE_L";
};
gpio_pgood_fan: pgood_fan {
diff --git a/zephyr/projects/npcx_evb/npcx9/prj.conf b/zephyr/projects/npcx_evb/npcx9/prj.conf
index fd96658fea..c268df9b24 100644
--- a/zephyr/projects/npcx_evb/npcx9/prj.conf
+++ b/zephyr/projects/npcx_evb/npcx9/prj.conf
@@ -36,6 +36,11 @@ CONFIG_PLATFORM_EC_FAN=y
# Console command
CONFIG_PLATFORM_EC_CONSOLE_CMD_SCRATCHPAD=y
+# eSPI
+CONFIG_ESPI=y
+CONFIG_PLATFORM_EC_ESPI_VW_SLP_S3=y
+CONFIG_PLATFORM_EC_ESPI_VW_SLP_S4=y
+
# Zephyr feature
CONFIG_ASSERT=y
CONFIG_SHELL_MINIMAL=n