commit | 4bcc19f1b218983be841a319a3a506f2e446c6b5 | [log] [tgz] |
---|---|---|
author | Jean-Baptiste Maneyrol <jmaneyrol@invensense.com> | Mon May 28 15:22:04 2018 +0200 |
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Sun Jun 10 11:52:30 2018 +0100 |
tree | cc6fac3c9fea51379e2286b3451beffb717dbcb3 | |
parent | 17f0361936a5bdeb4958813b1c5542fdc91de925 [diff] |
iio: imu: inv_mpu6050: new timestamp mechanism Check validity of interrupt timestamps by computing time between 2 interrupts. If it matches the chip frequency modulo 4%, it is used as the data timestamp and also for estimating the chip frequency measured from the system. Otherwise timestamp is computed using the estimated chip frequency. Signed-off-by: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>