aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/inv_mpu/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/inv_mpu/Kconfig')
-rw-r--r--drivers/misc/inv_mpu/Kconfig70
1 files changed, 70 insertions, 0 deletions
diff --git a/drivers/misc/inv_mpu/Kconfig b/drivers/misc/inv_mpu/Kconfig
new file mode 100644
index 00000000000..4c231b576f6
--- /dev/null
+++ b/drivers/misc/inv_mpu/Kconfig
@@ -0,0 +1,70 @@
1config MPU_SENSORS_TIMERIRQ
2 tristate "MPU Timer IRQ"
3 help
4 If you say yes here you get access to the timerirq device handle which
5 can be used to select on. This can be used instead of IRQ's, sleeping,
6 or timer threads. Reading from this device returns the same type of
7 information as reading from the MPU and slave IRQ's.
8
9menuconfig INV_SENSORS
10 tristate "Motion Processing Unit"
11 depends on I2C
12 default y
13
14if INV_SENSORS
15
16choice
17 tristate "MPU Master"
18 depends on I2C && INV_SENSORS
19 default MPU_SENSORS_MPU3050
20
21config MPU_SENSORS_MPU3050
22 tristate "MPU3050"
23 depends on I2C
24 select MPU_SENSORS_MPU3050_GYRO
25 help
26 If you say yes here you get support for the MPU3050 Gyroscope driver
27 This driver can also be built as a module. If so, the module
28 will be called mpu3050.
29
30config MPU_SENSORS_MPU6050A2
31 tristate "MPU6050A2"
32 depends on I2C
33 select MPU_SENSORS_MPU6050_GYRO
34 help
35 If you say yes here you get support for the MPU6050A2 Gyroscope driver
36 This driver can also be built as a module. If so, the module
37 will be called mpu6050a2.
38
39config MPU_SENSORS_MPU6050B1
40 tristate "MPU6050B1"
41 depends on I2C
42 select MPU_SENSORS_MPU6050_GYRO
43 help
44 If you say yes here you get support for the MPU6050 Gyroscope driver
45 This driver can also be built as a module. If so, the module
46 will be called mpu6050b1.
47
48endchoice
49
50config MPU_SENSORS_MPU3050_GYRO
51 bool "MPU3050 built in gyroscope"
52 depends on MPU_SENSORS_MPU3050
53
54config MPU_SENSORS_MPU6050_GYRO
55 bool "MPU6050 built in gyroscope"
56 depends on MPU_SENSORS_MPU6050B1 || MPU_SENSORS_MPU6050A2
57
58source "drivers/misc/inv_mpu/accel/Kconfig"
59source "drivers/misc/inv_mpu/compass/Kconfig"
60source "drivers/misc/inv_mpu/pressure/Kconfig"
61
62config MPU_USERSPACE_DEBUG
63 bool "MPU Userspace debugging ioctls"
64 help
65 Allows the ioctls MPU_SET_MPU_PLATFORM_DATA and
66 MPU_SET_EXT_SLAVE_PLATFORM_DATA, which allows userspace applications
67 to override the slave address and orientation. This is dangerous
68 and could cause the devices not to work.
69
70endif #INV_SENSORS