Kconfig 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. config IIO_ST_LSM9DS0
  3. tristate "STMicroelectronics LSM9DS0 IMU driver"
  4. depends on (I2C || SPI_MASTER) && SYSFS
  5. depends on !SENSORS_LIS3_I2C
  6. depends on !SENSORS_LIS3_SPI
  7. select IIO_ST_ACCEL_3AXIS
  8. select IIO_ST_MAGN_3AXIS
  9. help
  10. Say yes here to build support for STMicroelectronics LSM9DS0 IMU
  11. sensor. Supported devices: accelerometer/magnetometer of lsm9ds0.
  12. To compile this driver as a module, choose M here: the module
  13. will be called st_lsm9ds0.
  14. Also need to enable at least one of I2C and SPI interface drivers
  15. config IIO_ST_LSM9DS0_I2C
  16. tristate "STMicroelectronics LSM9DS0 IMU I2C interface"
  17. depends on I2C && IIO_ST_LSM9DS0
  18. default I2C && IIO_ST_LSM9DS0
  19. select IIO_ST_ACCEL_I2C_3AXIS
  20. select IIO_ST_MAGN_I2C_3AXIS
  21. select REGMAP_I2C
  22. help
  23. Build support for STMicroelectronics LSM9DS0 IMU I2C interface.
  24. To compile this driver as a module, choose M here. The module
  25. will be called st_lsm9ds0_i2c.
  26. config IIO_ST_LSM9DS0_SPI
  27. tristate "STMicroelectronics LSM9DS0 IMU SPI interface"
  28. depends on SPI_MASTER && IIO_ST_LSM9DS0
  29. default SPI_MASTER && IIO_ST_LSM9DS0
  30. select IIO_ST_ACCEL_SPI_3AXIS
  31. select IIO_ST_MAGN_SPI_3AXIS
  32. select REGMAP_SPI
  33. help
  34. Build support for STMicroelectronics LSM9DS0 IMU I2C interface.
  35. To compile this driver as a module, choose M here. The module
  36. will be called st_lsm9ds0_spi.