Merge branch linux-linaro-lsk-v3.10-android
[firefly-linux-kernel-4.4.55.git] / drivers / misc / inv_mpu / Kconfig
1 config 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
9 menuconfig: INV_SENSORS
10         tristate "Motion Processing Unit"
11         depends on I2C
12         default n
13
14 if INV_SENSORS
15
16 choice
17         prompt "MPU Master"
18         depends on I2C && INV_SENSORS
19         default MPU_SENSORS_MPU3050
20
21 config MPU_SENSORS_MPU3050
22         bool "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
30 config MPU_SENSORS_MPU6050A2
31         bool "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
39 config MPU_SENSORS_MPU6050B1
40         bool "MPU6050B1"
41         select MPU_SENSORS_MPU6050_GYRO
42         depends on I2C
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
48 endchoice
49
50 choice
51         prompt "Gyroscope Type"
52         depends on I2C && INV_SENSORS
53         default MPU_SENSORS_MPU3050_GYRO
54
55 config MPU_SENSORS_MPU3050_GYRO
56         bool "MPU3050 built in gyroscope"
57         depends on MPU_SENSORS_MPU3050
58
59 config MPU_SENSORS_MPU6050_GYRO
60         bool "MPU6050 built in gyroscope"
61         depends on MPU_SENSORS_MPU6050B1 || MPU_SENSORS_MPU6050A2
62
63 endchoice
64
65 source "drivers/misc/inv_mpu/accel/Kconfig"
66 source "drivers/misc/inv_mpu/compass/Kconfig"
67 source "drivers/misc/inv_mpu/pressure/Kconfig"
68
69 config MPU_USERSPACE_DEBUG
70         bool "MPU Userspace debugging ioctls"
71         help
72           Allows the ioctls MPU_SET_MPU_PLATFORM_DATA and
73           MPU_SET_EXT_SLAVE_PLATFORM_DATA, which allows userspace applications
74           to override the slave address and orientation.  This is dangerous
75           and could cause the devices not to work.
76
77 endif #INV_SENSORS