summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Marec <frederic.marec@iot.bzh>2018-09-18 11:33:17 +0200
committerFrédéric Marec <frederic.marec@iot.bzh>2018-10-15 07:47:07 +0000
commitb989aaed7b128cce0aaeb974c2561e9ee3cdf7a5 (patch)
tree5bceced07035ce01d381166051249b017335d42e
parent92ba3cb5da1a5a8add6eb14370531b9019407777 (diff)
Add dummy iiodevice support for test
Add new fragment iiodevice.cfg to enable dummy devices For iiodevices test Change-Id: I9f635334aec2f9cd675b522b86cdfa3ad8168f07 Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
-rw-r--r--meta-agl-bsp/recipes-kernel/linux/linux-agl.inc4
-rw-r--r--meta-agl-bsp/recipes-kernel/linux/linux/iiodevice.cfg25
2 files changed, 29 insertions, 0 deletions
diff --git a/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc b/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc
index db3c2d1b8..47746a8ce 100644
--- a/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc
+++ b/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc
@@ -82,3 +82,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"
+
+# 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
diff --git a/meta-agl-bsp/recipes-kernel/linux/linux/iiodevice.cfg b/meta-agl-bsp/recipes-kernel/linux/linux/iiodevice.cfg
new file mode 100644
index 000000000..8633f29a3
--- /dev/null
+++ b/meta-agl-bsp/recipes-kernel/linux/linux/iiodevice.cfg
@@ -0,0 +1,25 @@
+#
+# Extcon Device Drivers
+#
+CONFIG_IIO=y
+CONFIG_IIO_BUFFER=y
+CONFIG_IIO_BUFFER_CB=y
+CONFIG_IIO_KFIFO_BUF=y
+CONFIG_IIO_CONFIGFS=m
+CONFIG_IIO_TRIGGER=y
+CONFIG_IIO_CONSUMERS_PER_TRIGGER=2
+CONFIG_IIO_SW_DEVICE=m
+CONFIG_IIO_SW_TRIGGER=m
+
+#
+# IIO dummy driver
+#
+CONFIG_IIO_DUMMY_EVGEN=m
+CONFIG_IIO_SIMPLE_DUMMY=m
+CONFIG_IIO_SIMPLE_DUMMY_EVENTS=y
+CONFIG_IIO_SIMPLE_DUMMY_BUFFER=y
+
+#
+# Triggers - standalone
+#
+CONFIG_IIO_HRTIMER_TRIGGER=m \ No newline at end of file