From 62193151c121536114c0f0fc652859685f65649f Mon Sep 17 00:00:00 2001 From: Jan-Simon Möller Date: Wed, 19 Dec 2018 00:52:16 +0100 Subject: Support external RTCs for boards without it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We add the rtc driver as module so we can attach e.g. http://wiki.seeedstudio.com/Grove-RTC/ Add the necessary drivers as module. Change-Id: I1dde5d275c77ba4c82dcf1eb79f0ad3b2b924b15 Signed-off-by: Jan-Simon Möller --- meta-agl-bsp/recipes-kernel/linux/linux-agl.inc | 4 ++++ meta-agl-bsp/recipes-kernel/linux/linux/rtc.cfg | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 meta-agl-bsp/recipes-kernel/linux/linux/rtc.cfg diff --git a/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc b/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc index 3701525ed..cd250a3bb 100644 --- a/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc +++ b/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc @@ -86,3 +86,7 @@ KERNEL_CONFIG_FRAGMENTS_append_with-lsm-smack = "\ # snd-aloop support for 4a SRC_URI_append = " file://4a-sound.cfg" KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/4a-sound.cfg" + +# external rtc support via e.g. http://wiki.seeedstudio.com/Grove-RTC/ +SRC_URI_append = " file://rtc.cfg" +KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/rtc.cfg" diff --git a/meta-agl-bsp/recipes-kernel/linux/linux/rtc.cfg b/meta-agl-bsp/recipes-kernel/linux/linux/rtc.cfg new file mode 100644 index 000000000..2641958a0 --- /dev/null +++ b/meta-agl-bsp/recipes-kernel/linux/linux/rtc.cfg @@ -0,0 +1,7 @@ +CONFIG_RTC_CLASS=y +CONFIG_RTC_LIB=y +CONFIG_RTC_INTF_SYSFS=y +CONFIG_RTC_INTF_PROC=y +CONFIG_RTC_INTF_DEV=y +CONFIG_RTC_DRV_DS1307=m +CONFIG_RTC_DRV_DS3232=m -- cgit 1.2.3-korg