From 9fcbda9b194daae0c8187577d100cebf740f2fb1 Mon Sep 17 00:00:00 2001 From: Nathan Rossi Date: Fri, 10 Apr 2015 11:50:20 +1000 Subject: linux/configs: Rework the rtc feature * Enable RTC devices by default with the board-commong fragment, however disable the HCTOSYS and SYSTOHC configs * The rtc feature enables the HCTOSYS and SYSTOHC so that the kernel can manage time with the rtc for systems that explicitly have rtc functionality Signed-off-by: Nathan Rossi --- .../linux/config/xilinx-common/bsp/xilinx/board-common.cfg | 3 +++ recipes-kernel/linux/config/xilinx-common/features/rtc/rtc.cfg | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/recipes-kernel/linux/config/xilinx-common/bsp/xilinx/board-common.cfg b/recipes-kernel/linux/config/xilinx-common/bsp/xilinx/board-common.cfg index f762d461..a51da80d 100644 --- a/recipes-kernel/linux/config/xilinx-common/bsp/xilinx/board-common.cfg +++ b/recipes-kernel/linux/config/xilinx-common/bsp/xilinx/board-common.cfg @@ -32,6 +32,9 @@ CONFIG_SENSORS_UCD9000=y CONFIG_SENSORS_UCD9200=y # RTC drivers +CONFIG_RTC_CLASS=y +# CONFIG_RTC_HCTOSYS is not set +# CONFIG_RTC_SYSTOHC is not set CONFIG_RTC_DRV_PCF8563=y # SI570 I2C Device diff --git a/recipes-kernel/linux/config/xilinx-common/features/rtc/rtc.cfg b/recipes-kernel/linux/config/xilinx-common/features/rtc/rtc.cfg index 70c9c29c..d980c201 100644 --- a/recipes-kernel/linux/config/xilinx-common/features/rtc/rtc.cfg +++ b/recipes-kernel/linux/config/xilinx-common/features/rtc/rtc.cfg @@ -1 +1,4 @@ -CONFIG_RTC_CLASS=y + +CONFIG_RTC_HCTOSYS=y +CONFIG_RTC_SYSTOHC=y + -- cgit v1.2.3-54-g00ecf