xref: /openbmc/linux/drivers/iio/accel/Kconfig (revision bd7fe5b7191836a229981fdd83845a528ee9f846)
145fe6f7dSsrinivas pandruvada#
245fe6f7dSsrinivas pandruvada# Accelerometer drivers
345fe6f7dSsrinivas pandruvada#
43edc84e6SLars-Peter Clausen# When adding new entries keep the list in alphabetical order
53edc84e6SLars-Peter Clausen
645fe6f7dSsrinivas pandruvadamenu "Accelerometers"
745fe6f7dSsrinivas pandruvada
8fdadbce0SOleksandr Kravchenkoconfig BMA180
9fdadbce0SOleksandr Kravchenko	tristate "Bosch BMA180 3-Axis Accelerometer Driver"
10fdadbce0SOleksandr Kravchenko	depends on I2C
11fdadbce0SOleksandr Kravchenko	select IIO_BUFFER
12fdadbce0SOleksandr Kravchenko	select IIO_TRIGGERED_BUFFER
13fdadbce0SOleksandr Kravchenko	help
14fdadbce0SOleksandr Kravchenko	  Say Y here if you want to build a driver for the Bosch BMA180
15fdadbce0SOleksandr Kravchenko	  triaxial acceleration sensor.
16fdadbce0SOleksandr Kravchenko
17fdadbce0SOleksandr Kravchenko	  To compile this driver as a module, choose M here: the
18fdadbce0SOleksandr Kravchenko	  module will be called bma180.
19fdadbce0SOleksandr Kravchenko
20*bd7fe5b7SSrinivas Pandruvadaconfig BMC150_ACCEL
21*bd7fe5b7SSrinivas Pandruvada	tristate "Bosch BMC150 Accelerometer Driver"
22*bd7fe5b7SSrinivas Pandruvada	depends on I2C
23*bd7fe5b7SSrinivas Pandruvada	select IIO_BUFFER
24*bd7fe5b7SSrinivas Pandruvada	select IIO_TRIGGERED_BUFFER
25*bd7fe5b7SSrinivas Pandruvada	help
26*bd7fe5b7SSrinivas Pandruvada	  Say yes here to build support for the Bosch BMC150 accelerometer.
27*bd7fe5b7SSrinivas Pandruvada	  Currently this only supports the device via an i2c interface.
28*bd7fe5b7SSrinivas Pandruvada
29*bd7fe5b7SSrinivas Pandruvada	  This is a combo module with both accelerometer and magnetometer.
30*bd7fe5b7SSrinivas Pandruvada	  This driver is only implementing accelerometer part, which has
31*bd7fe5b7SSrinivas Pandruvada	  its own address and register map.
32*bd7fe5b7SSrinivas Pandruvada
3345fe6f7dSsrinivas pandruvadaconfig HID_SENSOR_ACCEL_3D
3445fe6f7dSsrinivas pandruvada	depends on HID_SENSOR_HUB
3545fe6f7dSsrinivas pandruvada	select IIO_BUFFER
3645fe6f7dSsrinivas pandruvada	select IIO_TRIGGERED_BUFFER
3745fe6f7dSsrinivas pandruvada	select HID_SENSOR_IIO_COMMON
389541cc39SAlexander Holler	select HID_SENSOR_IIO_TRIGGER
39ace43fceSPeter Meerwald	tristate "HID Accelerometers 3D"
4045fe6f7dSsrinivas pandruvada	help
4145fe6f7dSsrinivas pandruvada	  Say yes here to build support for the HID SENSOR
4245fe6f7dSsrinivas pandruvada	  accelerometers 3D.
4345fe6f7dSsrinivas pandruvada
44d6251168SDenis Cioccaconfig IIO_ST_ACCEL_3AXIS
45d6251168SDenis Ciocca	tristate "STMicroelectronics accelerometers 3-Axis Driver"
46d6251168SDenis Ciocca	depends on (I2C || SPI_MASTER) && SYSFS
47d6251168SDenis Ciocca	select IIO_ST_SENSORS_CORE
48d6251168SDenis Ciocca	select IIO_ST_ACCEL_I2C_3AXIS if (I2C)
49d6251168SDenis Ciocca	select IIO_ST_ACCEL_SPI_3AXIS if (SPI_MASTER)
50d6251168SDenis Ciocca	select IIO_TRIGGERED_BUFFER if (IIO_BUFFER)
51d6251168SDenis Ciocca	help
52d6251168SDenis Ciocca	  Say yes here to build support for STMicroelectronics accelerometers:
53d6251168SDenis Ciocca	  LSM303DLH, LSM303DLHC, LIS3DH, LSM330D, LSM330DL, LSM330DLC,
54d6251168SDenis Ciocca	  LIS331DLH, LSM303DL, LSM303DLM, LSM330.
55d6251168SDenis Ciocca
56341673f1SPeter Meerwald	  This driver can also be built as a module. If so, these modules
57341673f1SPeter Meerwald	  will be created:
58d6251168SDenis Ciocca	  - st_accel (core functions for the driver [it is mandatory]);
59d6251168SDenis Ciocca	  - st_accel_i2c (necessary for the I2C devices [optional*]);
60d6251168SDenis Ciocca	  - st_accel_spi (necessary for the SPI devices [optional*]);
61d6251168SDenis Ciocca
62d6251168SDenis Ciocca	  (*) one of these is necessary to do something.
63d6251168SDenis Ciocca
64d6251168SDenis Cioccaconfig IIO_ST_ACCEL_I2C_3AXIS
65d6251168SDenis Ciocca	tristate
66d6251168SDenis Ciocca	depends on IIO_ST_ACCEL_3AXIS
67d6251168SDenis Ciocca	depends on IIO_ST_SENSORS_I2C
68d6251168SDenis Ciocca
69d6251168SDenis Cioccaconfig IIO_ST_ACCEL_SPI_3AXIS
70d6251168SDenis Ciocca	tristate
71d6251168SDenis Ciocca	depends on IIO_ST_ACCEL_3AXIS
72d6251168SDenis Ciocca	depends on IIO_ST_SENSORS_SPI
73d6251168SDenis Ciocca
743edc84e6SLars-Peter Clausenconfig KXSD9
753edc84e6SLars-Peter Clausen	tristate "Kionix KXSD9 Accelerometer Driver"
763edc84e6SLars-Peter Clausen	depends on SPI
773edc84e6SLars-Peter Clausen	help
783edc84e6SLars-Peter Clausen	  Say yes here to build support for the Kionix KXSD9 accelerometer.
793edc84e6SLars-Peter Clausen	  Currently this only supports the device via an SPI interface.
803edc84e6SLars-Peter Clausen
81c7eeea93SPeter Meerwaldconfig MMA8452
82c7eeea93SPeter Meerwald	tristate "Freescale MMA8452Q Accelerometer Driver"
83c7eeea93SPeter Meerwald	depends on I2C
84c7eeea93SPeter Meerwald	select IIO_BUFFER
85c7eeea93SPeter Meerwald	select IIO_TRIGGERED_BUFFER
86c7eeea93SPeter Meerwald	help
87c7eeea93SPeter Meerwald	  Say yes here to build support for the Freescale MMA8452Q 3-axis
88c7eeea93SPeter Meerwald	  accelerometer.
89c7eeea93SPeter Meerwald
90c7eeea93SPeter Meerwald	  To compile this driver as a module, choose M here: the module
91c7eeea93SPeter Meerwald	  will be called mma8452.
92c7eeea93SPeter Meerwald
931a4fbf6aSSrinivas Pandruvadaconfig KXCJK1013
941a4fbf6aSSrinivas Pandruvada	tristate "Kionix 3-Axis Accelerometer Driver"
951a4fbf6aSSrinivas Pandruvada	depends on I2C
961a4fbf6aSSrinivas Pandruvada	select IIO_BUFFER
971a4fbf6aSSrinivas Pandruvada	select IIO_TRIGGERED_BUFFER
981a4fbf6aSSrinivas Pandruvada	help
991a4fbf6aSSrinivas Pandruvada	  Say Y here if you want to build a driver for the Kionix KXCJK-1013
1001a4fbf6aSSrinivas Pandruvada	  triaxial acceleration sensor.
1011a4fbf6aSSrinivas Pandruvada
1021a4fbf6aSSrinivas Pandruvada	  To compile this driver as a module, choose M here: the module will
1031a4fbf6aSSrinivas Pandruvada	  be called kxcjk-1013.
1041a4fbf6aSSrinivas Pandruvada
10545fe6f7dSsrinivas pandruvadaendmenu
106