iio: imu: inv_mpu6050: Add i2c mux for by pass
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Fri, 5 Dec 2014 22:52:09 +0000 (14:52 -0800)
committerJonathan Cameron <jic23@kernel.org>
Fri, 12 Dec 2014 12:28:26 +0000 (12:28 +0000)
commit3a2ecc3d2dce6e051b6afc319bb380c829e4e4fd
treef5f29a7b9af315541411304b839f8d56d2c3f94c
parent0f8994b18afc47fd0cda20ba6162c21a093173da
iio: imu: inv_mpu6050: Add i2c mux for by pass

This chip allows some limited number of sensors connected to it as
slaves, which can be directly accessed by register interface of this
driver.But the current upstream driver doesn't support such mode.
To attach such slaves to main processor i2c bus, chip has to be set
up in bypass mode. This change adds i2c mux, which will enable/disable
this mode for transaction to/from such slave devices.
This was discussed for a while in mailing list, this was the outcome:
Reference:
http://www.spinics.net/lists/linux-iio/msg12126.html
http://comments.gmane.org/gmane.linux.kernel.iio/11470

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Reviewed-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/imu/inv_mpu6050/Kconfig
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h