summaryrefslogtreecommitdiffstats
path: root/include/linux/mpu_iio.h
diff options
context:
space:
mode:
authorErik Lilliebjerg <elilliebjerg@nvidia.com>2016-03-13 22:48:22 -0400
committerRobert Collins <rcollins@nvidia.com>2017-07-13 17:12:50 -0400
commite95f0bc5ba178cdaa243ce9e9f87e9e21af5fe9c (patch)
tree230f4d5e678bb1706261b4deb388108cb97220a7 /include/linux/mpu_iio.h
parent71d20741d81cd25acae84972a7a91d52c85f0c2d (diff)
iio: imu: nvi: v.320 ICM DMP support
- Add ICM DMP support to MPU/ICM driver. - Add ICM DMP support to AKM compass driver. - Add ICM Significant Motion sensor support. - Fix AKM09911 support. - Fix BMPx80 possible NULL ptr crash on auto-detect. - Fix coverity 20453. Coverity ID: 20453 Bug 1416640 Bug 1722103 Bug 100130656 Bug 200162691 Change-Id: I19ae42f2fdeb67eb45bc54f440366ecaf0583b44 Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com> Reviewed-on: http://git-master/r/1112474 Reviewed-by: Robert Collins <rcollins@nvidia.com> Tested-by: Robert Collins <rcollins@nvidia.com>
Diffstat (limited to 'include/linux/mpu_iio.h')
-rw-r--r--include/linux/mpu_iio.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/mpu_iio.h b/include/linux/mpu_iio.h
index 6bf8e5dfa..24d515eb1 100644
--- a/include/linux/mpu_iio.h
+++ b/include/linux/mpu_iio.h
@@ -149,6 +149,11 @@ struct mpu_platform_data {
149 * 3:0. If the port is to do write transactions then this 149 * 3:0. If the port is to do write transactions then this
150 * value must be 1. See MPU documentation for the other 150 * value must be 1. See MPU documentation for the other
151 * bits in I2C_SLVx_CTRL that can be applied by this byte. 151 * bits in I2C_SLVx_CTRL that can be applied by this byte.
152 * - dmp_ctrl: When the DMP in enabled, the number of
153 * consecutive registers to read in 3:0. If the port is to
154 * do write transactions then this value must be 1. See
155 * MPU documentation for the other bits in I2C_SLVx_CTRL
156 * that can be applied by this byte.
152 * - data_out: The data byte written if the port is configured 157 * - data_out: The data byte written if the port is configured
153 * to do writes (addr 7:7 = 0). 158 * to do writes (addr 7:7 = 0).
154 * - delay_ms: The polling delay time between I2C transactions 159 * - delay_ms: The polling delay time between I2C transactions
@@ -185,6 +190,7 @@ struct nvi_mpu_port {
185 u8 addr; 190 u8 addr;
186 u8 reg; 191 u8 reg;
187 u8 ctrl; 192 u8 ctrl;
193 u8 dmp_ctrl;
188 u8 data_out; 194 u8 data_out;
189 unsigned int delay_ms; 195 unsigned int delay_ms;
190 unsigned long delay_us; 196 unsigned long delay_us;
@@ -195,8 +201,7 @@ struct nvi_mpu_port {
195 signed char matrix[9]; 201 signed char matrix[9];
196 enum secondary_slave_type type; 202 enum secondary_slave_type type;
197 enum ext_slave_id id; 203 enum ext_slave_id id;
198 u8 asa[3]; 204 u64 q30[3];
199 int rate_scale;
200}; 205};
201 206
202/** 207/**