From 7df171eef7b065c9f15e162dc04acf2df4ac1583 Mon Sep 17 00:00:00 2001 From: Jiuzhu Dong Date: Sat, 27 Mar 2021 12:02:34 +0800 Subject: [PATCH] rpserver/rpproxy: support set/get rtc time by rpmsg Signed-off-by: Jiuzhu Dong --- boards/sim/sim/sim/configs/rpproxy/defconfig | 5 +++++ boards/sim/sim/sim/configs/rpserver/defconfig | 4 ++++ drivers/timers/Kconfig | 1 - 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/boards/sim/sim/sim/configs/rpproxy/defconfig b/boards/sim/sim/sim/configs/rpproxy/defconfig index d8b7b3582f..ec2cae3732 100644 --- a/boards/sim/sim/sim/configs/rpproxy/defconfig +++ b/boards/sim/sim/sim/configs/rpproxy/defconfig @@ -45,6 +45,11 @@ CONFIG_READLINE_CMD_HISTORY=y CONFIG_READLINE_TABCOMPLETION=y CONFIG_RPMSG_UART=y CONFIG_RPTUN=y +CONFIG_RTC=y +CONFIG_RTC_ARCH=y +CONFIG_RTC_DRIVER=y +CONFIG_RTC_EXTERNAL=y +CONFIG_RTC_RPMSG=y CONFIG_SCHED_CHILD_STATUS=y CONFIG_SCHED_HAVE_PARENT=y CONFIG_SCHED_HPWORK=y diff --git a/boards/sim/sim/sim/configs/rpserver/defconfig b/boards/sim/sim/sim/configs/rpserver/defconfig index cce43ddc8f..f7118425b7 100644 --- a/boards/sim/sim/sim/configs/rpserver/defconfig +++ b/boards/sim/sim/sim/configs/rpserver/defconfig @@ -54,6 +54,10 @@ CONFIG_READLINE_CMD_HISTORY=y CONFIG_READLINE_TABCOMPLETION=y CONFIG_RPMSG_UART=y CONFIG_RPTUN=y +CONFIG_RTC=y +CONFIG_RTC_ARCH=y +CONFIG_RTC_DRIVER=y +CONFIG_RTC_RPMSG=y CONFIG_SCHED_CHILD_STATUS=y CONFIG_SCHED_HAVE_PARENT=y CONFIG_SCHED_HPWORK=y diff --git a/drivers/timers/Kconfig b/drivers/timers/Kconfig index fedf15b532..686143a652 100644 --- a/drivers/timers/Kconfig +++ b/drivers/timers/Kconfig @@ -295,7 +295,6 @@ config RTC_RPMSG bool "Rpmsg RTC Driver" default n depends on OPENAMP - depends on RTC_EXTERNAL select ARCH_HAVE_RTC_SUBSECONDS endif # RTC