aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel
diff options
context:
space:
mode:
authorTim Harvey <tharvey@gateworks.com>2020-02-28 10:49:54 -0800
committerPetr Štetiar <ynezz@true.cz>2020-03-01 21:36:00 +0100
commit1d8f21e3a088c6eb23426bab175dcf81403c52e2 (patch)
treef8fa7eeff6f8ab024dcc3b9bfa859668e276345b /package/kernel
parent2d8f4c4fbd4699d579c4886fb6fa8f992b35c432 (diff)
downloadupstream-1d8f21e3a088c6eb23426bab175dcf81403c52e2.tar.gz
upstream-1d8f21e3a088c6eb23426bab175dcf81403c52e2.tar.bz2
upstream-1d8f21e3a088c6eb23426bab175dcf81403c52e2.zip
kernel: iio: add fxos8700 driver support
Adds various kernel modules for Freescale FXOS8700 3-axis accelerometer. Signed-off-by: Tim Harvey <tharvey@gateworks.com> [added missing commit description] Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'package/kernel')
-rw-r--r--package/kernel/linux/modules/iio.mk50
1 files changed, 50 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/iio.mk b/package/kernel/linux/modules/iio.mk
index aaccbdee7d..a7e97084e9 100644
--- a/package/kernel/linux/modules/iio.mk
+++ b/package/kernel/linux/modules/iio.mk
@@ -348,3 +348,53 @@ define KernelPackage/iio-tsl4531/description
endef
$(eval $(call KernelPackage,iio-tsl4531))
+
+
+define KernelPackage/iio-fxos8700
+ SUBMENU:=$(IIO_MENU)
+ TITLE:=Freescale FXOS8700 3-axis accelerometer driver
+ DEPENDS:=+kmod-iio-core +kmod-regmap-core
+ KCONFIG:= CONFIG_FXOS8700
+ FILES:=$(LINUX_DIR)/drivers/iio/imu/fxos8700_core.ko
+ AUTOLOAD:=$(call AutoLoad,56,fxos8700)
+endef
+
+define KernelPackage/iio-fxos8700/description
+ Support for Freescale FXOS8700 3-axis accelerometer.
+endef
+
+$(eval $(call KernelPackage,iio-fxos8700))
+
+
+define KernelPackage/iio-fxos8700-i2c
+ SUBMENU:=$(IIO_MENU)
+ TITLE:=Freescale FXOS8700 3-axis acceleromter driver (I2C)
+ DEPENDS:=+kmod-iio-fxos8700 +kmod-i2c-core +kmod-regmap-i2c
+ KCONFIG:= CONFIG_FXOS8700_I2C
+ FILES:=$(LINUX_DIR)/drivers/iio/imu/fxos8700_i2c.ko
+ AUTOLOAD:=$(call AutoLoad,56,fxos8700_i2c)
+endef
+
+define KernelPackage/iio-fxos8700-i2c/description
+ Support for Freescale FXOS8700 3-axis accelerometer
+ connected via I2C.
+endef
+
+
+$(eval $(call KernelPackage,iio-fxos8700-i2c))
+
+define KernelPackage/iio-fxos8700-spi
+ SUBMENU:=$(IIO_MENU)
+ DEPENDS:=+kmod-iio-fxos8700 +kmod-regmap-spi
+ TITLE:=Freescale FXOS8700 3-axis accelerometer driver (SPI)
+ KCONFIG:= CONFIG_FXOS8700_SPI
+ FILES:=$(LINUX_DIR)/drivers/iio/imu/fxos8700_spi.ko
+ AUTOLOAD:=$(call AutoLoad,56,fxos8700_spi)
+endef
+
+define KernelPackage/iio-fxos8700-spi/description
+ Support for Freescale FXOS8700 3-axis accelerometer
+ connected via SPI.
+endef
+
+$(eval $(call KernelPackage,iio-fxos8700-spi))