diff options
author | Rui Miguel Silva <rui.silva@linaro.org> | 2019-04-12 19:48:59 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-04-22 13:34:12 +0300 |
commit | 4da38f1be6675734f3330578ebd2316848b383f0 (patch) | |
tree | a2c763a3cc1ec880c17dba1a4575d9a97b0e907b /drivers/iio/gyro/Kconfig | |
parent | a034cbe1c412628383609f1634154348e00e2990 (diff) | |
download | linux-4da38f1be6675734f3330578ebd2316848b383f0.tar.xz |
iio: gyro: fxas21002c: add spi driver
Add driver to talk over spi to a fxas21002c gyroscope device and use
the core as main controller.
Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/gyro/Kconfig')
-rw-r--r-- | drivers/iio/gyro/Kconfig | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/iio/gyro/Kconfig b/drivers/iio/gyro/Kconfig index 71b6552ee06b..61c00cee037d 100644 --- a/drivers/iio/gyro/Kconfig +++ b/drivers/iio/gyro/Kconfig @@ -78,7 +78,8 @@ config FXAS21002C select IIO_BUFFER select IIO_TRIGGERED_BUFFER select FXAS21002C_I2C if (I2C) - depends on I2C + select FXAS21002C_SPI if (SPI) + depends on (I2C || SPI_MASTER) help Say yes here to build support for NXP FXAS21002C Tri-axis Gyro Sensor driver connected via I2C or SPI. @@ -90,6 +91,10 @@ config FXAS21002C_I2C tristate select REGMAP_I2C +config FXAS21002C_SPI + tristate + select REGMAP_SPI + config HID_SENSOR_GYRO_3D depends on HID_SENSOR_HUB select IIO_BUFFER |