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_ACCEL_3AXIS 9 select IIO_ST_MAGN_3AXIS 10 11 help 12 Say yes here to build support for STMicroelectronics LSM9DS0 IMU 13 sensor. Supported devices: accelerometer/magnetometer of lsm9ds0. 14 15 To compile this driver as a module, choose M here: the module 16 will be called st_lsm9ds0. 17 18 Also need to enable at least one of I2C and SPI interface drivers 19 20config IIO_ST_LSM9DS0_I2C 21 tristate "STMicroelectronics LSM9DS0 IMU I2C interface" 22 depends on I2C && IIO_ST_LSM9DS0 23 default I2C && IIO_ST_LSM9DS0 24 select IIO_ST_ACCEL_I2C_3AXIS 25 select IIO_ST_MAGN_I2C_3AXIS 26 select REGMAP_I2C 27 help 28 Build support for STMicroelectronics LSM9DS0 IMU I2C interface. 29 30 To compile this driver as a module, choose M here. The module 31 will be called st_lsm9ds0_i2c. 32 33config IIO_ST_LSM9DS0_SPI 34 tristate "STMicroelectronics LSM9DS0 IMU SPI interface" 35 depends on SPI_MASTER && IIO_ST_LSM9DS0 36 default SPI_MASTER && IIO_ST_LSM9DS0 37 select IIO_ST_ACCEL_SPI_3AXIS 38 select IIO_ST_MAGN_SPI_3AXIS 39 select REGMAP_SPI 40 help 41 Build support for STMicroelectronics LSM9DS0 IMU I2C interface. 42 43 To compile this driver as a module, choose M here. The module 44 will be called st_lsm9ds0_spi. 45