summaryrefslogtreecommitdiff
path: root/drivers/misc/inv_mpu/Kconfig
blob: 4c231b576f6808373cd6571c488892f5d970e571 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
config MPU_SENSORS_TIMERIRQ
	tristate "MPU Timer IRQ"
	help
	  If you say yes here you get access to the timerirq device handle which
	  can be used to select on.  This can be used instead of IRQ's, sleeping,
	  or timer threads.  Reading from this device returns the same type of
	  information as reading from the MPU and slave IRQ's.

menuconfig INV_SENSORS
	tristate "Motion Processing Unit"
	depends on I2C
	default y

if INV_SENSORS

choice
	tristate "MPU Master"
	depends on I2C && INV_SENSORS
	default MPU_SENSORS_MPU3050

config MPU_SENSORS_MPU3050
	tristate "MPU3050"
	depends on I2C
	select MPU_SENSORS_MPU3050_GYRO
	help
	  If you say yes here you get support for the MPU3050 Gyroscope driver
	  This driver can also be built as a module.  If so, the module
	  will be called mpu3050.

config MPU_SENSORS_MPU6050A2
	tristate "MPU6050A2"
	depends on I2C
	select MPU_SENSORS_MPU6050_GYRO
	help
	  If you say yes here you get support for the MPU6050A2 Gyroscope driver
	  This driver can also be built as a module.  If so, the module
	  will be called mpu6050a2.

config MPU_SENSORS_MPU6050B1
	tristate "MPU6050B1"
	depends on I2C
	select MPU_SENSORS_MPU6050_GYRO
	help
	  If you say yes here you get support for the MPU6050 Gyroscope driver
	  This driver can also be built as a module.  If so, the module
	  will be called mpu6050b1.

endchoice

config MPU_SENSORS_MPU3050_GYRO
	bool "MPU3050 built in gyroscope"
	depends on MPU_SENSORS_MPU3050

config MPU_SENSORS_MPU6050_GYRO
	bool "MPU6050 built in gyroscope"
	depends on MPU_SENSORS_MPU6050B1 || MPU_SENSORS_MPU6050A2

source "drivers/misc/inv_mpu/accel/Kconfig"
source "drivers/misc/inv_mpu/compass/Kconfig"
source "drivers/misc/inv_mpu/pressure/Kconfig"

config MPU_USERSPACE_DEBUG
	bool "MPU Userspace debugging ioctls"
	help
	  Allows the ioctls MPU_SET_MPU_PLATFORM_DATA and
	  MPU_SET_EXT_SLAVE_PLATFORM_DATA, which allows userspace applications
	  to override the slave address and orientation.  This is dangerous
	  and could cause the devices not to work.

endif #INV_SENSORS