aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/inv_mpu
Commit message (Collapse)AuthorAgeFilesLines
* misc: inv_mpu: include time spent in suspend for irqtimeKyle Repinski2016-01-174-4/+4
| | | | | | | Android is (now?) expecting input event timestamps to do this. Resolves screen rotation issue after suspend in Marshmallow. Signed-off-by: Kyle Repinski <repinski23@gmail.com>
* misc: inv_mpu: Unregister PM notifierTodd Poynor2012-03-211-0/+2
| | | | | | | | Unregister PM notifier on probe error or remove. Avoids use after free function calls observed in suspend/resume. Change-Id: I8a2a4c523323c090c061cb7525c40c500115bfcc Signed-off-by: Todd Poynor <toddpoynor@google.com>
* misc: inv_mpu: yas530: Report the error flag for overflow or underflowJinkyu Song2011-10-141-1/+17
| | | | | | | | | Invensense libmllite needs to be notified when either overflow or underflow happens in raw values. When HAL requires to measure hardware offset, coil init will be triggered. Change-Id: Ib2185242efeceff87c9a1680004699f4f27fef66 Signed-off-by: Jinkyu Song <jksong@sta.samsung.com>
* misc: inv_mpu: yas530: Added static soft iron correction featureJinkyu Song2011-10-131-0/+20
| | | | | | | | | A correction matrix for compensating static soft iron effect is added. This matrix is defined in a board file. If it is not defined, this will be skipped. Change-Id: I18c2d2663943f7527410d457353edbadf5ac4cee Signed-off-by: Jinkyu Song <jksong@sta.samsung.com>
* invensense: bma250: disable reading of New data StatusVikram Pandita2011-09-221-2/+0
| | | | | | | | | | | The interrupt seems to be cleared automatically. There does not seem to be a need to read the NewDataStatus(0x0A) register. This avoids extra write and a read on i2c bus. Change-Id: I36d0a82fd9a9bb657541f5f60e15679d14b6d0af Signed-off-by: Vikram Pandita <vikram.pandita@ti.com> Cc: Nathan Royer <nroyer@invensense.com>
* misc: inv_mpu: change irqtime to use monotonic clockNathan Royer2011-09-144-20/+8
| | | | | | | | Populate irqtime in mpuirq_data with ktime_to_ns(ktime_get()). Change-Id: Ib30f823a909c8a7fbd78446e4eaf9d1c1a693b01 Signed-off-by: Nathan Royer <nroyer@invensense.com> Signed-off-by: Arve Hjønnevåg <arve@android.com>
* misc: inv_mpu: yas530.c: Fix noisy performance.Nathan Royer2011-09-131-19/+19
| | | | | | | | | | The issue was a variable that was suppose to be unsigned was signed. This lead to all negative numbers on the trim factors being way off. One of the temperature compensation values was suppose to be slightly negative and the sign error made it a large negative which caused the problem. Change-Id: I80de9327504499e57547d9209dc06f5fdcf56636 Signed-off-by: Nathan Royer <nroyer@invensense.com>
* misc: inv_mpu: add interface to get offset regs.Kevin Powell2011-08-011-19/+188
| | | | | | | | yamaha compass has internal offset register we need to persist. This change allows access to those registers. Change-Id: I93034b3a478bfddfc8b71d9cb95e6d7d565838b1 Signed-off-by: Kevin Powell <kpowell@invensense.com>
* misc: inv_mpu: Fix read returning 0 incorrectly.Nathan Royer2011-07-111-1/+1
| | | | | | | | There is an issue in read where the expected buffer size was sizeof(unsigned long) too large. Change-Id: Id4f22306653304faaead2f10a8ff987e3193f715 Signed-off-by: Nathan Royer <nroyer@invensense.com>
* Addition of slave sensor modules.Nathan Royer2011-06-1635-0/+14249
| | | | | | | | Each slave can be compiled and linked sumultanously. It is up to the board file to only probe one slave of each type. Change-Id: I3f301eb88be6e82af9b78f8c09d4e8d7e1e4b227 Signed-off-by: Nathan Royer <nroyer@invensense.com>
* Initial checkin of the invensense gyroscope driverNathan Royer2011-06-1620-0/+6918
Supports MPU3050 only Slave devices are in a seperate commit. Change-Id: I5a2381bdd7c625351f134b5b8ac3d813218ad800 Signed-off-by: Nathan Royer <nroyer@invensense.com>