mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-19 21:56:48 +07:00
77c4ad2d6a
BMI160 is an Inertial Measurement Unit (IMU) which provides acceleration and angular rate measurement. It also offers a secondary I2C interface for connecting a magnetometer sensor (usually BMM160). Current driver offers support for accelerometer and gyroscope readings via sysfs or via buffer interface using an external trigger (e.g. hrtimer). Data is retrieved from IMU via I2C or SPI interface. Datasheet is at: http://www.mouser.com/ds/2/783/BST-BMI160-DS000-07-786474.pdf Signed-off-by: Daniel Baluta <daniel.baluta@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
33 lines
765 B
Plaintext
33 lines
765 B
Plaintext
#
|
|
# BMI160 IMU driver
|
|
#
|
|
|
|
config BMI160
|
|
tristate
|
|
select IIO_BUFFER
|
|
select IIO_TRIGGERED_BUFFER
|
|
|
|
config BMI160_I2C
|
|
tristate "Bosch BMI160 I2C driver"
|
|
depends on I2C
|
|
select BMI160
|
|
select REGMAP_I2C
|
|
help
|
|
If you say yes here you get support for BMI160 IMU on I2C with
|
|
accelerometer, gyroscope and external BMG160 magnetometer.
|
|
|
|
This driver can also be built as a module. If so, the module will be
|
|
called bmi160_i2c.
|
|
|
|
config BMI160_SPI
|
|
tristate "Bosch BMI160 SPI driver"
|
|
depends on SPI
|
|
select BMI160
|
|
select REGMAP_SPI
|
|
help
|
|
If you say yes here you get support for BMI160 IMU on SPI with
|
|
accelerometer, gyroscope and external BMG160 magnetometer.
|
|
|
|
This driver can also be built as a module. If so, the module will be
|
|
called bmi160_spi.
|