blob: d86d226dcd67e09b585652ef983c9ccb038cdb99 [file] [log] [blame]
srinivas pandruvadabc1d57ba2012-09-05 13:56:00 +01001#
2# Magnetometer sensors
3#
Lars-Peter Clausen3edc84e2013-07-15 08:45:00 +01004# When adding new entries keep the list in alphabetical order
5
srinivas pandruvadabc1d57ba2012-09-05 13:56:00 +01006menu "Magnetometer sensors"
7
Jonathan Cameron2fc72cd2013-03-24 16:58:00 +00008config AK8975
9 tristate "Asahi Kasei AK8975 3-Axis Magnetometer"
10 depends on I2C
11 depends on GPIOLIB
12 help
13 Say yes here to build support for Asahi Kasei AK8975 3-Axis
14 Magnetometer.
15
16 To compile this driver as a module, choose M here: the module
17 will be called ak8975.
18
Peter Meerwald39631b52013-10-21 21:53:00 +010019config MAG3110
20 tristate "Freescale MAG3110 3-Axis Magnetometer"
21 depends on I2C
Peter Meerwald50619cb2013-10-29 00:59:00 +000022 select IIO_BUFFER
23 select IIO_TRIGGERED_BUFFER
Peter Meerwald39631b52013-10-21 21:53:00 +010024 help
25 Say yes here to build support for the Freescale MAG3110 3-Axis
26 magnetometer.
27
28 To compile this driver as a module, choose M here: the module
29 will be called mag3110.
30
srinivas pandruvadabc1d57ba2012-09-05 13:56:00 +010031config HID_SENSOR_MAGNETOMETER_3D
32 depends on HID_SENSOR_HUB
33 select IIO_BUFFER
34 select IIO_TRIGGERED_BUFFER
35 select HID_SENSOR_IIO_COMMON
Alexander Holler9541cc32012-12-11 18:21:00 +000036 select HID_SENSOR_IIO_TRIGGER
srinivas pandruvadabc1d57ba2012-09-05 13:56:00 +010037 tristate "HID Magenetometer 3D"
38 help
39 Say yes here to build support for the HID SENSOR
40 Magnetometer 3D.
41
Denis Ciocca872e79a2013-01-25 23:44:00 +000042config IIO_ST_MAGN_3AXIS
43 tristate "STMicroelectronics magnetometers 3-Axis Driver"
44 depends on (I2C || SPI_MASTER) && SYSFS
45 select IIO_ST_SENSORS_CORE
46 select IIO_ST_MAGN_I2C_3AXIS if (I2C)
47 select IIO_ST_MAGN_SPI_3AXIS if (SPI_MASTER)
48 select IIO_TRIGGERED_BUFFER if (IIO_BUFFER)
Denis Ciocca872e79a2013-01-25 23:44:00 +000049 help
50 Say yes here to build support for STMicroelectronics magnetometers:
51 LSM303DLHC, LSM303DLM, LIS3MDL.
52
Peter Meerwald341673f2013-06-23 22:28:00 +010053 This driver can also be built as a module. If so, these modules
54 will be created:
Denis Ciocca872e79a2013-01-25 23:44:00 +000055 - st_magn (core functions for the driver [it is mandatory]);
56 - st_magn_i2c (necessary for the I2C devices [optional*]);
57 - st_magn_spi (necessary for the SPI devices [optional*]);
58
59 (*) one of these is necessary to do something.
60
61config IIO_ST_MAGN_I2C_3AXIS
62 tristate
63 depends on IIO_ST_MAGN_3AXIS
64 depends on IIO_ST_SENSORS_I2C
65
66config IIO_ST_MAGN_SPI_3AXIS
67 tristate
68 depends on IIO_ST_MAGN_3AXIS
69 depends on IIO_ST_SENSORS_SPI
70
srinivas pandruvadabc1d57ba2012-09-05 13:56:00 +010071endmenu