summaryrefslogtreecommitdiff
path: root/drivers/iio/accel/Kconfig
diff options
context:
space:
mode:
authorStefan Popa <stefan.popa@analog.com>2018-09-04 17:12:32 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-09-08 17:54:38 +0300
commit94dbb46c7a8f0ee27394bc81f34b666dc4a14b71 (patch)
tree627eb6a74b0f0e026e1b2639d3900256ebb5f603 /drivers/iio/accel/Kconfig
parentd9e8fd0421c2047ac233141612a433490963d211 (diff)
downloadlinux-94dbb46c7a8f0ee27394bc81f34b666dc4a14b71.tar.xz
iio: adxl372: Add support for I2C communication
The adxl372 is designed to communicate in either SPI or I2C protocol. It autodetects the format being used, requiring no configuration control to select the format. Signed-off-by: Stefan Popa <stefan.popa@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/accel/Kconfig')
-rw-r--r--drivers/iio/accel/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/iio/accel/Kconfig b/drivers/iio/accel/Kconfig
index bed5da875eac..7993a67bd351 100644
--- a/drivers/iio/accel/Kconfig
+++ b/drivers/iio/accel/Kconfig
@@ -76,6 +76,17 @@ config ADXL372_SPI
To compile this driver as a module, choose M here: the
module will be called adxl372_spi.
+config ADXL372_I2C
+ tristate "Analog Devices ADXL372 3-Axis Accelerometer I2C Driver"
+ depends on I2C
+ select ADXL372
+ select REGMAP_I2C
+ help
+ Say yes here to add support for the Analog Devices ADXL372 triaxial
+ acceleration sensor.
+ To compile this driver as a module, choose M here: the
+ module will be called adxl372_i2c.
+
config BMA180
tristate "Bosch BMA180/BMA250 3-Axis Accelerometer Driver"
depends on I2C