summaryrefslogtreecommitdiffstats
path: root/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
diff options
context:
space:
mode:
authorJonathan Cameron2017-03-26 13:11:00 +0200
committerJonathan Cameron2017-04-02 11:12:08 +0200
commit0c8f492dd7ddf0dd381fa63b76066c0966d8dd73 (patch)
treecef8d154a4e2702515cbaeeedf549b5403bd8a82 /drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
parentiio:imu:mpu6050 update i2c bindings to reflect i2c-gate and supported parts (diff)
downloadkernel-qcow2-linux-0c8f492dd7ddf0dd381fa63b76066c0966d8dd73.tar.gz
kernel-qcow2-linux-0c8f492dd7ddf0dd381fa63b76066c0966d8dd73.tar.xz
kernel-qcow2-linux-0c8f492dd7ddf0dd381fa63b76066c0966d8dd73.zip
iio:imu:mpu6050 add explicit mpu9250 support
The mpu9250 is a SIP containing an mpu6500 and an ak8975. If this was all there was too it there would be no need for explicit handling in the driver. Arguably the bindings would also only reflect the presence of an mpu6500 with the ak8975 hanging off it, as the kernel doesn't care that they are in one package. However, the WHOAMI value changes as well so best to add explicit support. Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/imu/inv_mpu6050/inv_mpu_core.c')
-rw-r--r--drivers/iio/imu/inv_mpu6050/inv_mpu_core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
index b9fcbf18aa99..96dabbd2f004 100644
--- a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
+++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
@@ -114,6 +114,12 @@ static const struct inv_mpu6050_hw hw_info[] = {
.config = &chip_config_6050,
},
{
+ .whoami = INV_MPU9250_WHOAMI_VALUE,
+ .name = "MPU9250",
+ .reg = &reg_set_6500,
+ .config = &chip_config_6050,
+ },
+ {
.whoami = INV_ICM20608_WHOAMI_VALUE,
.name = "ICM20608",
.reg = &reg_set_6500,