srinivas pandruvada | bc1d57ba | 2012-09-05 13:56:00 +0100 | [diff] [blame] | 1 | # |
| 2 | # Magnetometer sensors |
| 3 | # |
| 4 | menu "Magnetometer sensors" |
| 5 | |
Jonathan Cameron | 2fc72cd | 2013-03-24 16:58:00 +0000 | [diff] [blame] | 6 | config AK8975 |
| 7 | tristate "Asahi Kasei AK8975 3-Axis Magnetometer" |
| 8 | depends on I2C |
| 9 | depends on GPIOLIB |
| 10 | help |
| 11 | Say yes here to build support for Asahi Kasei AK8975 3-Axis |
| 12 | Magnetometer. |
| 13 | |
| 14 | To compile this driver as a module, choose M here: the module |
| 15 | will be called ak8975. |
| 16 | |
srinivas pandruvada | bc1d57ba | 2012-09-05 13:56:00 +0100 | [diff] [blame] | 17 | config HID_SENSOR_MAGNETOMETER_3D |
| 18 | depends on HID_SENSOR_HUB |
| 19 | select IIO_BUFFER |
| 20 | select IIO_TRIGGERED_BUFFER |
| 21 | select HID_SENSOR_IIO_COMMON |
Alexander Holler | 9541cc3 | 2012-12-11 18:21:00 +0000 | [diff] [blame] | 22 | select HID_SENSOR_IIO_TRIGGER |
srinivas pandruvada | bc1d57ba | 2012-09-05 13:56:00 +0100 | [diff] [blame] | 23 | tristate "HID Magenetometer 3D" |
| 24 | help |
| 25 | Say yes here to build support for the HID SENSOR |
| 26 | Magnetometer 3D. |
| 27 | |
Denis Ciocca | 872e79a | 2013-01-25 23:44:00 +0000 | [diff] [blame] | 28 | config IIO_ST_MAGN_3AXIS |
| 29 | tristate "STMicroelectronics magnetometers 3-Axis Driver" |
| 30 | depends on (I2C || SPI_MASTER) && SYSFS |
| 31 | select IIO_ST_SENSORS_CORE |
| 32 | select IIO_ST_MAGN_I2C_3AXIS if (I2C) |
| 33 | select IIO_ST_MAGN_SPI_3AXIS if (SPI_MASTER) |
| 34 | select IIO_TRIGGERED_BUFFER if (IIO_BUFFER) |
Denis Ciocca | 872e79a | 2013-01-25 23:44:00 +0000 | [diff] [blame] | 35 | help |
| 36 | Say yes here to build support for STMicroelectronics magnetometers: |
| 37 | LSM303DLHC, LSM303DLM, LIS3MDL. |
| 38 | |
Peter Meerwald | 341673f | 2013-06-23 22:28:00 +0100 | [diff] [blame^] | 39 | This driver can also be built as a module. If so, these modules |
| 40 | will be created: |
Denis Ciocca | 872e79a | 2013-01-25 23:44:00 +0000 | [diff] [blame] | 41 | - st_magn (core functions for the driver [it is mandatory]); |
| 42 | - st_magn_i2c (necessary for the I2C devices [optional*]); |
| 43 | - st_magn_spi (necessary for the SPI devices [optional*]); |
| 44 | |
| 45 | (*) one of these is necessary to do something. |
| 46 | |
| 47 | config IIO_ST_MAGN_I2C_3AXIS |
| 48 | tristate |
| 49 | depends on IIO_ST_MAGN_3AXIS |
| 50 | depends on IIO_ST_SENSORS_I2C |
| 51 | |
| 52 | config IIO_ST_MAGN_SPI_3AXIS |
| 53 | tristate |
| 54 | depends on IIO_ST_MAGN_3AXIS |
| 55 | depends on IIO_ST_SENSORS_SPI |
| 56 | |
srinivas pandruvada | bc1d57ba | 2012-09-05 13:56:00 +0100 | [diff] [blame] | 57 | endmenu |