aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel
diff options
context:
space:
mode:
authorDirk Neukirchen <dirkneukirchen@web.de>2016-06-04 18:34:02 +0200
committerAlexander Couzens <lynxis@fe80.eu>2016-06-29 00:42:19 +0200
commit93d5629a2785576a99100783ea3d99f77109ea3c (patch)
treed3fee43475d8a9be3a8fb6b7168cb60cae487343 /package/kernel
parent1e03998e2b85e0250dd55da5146199a720e214af (diff)
downloadupstream-93d5629a2785576a99100783ea3d99f77109ea3c.tar.gz
upstream-93d5629a2785576a99100783ea3d99f77109ea3c.tar.bz2
upstream-93d5629a2785576a99100783ea3d99f77109ea3c.zip
modules: add BMP085 pressure sensor
add BMP085 and BMP180 pressure sensors this driver supports the SPI and I2C and older chips (BMP280 is supported by iio subsystem) issue found when cleaning up omap/config found while writing this patch that a similar patch was submitted in June/July 2014 but not integrated only compile tested Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
Diffstat (limited to 'package/kernel')
-rw-r--r--package/kernel/linux/modules/other.mk48
1 files changed, 48 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk
index 11d836e5f7..bc7fb7c02f 100644
--- a/package/kernel/linux/modules/other.mk
+++ b/package/kernel/linux/modules/other.mk
@@ -990,3 +990,51 @@ define KernelPackage/echo/description
endef
$(eval $(call KernelPackage,echo))
+
+
+define KernelPackage/bmp085
+ SUBMENU:=$(OTHER_MENU)
+ TITLE:=BMP085/BMP18x pressure sensor
+ DEPENDS:= +kmod-regmap
+ KCONFIG:= CONFIG_BMP085
+ FILES:= $(LINUX_DIR)/drivers/misc/bmp085.ko
+endef
+
+define KernelPackage/bmp085/description
+ This driver adds support for Bosch Sensortec's digital pressure
+ sensors BMP085 and BMP18x.
+endef
+
+$(eval $(call KernelPackage,bmp085))
+
+
+define KernelPackage/bmp085-i2c
+ SUBMENU:=$(OTHER_MENU)
+ TITLE:=BMP085/BMP18x pressure sensor I2C
+ DEPENDS:= +kmod-bmp085
+ KCONFIG:= CONFIG_BMP085_I2C
+ FILES:= $(LINUX_DIR)/drivers/misc/bmp085-i2c.ko
+ AUTOLOAD:=$(call AutoProbe,bmp085-i2c)
+endef
+define KernelPackage/bmp085-i2c/description
+ This driver adds support for Bosch Sensortec's digital pressure
+ sensor connected via I2C.
+endef
+
+$(eval $(call KernelPackage,bmp085-i2c))
+
+
+define KernelPackage/bmp085-spi
+ SUBMENU:=$(OTHER_MENU)
+ TITLE:=BMP085/BMP18x pressure sensor SPI
+ DEPENDS:= +kmod-bmp085
+ KCONFIG:= CONFIG_BMP085_SPI
+ FILES:= $(LINUX_DIR)/drivers/misc/bmp085-spi.ko
+ AUTOLOAD:=$(call AutoProbe,bm085-spi)
+endef
+define KernelPackage/bmp085-spi/description
+ This driver adds support for Bosch Sensortec's digital pressure
+ sensor connected via SPI.
+endef
+
+$(eval $(call KernelPackage,bmp085-spi))