Skip to content

Commit

Permalink
iio: bmc150_accel: add support for hardware fifo
Browse files Browse the repository at this point in the history
We only advertise hardware fifo support if the I2C bus supports full
I2C or smbus I2C block data reads since it is mandatory to read the
full frame in one read (otherwise the rest of the frame is discarded).

The hardware fifo is enabled only when triggers are not active because:

(a) when using the any-motion trigger the user expects to see samples
based on ROC events, but the fifo stores samples based on the sample
frequency

(b) the data-ready trigger is waking the CPU for for every sample, so
using the hardware fifo does not have any benefit

Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
  • Loading branch information
Octavian Purdila authored and Jonathan Cameron committed Mar 29, 2015
1 parent f4f4673 commit 3bbec97
Showing 1 changed file with 392 additions and 16 deletions.
Loading

0 comments on commit 3bbec97

Please sign in to comment.