kernel/modules: HMC5843 3D-compass kernel module support enabled.
authorRoman Bazalevsky <rvb@rvb.name>
Thu, 6 Dec 2018 11:54:41 +0000 (14:54 +0300)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 15 Dec 2018 23:57:20 +0000 (00:57 +0100)
Signed-off-by: Roman Bazalevsky <rvb@rvb.name>
package/kernel/linux/modules/iio.mk

index a2ce821e745824538b385d81ad9c54a45f5b9371..ee82eee71e8a45ba255a8899d6c0fe1d51a27b4d 100644 (file)
@@ -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