summaryrefslogtreecommitdiffstats
path: root/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
diff options
context:
space:
mode:
authorDouglas Fischer2018-04-03 00:42:00 +0200
committerJonathan Cameron2018-04-15 20:07:38 +0200
commit685cc61b07c599a5d352cc63b21d6a4cbcebaed6 (patch)
tree310d54b0907fe6c99c1247010495d5e3df4c4d37 /drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
parentiio: chemical: atlas-ph-sensor: use msleep() for long uncritical delays (diff)
downloadkernel-qcow2-linux-685cc61b07c599a5d352cc63b21d6a4cbcebaed6.tar.gz
kernel-qcow2-linux-685cc61b07c599a5d352cc63b21d6a4cbcebaed6.tar.xz
kernel-qcow2-linux-685cc61b07c599a5d352cc63b21d6a4cbcebaed6.zip
iio: imu: Add mpu9255 support to mpu6050 driver
Added support for the mpu9255 IMU to the mpu6050 driver. The register map is the same as the other chips; the only driver difference is the compatible string and the WHOAMI register value. Signed-off-by: Douglas Fischer <fischerdouglasc@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
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 7d64be353403..20b94d9a1a22 100644
--- a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
+++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
@@ -121,6 +121,12 @@ static const struct inv_mpu6050_hw hw_info[] = {
.config = &chip_config_6050,
},
{
+ .whoami = INV_MPU9255_WHOAMI_VALUE,
+ .name = "MPU9255",
+ .reg = &reg_set_6500,
+ .config = &chip_config_6050,
+ },
+ {
.whoami = INV_ICM20608_WHOAMI_VALUE,
.name = "ICM20608",
.reg = &reg_set_6500,