blob: 00297bbb7e4b4a0b008d19946173753296e70c89 [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
Gwendal Grignou57e73a42014-11-21 10:45:49 -08009 tristate "Asahi Kasei AK 3-Axis Magnetometer"
Jonathan Cameron2fc72cd2013-03-24 16:58:00 +000010 depends on I2C
Geert Uytterhoeven84935852015-05-05 18:32:23 +020011 depends on GPIOLIB || COMPILE_TEST
Jonathan Cameron2fc72cd2013-03-24 16:58:00 +000012 help
Gwendal Grignou57e73a42014-11-21 10:45:49 -080013 Say yes here to build support for Asahi Kasei AK8975, AK8963,
14 AK09911 or AK09912 3-Axis Magnetometer.
Jonathan Cameron2fc72cd2013-03-24 16:58:00 +000015
16 To compile this driver as a module, choose M here: the module
17 will be called ak8975.
18
Srinivas Pandruvadad14c0f12014-11-06 23:06:00 +000019config AK09911
20 tristate "Asahi Kasei AK09911 3-axis Compass"
Arnd Bergmann36086882015-01-28 14:58:44 +010021 depends on I2C
Geert Uytterhoeven84935852015-05-05 18:32:23 +020022 depends on GPIOLIB || COMPILE_TEST
Gwendal Grignou57e73a42014-11-21 10:45:49 -080023 select AK8975
Srinivas Pandruvadad14c0f12014-11-06 23:06:00 +000024 help
Gwendal Grignou57e73a42014-11-21 10:45:49 -080025 Deprecated: AK09911 is now supported by AK8975 driver.
Srinivas Pandruvadad14c0f12014-11-06 23:06:00 +000026
Peter Meerwald39631b52013-10-21 21:53:00 +010027config MAG3110
28 tristate "Freescale MAG3110 3-Axis Magnetometer"
29 depends on I2C
Peter Meerwald50619cb2013-10-29 00:59:00 +000030 select IIO_BUFFER
31 select IIO_TRIGGERED_BUFFER
Peter Meerwald39631b52013-10-21 21:53:00 +010032 help
33 Say yes here to build support for the Freescale MAG3110 3-Axis
34 magnetometer.
35
36 To compile this driver as a module, choose M here: the module
37 will be called mag3110.
38
srinivas pandruvadabc1d57ba2012-09-05 13:56:00 +010039config HID_SENSOR_MAGNETOMETER_3D
40 depends on HID_SENSOR_HUB
41 select IIO_BUFFER
42 select IIO_TRIGGERED_BUFFER
43 select HID_SENSOR_IIO_COMMON
Alexander Holler9541cc32012-12-11 18:21:00 +000044 select HID_SENSOR_IIO_TRIGGER
srinivas pandruvadabc1d57ba2012-09-05 13:56:00 +010045 tristate "HID Magenetometer 3D"
46 help
47 Say yes here to build support for the HID SENSOR
48 Magnetometer 3D.
49
Denis Ciocca872e79a2013-01-25 23:44:00 +000050config IIO_ST_MAGN_3AXIS
51 tristate "STMicroelectronics magnetometers 3-Axis Driver"
52 depends on (I2C || SPI_MASTER) && SYSFS
53 select IIO_ST_SENSORS_CORE
54 select IIO_ST_MAGN_I2C_3AXIS if (I2C)
55 select IIO_ST_MAGN_SPI_3AXIS if (SPI_MASTER)
56 select IIO_TRIGGERED_BUFFER if (IIO_BUFFER)
Denis Ciocca872e79a2013-01-25 23:44:00 +000057 help
58 Say yes here to build support for STMicroelectronics magnetometers:
59 LSM303DLHC, LSM303DLM, LIS3MDL.
60
Peter Meerwald341673f2013-06-23 22:28:00 +010061 This driver can also be built as a module. If so, these modules
62 will be created:
Denis Ciocca872e79a2013-01-25 23:44:00 +000063 - st_magn (core functions for the driver [it is mandatory]);
64 - st_magn_i2c (necessary for the I2C devices [optional*]);
65 - st_magn_spi (necessary for the SPI devices [optional*]);
66
67 (*) one of these is necessary to do something.
68
69config IIO_ST_MAGN_I2C_3AXIS
70 tristate
71 depends on IIO_ST_MAGN_3AXIS
72 depends on IIO_ST_SENSORS_I2C
73
74config IIO_ST_MAGN_SPI_3AXIS
75 tristate
76 depends on IIO_ST_MAGN_3AXIS
77 depends on IIO_ST_SENSORS_SPI
78
srinivas pandruvadabc1d57ba2012-09-05 13:56:00 +010079endmenu