aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/linux/modules
diff options
context:
space:
mode:
authorRoman Bazalevsky <rvb@rvb.name>2018-12-06 14:54:41 +0300
committerHauke Mehrtens <hauke@hauke-m.de>2018-12-16 00:57:20 +0100
commitf332ae3c4357102d26714a0c591f922b4b1a19cf (patch)
tree43b4e22a9af0b5ae691ece682c9f7068f1740ea3 /package/kernel/linux/modules
parent3f7dd06fd8558685f71f01ef3cbcf844d402b71c (diff)
downloadupstream-f332ae3c4357102d26714a0c591f922b4b1a19cf.tar.gz
upstream-f332ae3c4357102d26714a0c591f922b4b1a19cf.tar.bz2
upstream-f332ae3c4357102d26714a0c591f922b4b1a19cf.zip
kernel/modules: HMC5843 3D-compass kernel module support enabled.
Signed-off-by: Roman Bazalevsky <rvb@rvb.name>
Diffstat (limited to 'package/kernel/linux/modules')
-rw-r--r--package/kernel/linux/modules/iio.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/iio.mk b/package/kernel/linux/modules/iio.mk
index a2ce821e74..ee82eee71e 100644
--- a/package/kernel/linux/modules/iio.mk
+++ b/package/kernel/linux/modules/iio.mk
@@ -52,6 +52,23 @@ endef
$(eval $(call KernelPackage,iio-ad799x))
+define KernelPackage/iio-hmc5843
+ SUBMENU:=$(IIO_MENU)
+ DEPENDS:=+kmod-i2c-core +kmod-iio-core +kmod-regmap
+ TITLE:=Honeywell HMC58x3 Magnetometer
+ KCONFIG:= CONFIG_SENSORS_HMC5843_I2C
+ FILES:= \
+ $(LINUX_DIR)/drivers/iio/magnetometer/hmc5843_i2c.ko \
+ $(LINUX_DIR)/drivers/iio/magnetometer/hmc5843_core.ko
+ AUTOLOAD:=$(call AutoLoad,56,hmc5843)
+endef
+
+define KernelPackage/iio-hmc5843/description
+ Honeywell HMC5843/5883/5883L 3-Axis Magnetometer
+endef
+
+$(eval $(call KernelPackage,iio-hmc5843))
+
define KernelPackage/iio-bh1750
SUBMENU:=$(IIO_MENU)
DEPENDS:=+kmod-i2c-core +kmod-iio-core