aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/Kconfig
diff options
context:
space:
mode:
authorChristoph Mair <christoph.mair@gmail.com>2010-08-09 20:20:28 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-08-09 23:45:05 -0400
commit5bf1d290b57e392eaf4bfb15c67f315fce4140be (patch)
tree568a01e0b11b3f58f935396f8793615be5b243e7 /drivers/misc/Kconfig
parentcdf8afca2417c5ae2a940a2ff2d36af986a3cf1d (diff)
drivers/misc: support for the pressure sensor BMP085 from Bosch Sensortec
This driver adds support for the BMP085 digital pressure sensor from Bosch Sensortec. It exposes a sysfs api to userspace where pressure and temperature measurement results can be read from the pressure0_input and temp0_input file. The chip is able to calculate the average of up to eight samples to increase the accuracy. This feature can be controlled by writing to the oversampling file. The BMP085 digital pressure sensor can measure ambient air pressure and temperature. Both values can be obtained from sysfs files. The pressure is measured by reading from pressure0_input. Valid values range from 30000 to 110000 pascal with a resolution of 1 pascal (=0.01 millibar). temp0_input holds the current temperature in degree celsius, multiplied by 10. This results in a resolution of a tenth degree celsius. Values range from -400 to 850. To increase the accuracy, this chip can calculate the average of 1, 2, 4 or 8 samples. This behavior is controlled through the oversampling sysfs file. Two to the power of the value written to that file specifies how many samples will be used. Valid values: 0..3. [akpm@linux-foundation.org: fix typo] [shubhrajyoti@ti.com: optimize the wait time for the pressure sensor, definition of long is arch dependent so make it u32] [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Christoph Mair <christoph.mair@gmail.com> Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Cc: Stefan Schmidt <stefan@datenfreihafen.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/misc/Kconfig')
-rw-r--r--drivers/misc/Kconfig10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index 2483183419b9..3b4b7562b2fa 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -373,6 +373,16 @@ config ARM_CHARLCD
373 line and the Linux version on the second line, but that's 373 line and the Linux version on the second line, but that's
374 still useful. 374 still useful.
375 375
376config BMP085
377 tristate "BMP085 digital pressure sensor"
378 depends on I2C && SYSFS
379 help
380 If you say yes here you get support for the Bosch Sensortec
381 BMP086 digital pressure sensor.
382
383 To compile this driver as a module, choose M here: the
384 module will be called bmp085.
385
376source "drivers/misc/c2port/Kconfig" 386source "drivers/misc/c2port/Kconfig"
377source "drivers/misc/eeprom/Kconfig" 387source "drivers/misc/eeprom/Kconfig"
378source "drivers/misc/cb710/Kconfig" 388source "drivers/misc/cb710/Kconfig"