2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-17 01:34:00 +08:00
linux-next/drivers/iio/imu
Alexandru Ardelean 5075e0720d iio: imu: adis: generalize burst mode support
Some variants in the ADIS16400 family support burst mode. This mechanism is
implemented in the `adis16400_buffer.c` file.

Some variants in ADIS16480 are also adding burst mode, which is
functionally similar to ADIS16400, but with different parameters. To get
there, a `adis_burst` struct is added to parametrize certain bits of the
SPI communication to setup: the register that triggers burst-mode, and the
extra-data-length that needs be accounted for when building the bust-length
buffer.

The trigger handler cannot be made generic, since it's very specific to
each ADIS164XX family.

A future enhancement of this `adis_burst` mode will be the possibility to
enable/disable burst-mode. For the ADIS16400 family it's hard-coded to on
by default. But for ADIS16480 there will be a need to disable this.

When that will be implemented, both ADIS16400 & ADIS16480 will have the
burst-mode enable-able/disable-able.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2019-04-04 20:20:24 +01:00
..
bmi160 iio:bmi160: use if (ret) instead of if (ret < 0) 2019-02-09 15:25:25 +00:00
inv_mpu6050 iio: mpu6050: improve code readability 2019-04-04 20:19:48 +01:00
st_lsm6dsx iio: imu: st_lsm6dsx: add support to LSM6DSOX 2019-04-04 20:20:00 +01:00
adis16400_buffer.c iio: imu: adis: generalize burst mode support 2019-04-04 20:20:24 +01:00
adis16400_core.c iio: imu: adis: generalize burst mode support 2019-04-04 20:20:24 +01:00
adis16400.h iio: imu: adis16400: move trigger handler into adis16400_core 2019-04-04 20:20:23 +01:00
adis16480.c iio: imu: adis16480: Add support for external clock 2019-04-04 20:19:57 +01:00
adis_buffer.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
adis_trigger.c iio: adis_lib: Initialize trigger before requesting interrupt 2018-02-17 14:16:35 +00:00
adis.c iio:imu:adis: Mark expected switch fall-throughs 2018-07-07 18:01:05 +01:00
Kconfig iio: imu: add support to lsm6dsx driver 2017-01-14 12:40:37 +00:00
kmx61.c iio:imu: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:31:01 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00