aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2020-02-23 22:50:22 +0100
committerPetr Štetiar <ynezz@true.cz>2020-03-08 15:10:55 +0100
commitaae4d85647f27ca64d2012501636e41d5a8ab42a (patch)
treee49c8d7e536d23d510bd121e532e57eb4a4116ef /package/kernel
parentea1823a8673a3f10aca418ca64b765f5c5a6e58f (diff)
downloadupstream-aae4d85647f27ca64d2012501636e41d5a8ab42a.tar.gz
upstream-aae4d85647f27ca64d2012501636e41d5a8ab42a.tar.bz2
upstream-aae4d85647f27ca64d2012501636e41d5a8ab42a.zip
kernel: add kernel module for Sensirion SPS30 PMS
Adds into 4.19 backported kernel module from 5.1 for Sensirion SPS30 particulate matter sensor, for kernel 5.4 backported dependency fix. Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'package/kernel')
-rw-r--r--package/kernel/linux/modules/iio.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/iio.mk b/package/kernel/linux/modules/iio.mk
index 430f318951..17ffdc3441 100644
--- a/package/kernel/linux/modules/iio.mk
+++ b/package/kernel/linux/modules/iio.mk
@@ -344,6 +344,22 @@ endef
$(eval $(call KernelPackage,iio-st_sensors-i2c))
+define KernelPackage/iio-sps30
+ SUBMENU:=$(IIO_MENU)
+ DEPENDS:=@!LINUX_4_14 +kmod-i2c-core +kmod-iio-core +kmod-industrialio-triggered-buffer +kmod-lib-crc8
+ TITLE:=Sensirion SPS30 particulate matter sensor
+ KCONFIG:=CONFIG_SPS30
+ FILES:=$(LINUX_DIR)/drivers/iio/chemical/sps30.ko
+ AUTOLOAD:=$(call AutoProbe,sps30)
+endef
+
+define KernelPackage/iio-sps30/description
+ Support for the Sensirion SPS30 particulate matter sensor.
+endef
+
+$(eval $(call KernelPackage,iio-sps30))
+
+
define KernelPackage/iio-st_sensors-spi
SUBMENU:=$(IIO_MENU)
TITLE:=STMicroelectronics accelerometer 3-Axis Driver (SPI)