summaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2018-12-19 00:48:33 +0100
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2018-12-20 20:00:42 +0000
commit9f26f8bd14ea9f889be0c21657dfab4532fc9ef3 (patch)
treee836444ab564d1b7d278225a7438acb3ce5526ca /meta-agl-bsp
parentcd358ead94072b93760bf3c829434cbdd29fe110 (diff)
Support external RTCs for boards without it
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: Iacb8247f9e2edccabe854284672353a847a27e0d Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'meta-agl-bsp')
-rw-r--r--meta-agl-bsp/recipes-kernel/linux/linux-agl.inc7
-rw-r--r--meta-agl-bsp/recipes-kernel/linux/linux/rtc.cfg7
2 files changed, 13 insertions, 1 deletions
diff --git a/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc b/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc
index 47746a8ce..073cbc620 100644
--- a/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc
+++ b/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc
@@ -85,4 +85,9 @@ KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/4a-sound.cfg"
# iio-dummy-device support for test iiodevice
SRC_URI_append = " file://iiodevice.cfg"
-KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/iiodevice.cfg" \ No newline at end of file
+KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/iiodevice.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