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>
This commit is contained in:
Petr Štetiar
2020-02-23 22:50:22 +01:00
parent ea1823a867
commit aae4d85647
11 changed files with 1211 additions and 0 deletions

View File

@@ -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)