Kconfig (87a0b2fafc09766d8c55461a18345a1cfb10a7fe) | Kconfig (26b2ec2e9a27f881998b830fd5158f8a30de82a1) |
---|---|
1# SPDX-License-Identifier: GPL-2.0-only 2# 3# Accelerometer drivers 4# 5# When adding new entries keep the list in alphabetical order 6 7menu "Accelerometers" 8 --- 335 unchanged lines hidden (view full) --- 344 Newer devices should use IIO_CROS_EC_SENSORS. 345 346config IIO_ST_ACCEL_3AXIS 347 tristate "STMicroelectronics accelerometers 3-Axis Driver" 348 depends on (I2C || SPI_MASTER) && SYSFS 349 depends on !SENSORS_LIS3_I2C 350 depends on !SENSORS_LIS3_SPI 351 select IIO_ST_SENSORS_CORE | 1# SPDX-License-Identifier: GPL-2.0-only 2# 3# Accelerometer drivers 4# 5# When adding new entries keep the list in alphabetical order 6 7menu "Accelerometers" 8 --- 335 unchanged lines hidden (view full) --- 344 Newer devices should use IIO_CROS_EC_SENSORS. 345 346config IIO_ST_ACCEL_3AXIS 347 tristate "STMicroelectronics accelerometers 3-Axis Driver" 348 depends on (I2C || SPI_MASTER) && SYSFS 349 depends on !SENSORS_LIS3_I2C 350 depends on !SENSORS_LIS3_SPI 351 select IIO_ST_SENSORS_CORE |
352 select IIO_ST_ACCEL_I2C_3AXIS if (I2C) 353 select IIO_ST_ACCEL_SPI_3AXIS if (SPI_MASTER) | |
354 select IIO_TRIGGERED_BUFFER if (IIO_BUFFER) 355 help 356 Say yes here to build support for STMicroelectronics accelerometers: 357 LSM303DLH, LSM303DLHC, LIS3DH, LSM330D, LSM330DL, LSM330DLC, 358 LIS331DLH, LSM303DL, LSM303DLM, LSM330, LIS2DH12, H3LIS331DL, 359 LNG2DM, LIS3DE, LIS2DE12, LIS2HH12 360 | 352 select IIO_TRIGGERED_BUFFER if (IIO_BUFFER) 353 help 354 Say yes here to build support for STMicroelectronics accelerometers: 355 LSM303DLH, LSM303DLHC, LIS3DH, LSM330D, LSM330DL, LSM330DLC, 356 LIS331DLH, LSM303DL, LSM303DLM, LSM330, LIS2DH12, H3LIS331DL, 357 LNG2DM, LIS3DE, LIS2DE12, LIS2HH12 358 |
361 This driver can also be built as a module. If so, these modules 362 will be created: 363 - st_accel (core functions for the driver [it is mandatory]); 364 - st_accel_i2c (necessary for the I2C devices [optional*]); 365 - st_accel_spi (necessary for the SPI devices [optional*]); | 359 Also need to enable at least one of I2C and SPI interface drivers 360 below. |
366 | 361 |
367 (*) one of these is necessary to do something. 368 | |
369config IIO_ST_ACCEL_I2C_3AXIS | 362config IIO_ST_ACCEL_I2C_3AXIS |
370 tristate 371 depends on IIO_ST_ACCEL_3AXIS 372 depends on IIO_ST_SENSORS_I2C | 363 tristate "STMicroelectronics accelerometers 3-Axis I2C Interface" 364 depends on I2C && IIO_ST_ACCEL_3AXIS 365 default I2C && IIO_ST_ACCEL_3AXIS 366 select IIO_ST_SENSORS_I2C 367 help 368 Build support for STMicroelectronics accelerometers I2C interface. |
373 | 369 |
370 To compile this driver as a module, choose M here. The module 371 will be called st_accel_i2c. 372 |
|
374config IIO_ST_ACCEL_SPI_3AXIS | 373config IIO_ST_ACCEL_SPI_3AXIS |
375 tristate 376 depends on IIO_ST_ACCEL_3AXIS 377 depends on IIO_ST_SENSORS_SPI | 374 tristate "STMicroelectronics accelerometers 3-Axis SPI Interface" 375 depends on SPI_MASTER && IIO_ST_ACCEL_3AXIS 376 default SPI_MASTER && IIO_ST_ACCEL_3AXIS 377 select IIO_ST_SENSORS_SPI 378 help 379 Build support for STMicroelectronics accelerometers SPI interface. |
378 | 380 |
381 To compile this driver as a module, choose M here. The module 382 will be called st_accel_spi. 383 |
|
379config KXSD9 380 tristate "Kionix KXSD9 Accelerometer Driver" 381 select IIO_BUFFER 382 select IIO_TRIGGERED_BUFFER 383 help 384 Say yes here to build support for the Kionix KXSD9 accelerometer. 385 It can be accessed using an (optional) SPI or I2C interface. 386 --- 198 unchanged lines hidden --- | 384config KXSD9 385 tristate "Kionix KXSD9 Accelerometer Driver" 386 select IIO_BUFFER 387 select IIO_TRIGGERED_BUFFER 388 help 389 Say yes here to build support for the Kionix KXSD9 accelerometer. 390 It can be accessed using an (optional) SPI or I2C interface. 391 --- 198 unchanged lines hidden --- |