xref: /openbmc/linux/drivers/iio/imu/st_lsm9ds0/Kconfig (revision b4a6aaea)
1# SPDX-License-Identifier: GPL-2.0-only
2
3config IIO_ST_LSM9DS0
4	tristate "STMicroelectronics LSM9DS0 IMU driver"
5	depends on (I2C || SPI_MASTER) && SYSFS
6	depends on !SENSORS_LIS3_I2C
7	depends on !SENSORS_LIS3_SPI
8	select IIO_ST_LSM9DS0_I2C if I2C
9	select IIO_ST_LSM9DS0_SPI if SPI_MASTER
10	select IIO_ST_ACCEL_3AXIS
11	select IIO_ST_MAGN_3AXIS
12
13	help
14	  Say yes here to build support for STMicroelectronics LSM9DS0 IMU
15	  sensor. Supported devices: accelerometer/magnetometer of lsm9ds0.
16
17	  To compile this driver as a module, choose M here: the module
18	  will be called st_lsm9ds0.
19
20config IIO_ST_LSM9DS0_I2C
21	tristate
22	depends on IIO_ST_LSM9DS0
23	select REGMAP_I2C
24
25config IIO_ST_LSM9DS0_SPI
26	tristate
27	depends on IIO_ST_LSM9DS0
28	select REGMAP_SPI
29