iio: imu: st_lsm6dsx: add hw timestamp support
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Sat, 13 Jan 2018 17:57:56 +0000 (18:57 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 30 Jan 2018 18:33:29 +0000 (18:33 +0000)
commit213451076bd370e55a70ff07f6575b1451ba1a9f
tree98b82e58ff96c1339b1225a75ed1b969e05f655d
parent54033f19d8f51f75ae263aefb3893f5708cba88b
iio: imu: st_lsm6dsx: add hw timestamp support

Introduce hw timestamp support instead of compute sample timestamps
according to interrupt rate and configured watermark. LSM6DSx based
devices are able to queue in hw FIFO the time reference of data
sampling

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c