From 7bf6bd786b4e42636f77d773fab48dd4ed50a0e2 Mon Sep 17 00:00:00 2001 From: Wealian Liao Date: Wed, 17 Mar 2021 18:40:00 +0800 Subject: zephyr: volteer: enable RTC Enable CONFIG_RTC for volteer. BUG=None. BRANCH=None. TEST=zmake testall TEST=check console show RTC value after powerbtn press "RTC: 0x000003ae (942.00 s)" Signed-off-by: Wealian Liao Change-Id: I129c20d8a32e87837a7042dd5bb16900d1d9f5ba Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2767059 Reviewed-by: Simon Glass --- zephyr/projects/volteer/boards/arm/volteer/volteer.dts | 1 + zephyr/projects/volteer/prj.conf | 3 +++ 2 files changed, 4 insertions(+) diff --git a/zephyr/projects/volteer/boards/arm/volteer/volteer.dts b/zephyr/projects/volteer/boards/arm/volteer/volteer.dts index 56fb233af8..cfe8de58b7 100644 --- a/zephyr/projects/volteer/boards/arm/volteer/volteer.dts +++ b/zephyr/projects/volteer/boards/arm/volteer/volteer.dts @@ -28,6 +28,7 @@ zephyr,console = &uart1; zephyr,shell-uart = &uart1; zephyr,flash = &flash0; + cros,rtc = &mtc; }; ec-console { diff --git a/zephyr/projects/volteer/prj.conf b/zephyr/projects/volteer/prj.conf index cf6c09f6df..5777365360 100644 --- a/zephyr/projects/volteer/prj.conf +++ b/zephyr/projects/volteer/prj.conf @@ -141,3 +141,6 @@ CONFIG_PLATFORM_EC_PROTECTED_STORAGE_SIZE=0x40000 CONFIG_PLATFORM_EC_WRITABLE_STORAGE_OFF=0x40000 CONFIG_PLATFORM_EC_WRITABLE_STORAGE_SIZE=0x40000 CONFIG_PLATFORM_EC_CONSOLE_CMD_FLASH=n + +# RTC +CONFIG_PLATFORM_EC_RTC=y -- cgit v1.2.1