config MPU_SENSORS_TIMERIRQ_411
	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_411
	tristate "Motion Processing Unit"
	depends on I2C
	default y

if INV_SENSORS_411

choice
	prompt "MPU Master"
	depends on I2C && INV_SENSORS_411
	default MPU_SENSORS_MPU3050_411

config MPU_SENSORS_MPU3050_411
	bool "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_411
	bool "MPU6050A2"
	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 mpu6050a2.

config MPU_SENSORS_MPU6050B1_411
	bool "MPU6050B1"
	select MPU_SENSORS_MPU6050_GYRO
	depends on I2C
	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.

config MPU_SENSORS_MPU6050B1_411
	bool "Self-test of Invensense MPU-6050 sensor"
	default n
	help
	  Say Y here if you want support for self-test of the MPU-6050 sensor
	  device.
	  To compile this driver as a module, choose M here: the
	  module will be called MPU6050.
endchoice

choice
	prompt "Gyroscope Type"
	depends on I2C && INV_SENSORS
	default MPU_SENSORS_MPU3050_GYRO

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_411 || MPU_SENSORS_MPU6050A2_411

endchoice

source "drivers/misc/inv_mpu/accel/Kconfig"
source "drivers/misc/inv_mpu/compass/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_411
