blob: cd29be54f6437c5456e051764a4b4d2e2564c867 [file] [log] [blame]
srinivas pandruvadabc1d57ba2012-09-05 13:56:00 +01001#
2# Magnetometer sensors
3#
4menu "Magnetometer sensors"
5
6config HID_SENSOR_MAGNETOMETER_3D
7 depends on HID_SENSOR_HUB
8 select IIO_BUFFER
9 select IIO_TRIGGERED_BUFFER
10 select HID_SENSOR_IIO_COMMON
Alexander Holler9541cc32012-12-11 18:21:00 +000011 select HID_SENSOR_IIO_TRIGGER
srinivas pandruvadabc1d57ba2012-09-05 13:56:00 +010012 tristate "HID Magenetometer 3D"
13 help
14 Say yes here to build support for the HID SENSOR
15 Magnetometer 3D.
16
Denis Ciocca872e79a2013-01-25 23:44:00 +000017config IIO_ST_MAGN_3AXIS
18 tristate "STMicroelectronics magnetometers 3-Axis Driver"
19 depends on (I2C || SPI_MASTER) && SYSFS
20 select IIO_ST_SENSORS_CORE
21 select IIO_ST_MAGN_I2C_3AXIS if (I2C)
22 select IIO_ST_MAGN_SPI_3AXIS if (SPI_MASTER)
23 select IIO_TRIGGERED_BUFFER if (IIO_BUFFER)
24 select IIO_ST_MAGN_BUFFER if (IIO_TRIGGERED_BUFFER)
25 help
26 Say yes here to build support for STMicroelectronics magnetometers:
27 LSM303DLHC, LSM303DLM, LIS3MDL.
28
29 This driver can also be built as a module. If so, will be created
30 these modules:
31 - st_magn (core functions for the driver [it is mandatory]);
32 - st_magn_i2c (necessary for the I2C devices [optional*]);
33 - st_magn_spi (necessary for the SPI devices [optional*]);
34
35 (*) one of these is necessary to do something.
36
37config IIO_ST_MAGN_I2C_3AXIS
38 tristate
39 depends on IIO_ST_MAGN_3AXIS
40 depends on IIO_ST_SENSORS_I2C
41
42config IIO_ST_MAGN_SPI_3AXIS
43 tristate
44 depends on IIO_ST_MAGN_3AXIS
45 depends on IIO_ST_SENSORS_SPI
46
srinivas pandruvadabc1d57ba2012-09-05 13:56:00 +010047endmenu