xref: /openbmc/linux/drivers/iio/magnetometer/Kconfig (revision 7132fe4f)
1#
2# Magnetometer sensors
3#
4# When adding new entries keep the list in alphabetical order
5
6menu "Magnetometer sensors"
7
8config 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. This driver can also support AK8963, if i2c
15	  device name is identified as ak8963.
16
17	  To compile this driver as a module, choose M here: the module
18	  will be called ak8975.
19
20config MAG3110
21	tristate "Freescale MAG3110 3-Axis Magnetometer"
22	depends on I2C
23	select IIO_BUFFER
24	select IIO_TRIGGERED_BUFFER
25	help
26	  Say yes here to build support for the Freescale MAG3110 3-Axis
27	  magnetometer.
28
29	  To compile this driver as a module, choose M here: the module
30	  will be called mag3110.
31
32config HID_SENSOR_MAGNETOMETER_3D
33	depends on HID_SENSOR_HUB
34	select IIO_BUFFER
35	select IIO_TRIGGERED_BUFFER
36	select HID_SENSOR_IIO_COMMON
37	select HID_SENSOR_IIO_TRIGGER
38	tristate "HID Magenetometer 3D"
39	help
40	  Say yes here to build support for the HID SENSOR
41	  Magnetometer 3D.
42
43config IIO_ST_MAGN_3AXIS
44	tristate "STMicroelectronics magnetometers 3-Axis Driver"
45	depends on (I2C || SPI_MASTER) && SYSFS
46	select IIO_ST_SENSORS_CORE
47	select IIO_ST_MAGN_I2C_3AXIS if (I2C)
48	select IIO_ST_MAGN_SPI_3AXIS if (SPI_MASTER)
49	select IIO_TRIGGERED_BUFFER if (IIO_BUFFER)
50	help
51	  Say yes here to build support for STMicroelectronics magnetometers:
52	  LSM303DLHC, LSM303DLM, LIS3MDL.
53
54	  This driver can also be built as a module. If so, these modules
55	  will be created:
56	  - st_magn (core functions for the driver [it is mandatory]);
57	  - st_magn_i2c (necessary for the I2C devices [optional*]);
58	  - st_magn_spi (necessary for the SPI devices [optional*]);
59
60	  (*) one of these is necessary to do something.
61
62config IIO_ST_MAGN_I2C_3AXIS
63	tristate
64	depends on IIO_ST_MAGN_3AXIS
65	depends on IIO_ST_SENSORS_I2C
66
67config IIO_ST_MAGN_SPI_3AXIS
68	tristate
69	depends on IIO_ST_MAGN_3AXIS
70	depends on IIO_ST_SENSORS_SPI
71
72endmenu
73