diff options
author | Peter Meerwald <pmeerw@pmeerw.net> | 2014-02-05 10:51:00 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-05-03 13:06:25 +0200 |
commit | c7eeea93ac60aba3c037af8933a7ffc96ccd495c (patch) | |
tree | 0009ddacc7103bed21bb67fab7efef1ada7e8371 /drivers/iio/accel/Kconfig | |
parent | iio: ak8975: Fix issue with the name (diff) | |
download | linux-c7eeea93ac60aba3c037af8933a7ffc96ccd495c.tar.xz linux-c7eeea93ac60aba3c037af8933a7ffc96ccd495c.zip |
iio: Add Freescale MMA8452Q 3-axis accelerometer driver
3-axis accelerometer sensor (2/4/8 g) with 12-bit resolution
and I2C interface
many extra features are unsupported (freefall detection, orientation
change, autosleep)
datasheet is here:
http://cache.freescale.com/files/sensors/doc/data_sheet/MMA8452Q.pdf
v2: (thanks to Jonathan Cameron)
* use ARRAY_SIZE()
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/accel/Kconfig')
-rw-r--r-- | drivers/iio/accel/Kconfig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/iio/accel/Kconfig b/drivers/iio/accel/Kconfig index e23e50850655..1e120fa1e156 100644 --- a/drivers/iio/accel/Kconfig +++ b/drivers/iio/accel/Kconfig @@ -65,4 +65,16 @@ config KXSD9 Say yes here to build support for the Kionix KXSD9 accelerometer. Currently this only supports the device via an SPI interface. +config MMA8452 + tristate "Freescale MMA8452Q Accelerometer Driver" + depends on I2C + select IIO_BUFFER + select IIO_TRIGGERED_BUFFER + help + Say yes here to build support for the Freescale MMA8452Q 3-axis + accelerometer. + + To compile this driver as a module, choose M here: the module + will be called mma8452. + endmenu |