summaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/magnetometer/Kconfig
diff options
context:
space:
mode:
authorJosef Gajdusek <atx@atalax.net>2014-07-22 16:03:00 +0100
committerJonathan Cameron <jic23@kernel.org>2014-07-23 21:48:24 +0100
commitd3f1621960223799b19bca9b503c333a3833d7f7 (patch)
tree9d967acfa57a4d62992e104507026559672e9190 /drivers/staging/iio/magnetometer/Kconfig
parent5a059bd268a79376ebf9ea539c5bb645c5a854d5 (diff)
downloadop-kernel-dev-d3f1621960223799b19bca9b503c333a3833d7f7.zip
op-kernel-dev-d3f1621960223799b19bca9b503c333a3833d7f7.tar.gz
staging:iio:hmc5843: Add support for spi hmc5983
This patch adds support for the hmc5983 spi interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek <atx@atx.name> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/staging/iio/magnetometer/Kconfig')
-rw-r--r--drivers/staging/iio/magnetometer/Kconfig15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/staging/iio/magnetometer/Kconfig b/drivers/staging/iio/magnetometer/Kconfig
index c086f33..dec814a 100644
--- a/drivers/staging/iio/magnetometer/Kconfig
+++ b/drivers/staging/iio/magnetometer/Kconfig
@@ -22,4 +22,19 @@ config SENSORS_HMC5843_I2C
- hmc5843_core (core functions)
- hmc5843_i2c (support for HMC5843, HMC5883, HMC5883L and HMC5983)
+config SENSORS_HMC5843_SPI
+ tristate "Honeywell HMC5983 3-Axis Magnetometer (SPI)"
+ depends on SPI_MASTER
+ select SENSORS_HMC5843
+ select REGMAP_SPI
+ help
+ Say Y here to add support for the Honeywell HMC5983 3-Axis Magnetometer
+ (digital compass).
+
+ This driver can also be compiled as a set of modules.
+ If so, these modules will be created:
+ - hmc5843_core (core functions)
+ - hmc5843_spi (support for HMC5983)
+
+
endmenu
OpenPOWER on IntegriCloud