Sensors: Invensense 5.1.6 IIO driver release

-- Patches provided to handle poll function better in Kfifo situation in
   industrialio-buffer.c
-- the new IIO MPU6515 (Accelerometer/Gyro) driver
-- secondary bus support of AKM8963 (compass)
-- secondary bus support of BMP280 (pressure)

Change-Id: I0c16e032723894951ee3fe1e0ad21a74208780b7
Signed-off-by: chohee.park <chohee.park@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
Sensors: Fix permission of iio:device0 nodes

sysfs nodes should not be world writable.

Change-Id: Ia22378c48aff6db87f006f006c0d924329431d3e
Signed-off-by: Devin Kim <dojip.kim@lge.com>
Sensors: Invensense Motion Apps 5.1.6 Release Candidate 25

- Added multi-rate support for sensors in batch mode.
- Fix step detector and step counter bugs.
- Calib-bias entries are now updated after executing self_test.
- Fix batching mode bug where timeout greater than buffer size was not being handled correctly.
- Ensure MPU goes into sleep mode when idle.
- Fifo overflows checks added to batch mode.
- Batch mode takes priority over continuous mode when concurrent requests are made.

Change-Id: I0cb827df09dd9eda3b6f981280f6d05802853721
Signed-off-by: chohee.park <chohee.park@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
Sensors: Invensense Motion Apps 5.1.6 Release Candidate 33

Changes:
- Improved the handling of the biases both for factory calibration and
  runtime calibration via the gyro and accel offset and dmp_bias sysfs
  entries
- Prevented a possible race condition in batch mode settings
- Improved the data flow handling for some sensors and sensor scenarios
- Keep track of the batch mode requests for sensors even if the system
  proceeds in continuous mode - necessary when batch mode is restored
- Changed pressure values to floating point for better resolution
- Pedometer time and steps representation is now 64 bits
- Fixes a number of sensor combination corner cases involving Pedometer
  Step Detector
- Fixed long term drift issue in batched Game Rotation Vector
- Fixed misconfiguration caused by Significant Motion getting detected
  while working with other sensors
- Fixed Linear Accelerometer sample count in batching
- Fixed handling of the rates with combination of sensors involving
  virtual sensors
- Output all the data in the FIFO when a Significant Motion is detected.
  Do the same when the system comes back up from suspended.
- Fixed sensors getting left wrongly configured and not outputting any
  data when other sensors are enabled or disabled
- Fixed duplicated timestamp issues with Gravity vector sensor
- Fixed problems with the sensor rates in continuous and batch mode
- Fixed a problem causing high timestamp variance for the Gyroscope sensor
  while running the Step Detector sensor
- Applied patch to self-test fail on heamerhead

Change-Id: I6c54e5aadd9a57fc38a8de8015fc009f1652a90c
Signed-off-by: chohee.park <chohee.park@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
Motion Apps 5.1.6 Release Candidate 54

Changes since MA 5.1.6 RC33

- Integrated flush feature within batching support with FLUSH_COMPLETE
  metadata indicator
- Handling accelerometer biases through the device's offset registers
  as for the gyroscope
- Added ability to write the accelerometer and gyroscope biases
  on the offset registers directly after self-test test execution
  for more seamless production floor handling
- Fixed batch mode timestamps across system suspend and resumes
- Estimate the timestamps using the devices's clock more reliably;
- Output the data in the FIFO when switching data mode (batching
  to continuous and vice versa, change of rate, addition/removal of a sensor)
- Accelerometer auto calibration does not overwrite the self-test accelerometer
  biases unless they are improving
- Added dynamic control of the HAL and SensorService logging
  using Android properties.

Change-Id: I94cf6eaedeb719f0bc2292c1dcfd20e24d8134f7
Signed-off-by: chohee.park <chohee.park@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
inv_mpu: Update for release 5.2.0K of MotionApps driver

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>