aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/Kconfig
diff options
context:
space:
mode:
authorPavel Machek <pavel@suse.cz>2008-11-12 16:27:02 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2008-11-12 20:17:17 -0500
commit455fbdd376c3ed3a5be8c039348896fdd87e9930 (patch)
tree03ac3947914b66061d4b8c20ae58285efe475f36 /drivers/hwmon/Kconfig
parent33c5d3d64589c5d379db5a5615735f6d08438369 (diff)
LIS3LV02Dx Accelerometer driver
This adds a driver to the accelerometer sensor found in several HP laptops (under the commercial names of "HP Mobile Data Protection System 3D" and "HP 3D driveguard"). It tries to have more or less the same interfaces as the hdaps and other accelerometer drivers: in sysfs and as a joystick. This driver was first written by Yan Burman. Eric Piel has updated it and slimed it up (including the removal of an interface to access to the free-fall feature of the sensor because it is not reliable enough for now). Pavel Machek removed few more features and switched locking from semaphore to mutex. Several people have contributed to the database of the axes. [eric.piel@tremplin-utc.net: LIS3LV02D: Conform to the new ACPI API] Signed-off-by: Eric Piel <eric.piel@tremplin-utc.net> Signed-off-by: Yan Burman <burman.yan@gmail.com> Signed-off-by: Pavel Machek <pavel@suse.cz> Cc: "Mark M. Hoffman" <mhoffman@lightlink.com> Signed-off-by: Eric Piel <eric.piel@tremplin-utc.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/hwmon/Kconfig')
-rw-r--r--drivers/hwmon/Kconfig19
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index 6de1e0ffd391..1c44f5c47aab 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -825,6 +825,25 @@ config SENSORS_HDAPS
825 Say Y here if you have an applicable laptop and want to experience 825 Say Y here if you have an applicable laptop and want to experience
826 the awesome power of hdaps. 826 the awesome power of hdaps.
827 827
828config SENSORS_LIS3LV02D
829 tristate "STMicroeletronics LIS3LV02Dx three-axis digital accelerometer"
830 depends on ACPI && INPUT
831 default n
832 help
833 This driver provides support for the LIS3LV02Dx accelerometer. In
834 particular, it can be found in a number of HP laptops, which have the
835 "Mobile Data Protection System 3D" or "3D DriveGuard" feature. On such
836 systems the driver should load automatically (via ACPI). The
837 accelerometer might also be found in other systems, connected via SPI
838 or I2C. The accelerometer data is readable via
839 /sys/devices/platform/lis3lv02d.
840
841 This driver also provides an absolute input class device, allowing
842 the laptop to act as a pinball machine-esque joystick.
843
844 This driver can also be built as a module. If so, the module
845 will be called lis3lv02d.
846
828config SENSORS_APPLESMC 847config SENSORS_APPLESMC
829 tristate "Apple SMC (Motion sensor, light sensor, keyboard backlight)" 848 tristate "Apple SMC (Motion sensor, light sensor, keyboard backlight)"
830 depends on INPUT && X86 849 depends on INPUT && X86