kernel/modules: Aosong AM2315/AM2320 IIO kernel module support enabled.
authorRoman Bazalevskiy <rvb@rvb.name>
Fri, 12 Oct 2018 12:16:42 +0000 (15:16 +0300)
committerJo-Philipp Wich <jo@mein.io>
Tue, 18 Dec 2018 16:48:08 +0000 (17:48 +0100)
Signed-off-by: Roman Bazalevskiy <rvb@rvb.name>
(backported from 47e7a3904df6e0556fa9cd29206e9b8228e4d943)

package/kernel/linux/modules/iio.mk

index b7eb0485169c0ba9dd9a049842c9314f0a9c17f3..f2c82e7de524a2319439fb759b4e487214f0e0ab 100644 (file)
@@ -52,6 +52,19 @@ endef
 
 $(eval $(call KernelPackage,iio-ad799x))
 
+define KernelPackage/iio-am2315
+  SUBMENU:=$(IIO_MENU)
+  DEPENDS:=+kmod-i2c-core +kmod-iio-core
+  TITLE:=Asong AM2315 humidity/temperature sensor
+  KCONFIG:= CONFIG_AM2315
+  FILES:=$(LINUX_DIR)/drivers/iio/humidity/am2315.ko
+  AUTOLOAD:=$(call AutoLoad,56,am2315)
+endef
+define KernelPackage/iio-am2315/description
+  Aosong AM2315 humidity/temperature sensor (I2C bus)
+endef
+$(eval $(call KernelPackage,iio-am2315))
+
 define KernelPackage/iio-mxs-lradc
   SUBMENU:=$(IIO_MENU)
   DEPENDS:=@TARGET_mxs +kmod-iio-core