srinivas pandruvada | bc1d57ba | 2012-09-05 13:56:00 +0100 | [diff] [blame] | 1 | # |
| 2 | # Magnetometer sensors |
| 3 | # |
| 4 | menu "Magnetometer sensors" |
| 5 | |
| 6 | config 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 Holler | 9541cc3 | 2012-12-11 18:21:00 +0000 | [diff] [blame] | 11 | select HID_SENSOR_IIO_TRIGGER |
srinivas pandruvada | bc1d57ba | 2012-09-05 13:56:00 +0100 | [diff] [blame] | 12 | tristate "HID Magenetometer 3D" |
| 13 | help |
| 14 | Say yes here to build support for the HID SENSOR |
| 15 | Magnetometer 3D. |
| 16 | |
Denis Ciocca | 872e79a | 2013-01-25 23:44:00 +0000 | [diff] [blame^] | 17 | config 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 | |
| 37 | config IIO_ST_MAGN_I2C_3AXIS |
| 38 | tristate |
| 39 | depends on IIO_ST_MAGN_3AXIS |
| 40 | depends on IIO_ST_SENSORS_I2C |
| 41 | |
| 42 | config IIO_ST_MAGN_SPI_3AXIS |
| 43 | tristate |
| 44 | depends on IIO_ST_MAGN_3AXIS |
| 45 | depends on IIO_ST_SENSORS_SPI |
| 46 | |
srinivas pandruvada | bc1d57ba | 2012-09-05 13:56:00 +0100 | [diff] [blame] | 47 | endmenu |