aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel
diff options
context:
space:
mode:
authorHartmut Knaack <knaack.h@gmx.de>2018-09-11 01:33:36 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2018-09-22 21:20:55 +0200
commit265dcb05ea4e4ca7fd780f496f20b17327598338 (patch)
tree75df60538194bb944d15df3e1c348cd141592cc2 /package/kernel
parentb9ba32b2e392da1d50af77f17fc8be125601c3b7 (diff)
downloadupstream-265dcb05ea4e4ca7fd780f496f20b17327598338.tar.gz
upstream-265dcb05ea4e4ca7fd780f496f20b17327598338.tar.bz2
upstream-265dcb05ea4e4ca7fd780f496f20b17327598338.zip
kernel: add TSL4531 ambient light sensor driver
Add support for the TAOS TSL4531x family of ambient light sensors using the I2C bus. Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Diffstat (limited to 'package/kernel')
-rw-r--r--package/kernel/linux/modules/iio.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/iio.mk b/package/kernel/linux/modules/iio.mk
index a1410170db..d0c2c365ca 100644
--- a/package/kernel/linux/modules/iio.mk
+++ b/package/kernel/linux/modules/iio.mk
@@ -155,3 +155,21 @@ define KernelPackage/iio-htu21/description
endef
$(eval $(call KernelPackage,iio-htu21))
+
+
+define KernelPackage/iio-tsl4531
+ SUBMENU:=$(IIO_MENU)
+ DEPENDS:=+kmod-i2c-core +kmod-iio-core
+ TITLE:=TAOS TSL4531 ambient light sensor
+ KCONFIG:= CONFIG_TSL4531
+ FILES:=$(LINUX_DIR)/drivers/iio/light/tsl4531.ko
+ AUTOLOAD:=$(call AutoLoad,56,tsl4531)
+endef
+
+define KernelPackage/iio-tsl4531/description
+ Support for TAOS TSL4531x family of ambient light sensors
+ connected via I2C. Following models are usable:
+ TSL45311, TSL45313, TSL45315, TSL45317.
+endef
+
+$(eval $(call KernelPackage,iio-tsl4531))