Skip to content

Commit 22b46c4

Browse files
spandruvadajic23
authored andcommitted
iio:gyro:bmg160 Gyro Sensor driver
This change implements support for BMG160 Gyro sensor. Although chip has several advanced features, this change implements minimum set required for using gyro sensor. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
1 parent 29a9e89 commit 22b46c4

3 files changed

Lines changed: 1223 additions & 0 deletions

File tree

‎drivers/iio/gyro/Kconfig‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,17 @@ config ADXRS450
5050
This driver can also be built as a module. If so, the module
5151
will be called adxrs450.
5252

53+
config BMG160
54+
tristate "BOSCH BMG160 Gyro Sensor"
55+
depends on I2C
56+
select IIO_TRIGGERED_BUFFER if IIO_BUFFER
57+
help
58+
Say yes here to build support for Bosch BMG160 Tri-axis Gyro Sensor
59+
driver.
60+
61+
This driver can also be built as a module. If so, the module
62+
will be called bmg160.
63+
5364
config HID_SENSOR_GYRO_3D
5465
depends on HID_SENSOR_HUB
5566
select IIO_BUFFER

‎drivers/iio/gyro/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ obj-$(CONFIG_ADIS16130) += adis16130.o
88
obj-$(CONFIG_ADIS16136) += adis16136.o
99
obj-$(CONFIG_ADIS16260) += adis16260.o
1010
obj-$(CONFIG_ADXRS450) += adxrs450.o
11+
obj-$(CONFIG_BMG160) += bmg160.o
1112

1213
obj-$(CONFIG_HID_SENSOR_GYRO_3D) += hid-sensor-gyro-3d.o
1314

0 commit comments

Comments
 (0)