diff options
author | Wealian Liao <whliao@nuvoton.corp-partner.google.com> | 2021-08-12 11:06:00 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-16 02:58:15 +0000 |
commit | 8e7f105716a105173dc8af41cb76437fee62e91a (patch) | |
tree | 7278c3bc434b874fdee9f32e0931f330d0623175 | |
parent | b1e287f83f45e9b8217b7249c335369e1a3e873c (diff) | |
download | chrome-ec-8e7f105716a105173dc8af41cb76437fee62e91a.tar.gz |
zephyr: npcx_evb: Enable RTC
This CL enables RTC for npcx7/9_evb.
BUG=none
BRANCH=none
TEST='rtc' console command
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: Icc5d79d16ba2e4073ce39d38f0942a050d128e82
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3088961
Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r-- | zephyr/boards/arm/npcx_evb/npcx_evb.dtsi | 1 | ||||
-rw-r--r-- | zephyr/projects/npcx_evb/npcx7/prj.conf | 4 | ||||
-rw-r--r-- | zephyr/projects/npcx_evb/npcx9/prj.conf | 4 |
3 files changed, 9 insertions, 0 deletions
diff --git a/zephyr/boards/arm/npcx_evb/npcx_evb.dtsi b/zephyr/boards/arm/npcx_evb/npcx_evb.dtsi index 8760b554b3..e3fb482659 100644 --- a/zephyr/boards/arm/npcx_evb/npcx_evb.dtsi +++ b/zephyr/boards/arm/npcx_evb/npcx_evb.dtsi @@ -13,6 +13,7 @@ zephyr,console = &uart1; zephyr,shell-uart = &uart1; zephyr,flash = &flash0; + cros,rtc = &mtc; }; named-i2c-ports { diff --git a/zephyr/projects/npcx_evb/npcx7/prj.conf b/zephyr/projects/npcx_evb/npcx7/prj.conf index b3baa1004c..11375a009d 100644 --- a/zephyr/projects/npcx_evb/npcx7/prj.conf +++ b/zephyr/projects/npcx_evb/npcx7/prj.conf @@ -37,6 +37,10 @@ CONFIG_PLATFORM_EC_ESPI_VW_SLP_S4=y # Keyboard CONFIG_CROS_KB_RAW_NPCX_KSO_HIGH_DRIVE=y +# RTC +CONFIG_PLATFORM_EC_RTC=y +CONFIG_PLATFORM_EC_CONSOLE_CMD_RTC=y + # Zephyr feature CONFIG_ASSERT=y CONFIG_SHELL_MINIMAL=n diff --git a/zephyr/projects/npcx_evb/npcx9/prj.conf b/zephyr/projects/npcx_evb/npcx9/prj.conf index c0b2eaaa86..5755cf34ad 100644 --- a/zephyr/projects/npcx_evb/npcx9/prj.conf +++ b/zephyr/projects/npcx_evb/npcx9/prj.conf @@ -41,6 +41,10 @@ CONFIG_PLATFORM_EC_ESPI_VW_SLP_S4=y # Keyboard CONFIG_CROS_KB_RAW_NPCX_KSO_HIGH_DRIVE=y +# RTC +CONFIG_PLATFORM_EC_RTC=y +CONFIG_PLATFORM_EC_CONSOLE_CMD_RTC=y + # Zephyr feature CONFIG_ASSERT=y CONFIG_SHELL_MINIMAL=n |